Bonjour,

Dans le cadre de mon boulot, je vais être amené à utiliser des services web.
Je me suis dis que j'allait tester les base avec SoapUI.
Et cela ne fonctionne pas pfff... ça serai trop facile du 1er coups :-).
Voici l'url du WS que j'aimerai tester:
http://www.webservicex.net/WCF/Servi...ls.aspx?SID=51

dans SoapUi je crée un nouveau projet et indique l'url du WSDL.
Ensuite je crée une requète par defaut qui est la suivante :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.webservicex.net">
   <soapenv:Header/>
   <soapenv:Body>
      <web:GetWhoIS>
         <!--Optional:-->
         <web:HostName>'skynet.be'</web:HostName>
      </web:GetWhoIS>
   </soapenv:Body>
</soapenv:Envelope>
J'execute la requète (avec le "Play en vert") et je reçoit le réponse suivante:
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
<HTML><HEAD>
<TITLE>Request Error</TITLE>
</HEAD>
<BODY>
<FONT face="Helvetica">
<big><strong></strong></big><BR>
</FONT>
<blockquote>
<TABLE border=0 cellPadding=1 width="80%">
<TR><TD>
<FONT face="Helvetica">
<big>Request Error (invalid_request)</big>
<BR>
<BR>
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica">
Your request could not be processed. Request could not be handled
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica">
This could be caused by a misconfiguration, or possibly a malformed request.
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica" SIZE=2>
<BR>
For assistance, contact your network support team.
</FONT>
</TD></TR>
</TABLE>
</blockquote>
</FONT>
</BODY></HTML>
Et les Headers :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
#status#	HTTP/1.1 400 Bad Request
Content-Length	691
Connection	close
Content-Type	text/html; charset=utf-8
Proxy-Connection	close
Pragma	no-cache
Cache-Control	no-cache
Voici le contenu du log de SoapUI:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
Mon Feb 23 14:17:56 CET 2009:DEBUG:HttpConnectionManager.getConnection:  config = HostConfiguration[host=http://www.webservicex.net, proxyHost=http://10.0.2.21:8070], timeout = 0
Mon Feb 23 14:17:56 CET 2009:DEBUG:Getting free connection, hostConfig=HostConfiguration[host=http://www.webservicex.net, proxyHost=http://10.0.2.21:8070]
Mon Feb 23 14:17:56 CET 2009:DEBUG:Freeing connection, hostConfig=HostConfiguration[host=http://www.webservicex.net, proxyHost=http://10.0.2.21:8070]
Mon Feb 23 14:17:56 CET 2009:DEBUG:Notifying no-one, there are no waiting threads
Mon Feb 23 14:17:56 CET 2009:INFO:Got response for [whoisSoap.GetWhoIS:Request 1] in 5ms (691 bytes)
J'espère avoir été assez clair.

Merci d'avance.