2010-11-10 91 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

相关问题