IIS 6 WebService Java客户端(使用轴2生成的存根)

时间:2010-11-10 20:40:06

标签: java wcf service client

我在IIS 6上运行一个简单的WCF WebService。当我调用getData函数时,它返回“hello”。我有使用轴2生成的客户端的Java存根。我的请求每次都会超时。我已将超时时间增加到5分钟,但没有效果。

以下是日志。客户端等待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

1 个答案:

答案 0 :(得分:0)

我怀疑问题的答案在于服务器日志。

有点猜测,但请尝试disabling chunked HTTP requests(我最近遇到了从JAX-WS向不支持此问题的WebService提供程序发送此类请求的问题。)