简体   繁体   English

org.apache.axis2.AxisFault:尚未设置转出

[英]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.

相关问题 org.apache.axis2.AxisFault:传输错误:501错误:未实现 - org.apache.axis2.AxisFault: Transport error: 501 Error: Not Implemented org.apache.axis2.AxisFault连接被拒绝 - org.apache.axis2.AxisFault connection refused 错误:“ org.apache.axis2.AxisFault:传输错误:403错误:禁止” - Error : “org.apache.axis2.AxisFault: Transport error: 403 Error: Forbidden” org.apache.axis2.AxisFault:传输错误:407错误:需要代理身份验证 - org.apache.axis2.AxisFault:Transport error: 407 Error:Proxy Authentication Required 线程“主” org.apache.axis2.AxisFault中的异常:读取超时 - Exception in thread “main” org.apache.axis2.AxisFault: Read timed out 错误:org.apache.axis2.AxisFault:请求中未指定方法 - Error: org.apache.axis2.AxisFault: No method specified in request 引起:org.apache.axis2.AxisFault:无法参与模块:城墙 - Caused by: org.apache.axis2.AxisFault: Unable to engage module : rampart org.apache.axis2.AxisFault: sun.security.validator.ValidatorException: - org.apache.axis2.AxisFault: sun.security.validator.ValidatorException: 导入 org.apache.axis2.AxisFault 无法解析。 什么依赖安装必要的 AxisFault? - The import org.apache.axis2.AxisFault cannot be resolved. What dependency installs necessary AxisFault? org.apache.axis2.AxisFault:org.apache.axis2.databinding.ADBException:Unexpected subelement underTimelyRenewal - org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement underTimelyRenewal
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM