我在IIS6上运行了一个简单的when,当我调用getData函数时,它会返回“WebService”。我有使用axis 2生成的客户端的java存根。我的请求每次都会超时。我已将超时时间增加到5分钟,但没有效果。
这是日志。客户端等待30秒并超时(增加超时无济于事) ...我该如何继续前进,有什么建议吗?我也有权访问服务器...我有连接到Tomcat的work服务,它们工作得很好。只有这个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发布于 2010-11-11 06:24:04
我怀疑问题的答案就在服务器日志中。
有点猜测,但尝试disabling chunked HTTP requests (我最近从JAX-WS向不支持它的WebService提供程序发送这样的请求时遇到了问题)。
https://stackoverflow.com/questions/4148842
复制相似问题