Bonjour,

Je souhaites consommer un webservice fournit par MS Sharepoint.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import lotus.domino.*;
import java.net.URL;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;
import com.microsoft.schemas.sharepoint.soap.*;
import java.io.*;	
import org.w3c.dom.*;
 
public class JavaAgent extends AgentBase {
 
	public void NotesMain() {
 
try {
	Session session = getSession();
	AgentContext agentContext = session.getAgentContext();
 
 
	String stUrl = "http://serveur/_vti_bin/lists.asmx"; 
	Service service = new Service();
	Call call = (Call) service.createCall();
	call.setTargetEndpointAddress( new java.net.URL(stUrl) );
	call.setUsername("domaine\\utilisateur"); 
	call.setPassword("pass");
	call.setOperationName(new QName("http://schemas.microsoft.com/sharepoint/soap/", "AddList"));
	//call.setSOAPActionURI("http://schemas.microsoft.com/sharepoint/soap/GetListCollection");
	Object params[] = new Object[3];
	params[0] = "ListName";
	params[1] = "Description";
	params[2] = "100";
 
	Node res= (Node) call.invoke(params); 
	System.out.println(res);	
}
 
catch(Exception e) {
			e.printStackTrace();
		}
	}
}
Et voici l'erreur que j'obtiens :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
AxisFault
 faultCode: {http://xml.apache.org/axis/}HTTP
 faultSubcode: 
 faultString: (503)Service Unavailable
 faultActor: 
 faultNode: 
 faultDetail: 
	{}:return code:  503
<TITLE>503 Service Unavailable</TITLE>
<H1>503 Service Unavailable</H1>
Failed to resolve the name of server <B>webrcfdev</B> to connect
 
	{http://xml.apache.org/axis/}HttpErrorCode:503
 
(503)Service Unavailable
	at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
	at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
	at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
	at org.apache.axis.client.Call.invoke(Call.java:2767)
	at org.apache.axis.client.Call.invoke(Call.java:2443)
	at org.apache.axis.client.Call.invoke(Call.java:2366)
	at org.apache.axis.client.Call.invoke(Call.java:1812)
	at JavaAgent.NotesMain(JavaAgent.java:32)
	at lotus.domino.AgentBase.runNotes(Unknown Source)
	at lotus.domino.NotesThread.run(Unknown Source)
Avez-vous une idée de l'origine de mon erreur ?
Je vous remercie par avance pour vos lumières