简体   繁体   中英

org.apache.axis2.AxisFault: Transport out has not been set

I have a big problem with WS with Axis2

use case (localhost server, no internet access [under proxy]) :

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!!

i'm bas***d and i want test my client, so i have changed endpoint in "http://localhost:8082/MyService" (port is changed)

that's all ok: client requests...and it goes in timeout...no service responds on 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)

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:

<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

what i miss??

好吧我已经解决了这个问题......我认为问题出在代理配置中...但是我的问题是url字符串中的空白区域...... AAAARRGH ...我认为这个例外太通用而且它没有解释这个问题

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM