2010-11-10 5 views
0

J'ai un simple WebService WCF exécuté sur IIS 6. Il renvoie "bonjour" lorsque j'appelle la fonction getData. J'ai des stubs java pour le client que j'ai généré en utilisant l'axe 2. Ma requête expire à chaque fois. J'ai augmenté le timeout à 5 minutes mais sans aucun effet.IIS 6 Client Java WebService (stubs générés avec l'axe 2)

Voici les journaux. Le client attend 30 secondes et expire (augmentation du délai d'attente n'aide pas) ... Des conseils sur la façon dont je peux aller de l'avant? J'ai aussi accès au serveur ... J'ai des webservices qui se connectent à Tomcat et qui fonctionnent très bien. Juste ce WCF ...

2010-11-10 15:26:05,209 [main] DEBUG httpclient.wire.header - >> "POST /TestWCF/TestWCF.svc HTTP/1.1[\r][\n]" 
2010-11-10 15:26:05,225 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - Adding Host request header 
2010-11-10 15:26:05,225 [main] DEBUG httpclient.wire.header - >> "Content-Type: application/soap+xml; charset=UTF-8; action="http://tempuri.org/ITestWCF/GetData"[\r][\n]" 
2010-11-10 15:26:05,225 [main] DEBUG httpclient.wire.header - >> "User-Agent: Axis2[\r][\n]" 
2010-11-10 15:26:05,225 [main] DEBUG httpclient.wire.header - >> "Host: xxx.yyy.org[\r][\n]" 
2010-11-10 15:26:05,225 [main] DEBUG httpclient.wire.header - >> "Transfer-Encoding: chunked[\r][\n]" 
2010-11-10 15:26:05,225 [main] DEBUG httpclient.wire.header - >> "[\r][\n]" 
2010-11-10 15:26:05,225 [main] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter - start writeTo() 
2010-11-10 15:26:05,225 [main] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter - preserve=false 
2010-11-10 15:26:05,225 [main] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter - isOptimized=false 
2010-11-10 15:26:05,225 [main] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter - isDoingSWA=false 
2010-11-10 15:26:05,240 [main] DEBUG org.apache.axiom.om.util.StAXUtils - XMLStreamWriter is com.ctc.wstx.sw.SimpleNsStreamWriter 
2010-11-10 15:26:05,240 [main] DEBUG org.apache.axiom.om.impl.llom.OMSourcedElementImpl - serialize {http://tempuri.org/}GetData to XMLStreamWriter 
2010-11-10 15:26:05,256 [main] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter - end writeTo() 
2010-11-10 15:26:05,256 [main] DEBUG httpclient.wire.content - >> "cf[\r][\n]" 
2010-11-10 15:26:05,256 [main] DEBUG httpclient.wire.content - >> "<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><ns2:GetData xmlns:ns2="http://tempuri.org/" /></soapenv:Body></soapenv:Envelope>" 
2010-11-10 15:26:05,256 [main] DEBUG httpclient.wire.content - >> "[\r][\n]" 
2010-11-10 15:26:05,256 [main] DEBUG httpclient.wire.content - >> "0" 
2010-11-10 15:26:05,256 [main] DEBUG httpclient.wire.content - >> "[\r][\n]" 
2010-11-10 15:26:05,256 [main] DEBUG httpclient.wire.content - >> "[\r][\n]" 
2010-11-10 15:26:05,256 [main] DEBUG org.apache.commons.httpclient.methods.EntityEnclosingMethod - Request body sent 
2010-11-10 15:26:35,758 [main] DEBUG org.apache.commons.httpclient.HttpMethodDirector - Closing the connection. 
2010-11-10 15:26:35,774 [main] DEBUG org.apache.commons.httpclient.HttpMethodDirector - Method retry handler returned false. Automatic recovery will not be attempted 

Répondre

0

Je soupçonne que la réponse au problème réside dans les journaux du serveur. Un peu d'une supposition, mais essayez disabling chunked HTTP requests (J'ai récemment eu un problème en envoyant de telles demandes de JAX-WS à un fournisseur WebService qui ne le supportait pas).

+0

C'était wshttp chose .. La chose la plus étrange est IIS avalé mon message et n'a rien fait avec. – Anagha