Bonjour,

Je suis en train d'utiliser la lib ksoap pour interroger un webservice SOAP.

voici la requête envoyer:
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
POST /WebService/service.asmx HTTP/1.1
user-agent: ksoap2-android/2.6.0+
soapaction: <a href="http://localhost/WebService/Authentification" target="_blank">http://localhost/WebService/Authentification</a>
content-type: text/xml;charset=utf-8
connection: close
content-length: 487
Host: 192.168.203.50
 
<?xml version="1.0" encoding="utf-8"?>
<v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://schemas.xmlsoap.org/soap/encoding/"
	xmlns:v="http://schemas.xmlsoap.org/soap/envelope/">
	<v:Header />
	<v:Body>
		<n0:Authentification id="o0" c:root="1"
			xmlns:n0="http://localhost/WebService/">
			<UserName>4rIrwjRCKIXOqMDqCMil0Q==
			</UserName>
			<Password>du82oQepevB1wlZIaVdgwQ==
			</Password>
		</n0:Authentification>
	</v:Body>
</v:Envelope>
et voici le retour de la requête:

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
HTTP/1.1 500 Internal Server Error
Cache-Control: private
Content-Type: text/xml; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Fri, 02 Mar 2012 15:17:07 GMT
Connection: close
Content-Length: 414
 
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<soap:Body>
		<soap:Fault>
			<faultcode>BufferedUpload</faultcode>
			<faultstring>Authetification: Une erreur s'est produite lors de
				l'authentification</faultstring>
			<detail />
		</soap:Fault>
	</soap:Body>
</soap:Envelope>
Une de mes piste serai de pouvoir modifier légèrement ma requête:
en remplaçant le "<v:Envelope" en "<soap:Envelope".

Je me demande aussi à quoi cette partie "id="o0" c:root="1"" peut bien correspondre?

Cordialement,
Mario.