Je veux obtenirComment obtenir la source de la demande du service Web?
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:prin="http://localhost/example"> <soapenv:Header/> <soapenv:Body> THIS </soapenv:Body> </soapenv:Envelope>
de demande de webservice j'envoie de Java.
J'utilise javax.jws
Si vous utilisez des bibliothèques JAX-WS cuites dans JDK 1.6, cela fonctionnera. Si vous utilisez les fichiers jar JAX-RT avec un fichier JDK antérieur, vous devrez utiliser -Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump = true Les noms des packages semblent avoir changé lorsque la bibliothèque a été cuit dans le JDK. – Gennadiy
et vous devez également ajouter jaxws-rt.jar au classpath de votre projet. –