org.apache.axis2.AxisFault:尚未设置传送 [英] org.apache.axis2.AxisFault: Transport out has not been set
问题描述
我在使用Axis2的WS时遇到了大问题
I have a big problem with WS with Axis2
用例(本地主机服务器,[在代理下]无法访问互联网):
我创建了一个小的本地Web服务和一个称为该服务的客户端.... 终结点就是这样的"http://localhost:8080/MyService"
I have created a little local web service and a client which calls this service.... endpoint is something like this "http://localhost:8080/MyService"
没关系:客户端请求和服务器响应!
that's all ok: client requests and server responses!!
我是bas *** d,我想测试我的客户端,所以我已经更改了"http://localhost:8082/MyService"中的终结点(端口已更改)
i'm bas***d and i want test my client, so i have changed endpoint in "http://localhost:8082/MyService" (port is changed)
没关系:客户端请求...并且超时...没有服务在8082上响应
that's all ok: client requests...and it goes in timeout...no service responds on 8082
测试继续进行: 我在Internet上拥有相同的Web服务,因此我在"http://wsdomain:8080/MyService"中更改了我的终结点客户端...而无需触摸proxy conf(在client.axis2.xml上)
tests go on: i have the same web service on internet, so i change my endpoint client in "http://wsdomain:8080/MyService"...without touching proxy conf (on client.axis2.xml)
客户请求....我收到一个例外:
client requests....and i receive an exception:
org.apache.axis2.AxisFault: Transport out has not been set
所以,我在client.axis.xml中设置了代理服务器...我已替换为:
so, i have setted proxy in client.axis.xml...I have substituted this:
<transportSender name="http" class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
<parameter name="PROTOCOL">HTTP/1.1</parameter>
<parameter name="Transfer-Encoding">chunked</parameter>
</transportSender>
与此:
<transportSender name="http" class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
<parameter name="Proxy">
<Configuration>
<ProxyHost>MyproxyIp</ProxyHost>
<ProxyPort>MyproxyPort</ProxyPort>
</Configuration>
</parameter>
<parameter name="PROTOCOL">HTTP/1.1</parameter>
<parameter name="Transfer-Encoding">chunked</parameter>
</transportSender>
但是我的客户抛出了同样的异常:
org.apache.axis2.AxisFault: Transport out has not been set
but my client throws the same exception:
org.apache.axis2.AxisFault: Transport out has not been set
我想念什么?
推荐答案
好,我已经解决了这个问题...我以为问题出在代理配置中...但是我的问题是url字符串中的空格... .AAAARRGH ...我认为此异常过于笼统,无法解释该问题
ok I have resolved this issue...I thought the problem was in proxy configuration...but my issue was a white space in url string....AAAARRGH...i think this exception is too generic and it doesn't explain the issue
这篇关于org.apache.axis2.AxisFault:尚未设置传送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!