首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >IIS6 WebService Java客户端(使用axis 2生成的存根)

IIS6 WebService Java客户端(使用axis 2生成的存根)
EN

Stack Overflow用户
提问于 2010-11-11 04:40:06
回答 1查看 1.1K关注 0票数 0

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

这是日志。客户端等待30秒并超时(增加超时无济于事) ...我该如何继续前进,有什么建议吗?我也有权访问服务器...我有连接到Tomcat的work服务,它们工作得很好。只有这个WCF。

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

发布于 2010-11-11 06:24:04

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

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/4148842

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档