Bonjour, je suis newbie en SOAP et j'ai quelques questions.
J'ai cr�� un client et server avec jaxws qui communique tr�s bien ensemble.
Maintenant je voudrais faire communiquer un client java et un server gSOAP (bo�te noir pour moi).
Malheureusement j'ai toujours la m�me erreur :
Ceci montre bien que le server n'a pas ce service 'AffiliationService' alors que je suis s�r du nom du service, j'ai bien v�rifi� la syntaxe, la case, etc.==>> URL : 'http://localhost:7010/AffiliationService?wsdl'
==>> QName : '{http://www.example.com}AffiliationService'
Exception in thread "main" javax.xml.ws.WebServiceException: {http://www.example.com}AffiliationService is not a valid service. Valid services are:
at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:204)
at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:172)
at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:82)
at javax.xml.ws.Service.<init>(Service.java:56)
at javax.xml.ws.Service.create(Service.java:697)
at client.Client.startClient(Client.java:50)
at client.Client.<init>(Client.java:30)
at client.Client.main(Client.java:26)
Je crois savoir que jaxws demande par d�faut la liste des services disponibles lors du "bind", mais gSOAP poss�de t il cette fonctionnalit� ?
quand je fais un "http://localhost:7010/AffiliateUser?wsdl" avec le server SOAP java j'ai bien une page qui s'affiche avec les services disponibles.
par contre avec le server gSOAP, j'ai :
et.
<SOAP-ENV:Envelope>
<SOAP-ENV:Body>
<SOAP-ENV:Fault SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>HTTP GET method not implemented</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP/1.1 500 Internal Server Error
Server: gSOAP/2.7
Content-Type: text/xml; charset=utf-8
Content-Length: 2864
Connection: close
Merci beaucoup de votre aide
Obelix
Partager