2010-11-10 61 views
0

我有一個簡單的WCF WebService在IIS 6上運行。它在我調用getData函數時返回「hello」。我有我使用軸2生成的客戶端的java存根(stub)。我的請求每次都會超時。我將超時時間增加到了5分鐘,但沒有任何效果。IIS 6 WebService Java客戶端(使用軸2生成的存根)

這裏是日誌。客戶端等待30秒並超時(增加超時無助)...任何關於如何向前移動的指針?我有權訪問服務器以及... 我有連接到Tomcat的webservices工作得很好。只是這個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 

回答

0

我懷疑問題的答案在於服務器日誌。

有點猜測,但嘗試disabling chunked HTTP requests(我最近有一個問題,從JAX-WS發送到不支持這種請求的WebService提供程序)。

+0

這是wshttp的東西..最奇怪的是IIS吞噬了我的信息,並沒有採取任何措施。 – Anagha 2010-11-11 20:15:07

相關問題