[英]org.apache.axis2.AxisFault: Transport out has not been set
I have a big problem with WS with Axis2 我对Axis2的WS有一个很大的问题
use case (localhost server, no internet access [under proxy]) : 用例(localhost服务器,没有互联网访问[在代理下]) :
I have created a little local web service and a client which calls this service.... endpoint is something like this "http://localhost:8080/MyService" 我创建了一个小的本地Web服务和一个调用此服务的客户端....端点是这样的“http:// localhost:8080 / MyService”
that's all ok: client requests and server responses!! 一切都好:客户端请求和服务器响应!!
i'm bas***d and i want test my client, so i have changed endpoint in "http://localhost:8082/MyService" (port is changed) 我是bas *** d,我想测试我的客户端,所以我在“http:// localhost:8082 / MyService”中更改了端点(端口已更改)
that's all ok: client requests...and it goes in timeout...no service responds on 8082 这一切都还可以:客户端请求......并且它处于超时状态...没有服务在8082上响应
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) 测试继续:我在互联网上有相同的Web服务,所以我在“http:// wsdomain:8080 / MyService”中更改了我的端点客户端...而没有触及代理conf(在client.axis2.xml上)
client requests....and i receive an exception: 客户请求....我收到一个例外:
org.apache.axis2.AxisFault: Transport out has not been set
so, i have setted proxy in client.axis.xml...I have substituted this: 所以,我在client.axis.xml中设置了代理...我已经替换了这个:
<transportSender name="http" class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
<parameter name="PROTOCOL">HTTP/1.1</parameter>
<parameter name="Transfer-Encoding">chunked</parameter>
</transportSender>
with this: 有了这个:
<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>
but my client throws the same exception: org.apache.axis2.AxisFault: Transport out has not been set
但我的客户端抛出相同的异常:
org.apache.axis2.AxisFault: Transport out has not been set
what i miss?? 我想念的是什么?
好吧我已经解决了这个问题......我认为问题出在代理配置中...但是我的问题是url字符串中的空白区域...... AAAARRGH ...我认为这个例外太通用而且它没有解释这个问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.