Axis 网络服务消费者和 Mule 3.6

Axis web service consumer and Mule 3.6

我将尝试使用最新的 mule 运行时来使用旧的 Axis Web 服务。 只是尝试使用 "Web service consumer" 组件但没有成功。 我第一次尝试不带参数的方法导致

org.apache.cxf.interceptor.Fault: Failed to load transport: org/mule/transport axis (org.mule.api.registry.ServiceException). Message payload is of type: MuleUniversalConduit
at org.mule.module.cxf.transport.MuleUniversalConduit.handleMessage(MuleUniversalConduit.java:194) ~[mule-module-cxf-3.6.1.jar:3.6.1] 
...

这是我的实际配置

mule xmlns:scripting="http://www.mulesoft.org/schema/mule/scripting" xmlns:tls="http://www.mulesoft.org/schema/mule/tls"
xmlns:ws="http://www.mulesoft.org/schema/mule/ws" xmlns:json="http://www.mulesoft.org/schema/mule/json" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:mulexml="http://www.mulesoft.org/schema/mule/xml" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns:spring="http://www.springframework.org/schema/beans" version="CE-3.6.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.mulesoft.org/schema/mule/tls http://www.mulesoft.org/schema/mule/tls/current/mule-tls.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/ws http://www.mulesoft.org/schema/mule/ws/current/mule-ws.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.mulesoft.org/schema/mule/xml http://www.mulesoft.org/schema/mule/xml/current/mule-xml.xsd
http://www.mulesoft.org/schema/mule/json http://www.mulesoft.org/schema/mule/json/current/mule-json.xsd
http://www.mulesoft.org/schema/mule/scripting http://www.mulesoft.org/schema/mule/scripting/current/mule-scripting.xsd">
    <tls:context name="MyWSTLS_Context" doc:name="TLS Context">
        <tls:trust-store path="trustStore/truststore.ts" password="secret"/>
        <tls:key-store path="trustStore/keystore.jks" password="secret" keyPassword="toosecret"/>
    </tls:context>
    <ws:consumer-config name="MyWS_WS_getVersion_Consumer" wsdlLocation="Version.wsdl" service="VersionService" port="Version" serviceAddress="axis:http://staging.myws.com/myws/services/Version" doc:name="Web Service Consumer" connectorConfig="HTTPS_MyWSRequest_Configuration"/>
    <http:request-config name="HTTPS_MyWSRequest_Configuration" protocol="HTTPS" host="staging.myws.com" port="443" basePath="/MyWS/services" doc:name="HTTP Request Configuration" tlsContext-ref="MyWSTLS_Context"/>
    <http:listener-config name="MyWS_Listener_Configuration"  host="0.0.0.0" port="8081"   doc:name="HTTP Listener Configuration"/>
    <flow name="wsconsumerFlow">
        <http:listener config-ref="MyWS_Listener_Configuration" path="/consumer" doc:name="HTTP"/>
        <ws:consumer config-ref="MyWS_WS_getVersion_Consumer" operation="getVersion" doc:name="Web Service Consumer"/>
        <logger level="INFO" doc:name="Logger"/>
    </flow>
</mule>

该服务是 rpc 样式,需要字符串数组作为参数。 任何提示表示赞赏。

轴的向后兼容传输已被弃用但仍在交付。

只需更改服务地址中的axis:,如果没有其他问题,希望它能正常工作。