我在mule esb中使用CXF公开了Web服务,并尝试调用某些Web服务。我得到的错误是无法通过端点路由事件:org.mule.module.cxf.CxfOutboundMessageProcessor
configuration.xml文件:
<http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="8888" doc:name="HTTP Listener Configuration"/>
<ws:consumer-config name="Web_Service_Consumer" service="Calculator" port="ICalculator" serviceAddress="http://ws1.parasoft.com/glue/calculator" wsdlLocation="calculator.wsdl" doc:name="Web Service Consumer"/>
<mulexml:jaxb-context name="JAXB_Context" packageNames="com.saga.calculator" doc:name="JAXB Context"/>
<flow name="soaptestFlow">
<http:listener config-ref="HTTP_Listener_Configuration" path="/soap" doc:name="HTTP"/>
<cxf:jaxws-service serviceClass="com.saga.service.WorkOrderNotification" doc:name="CXF"/>
<dw:transform-message metadata:id="36d25e83-b7ad-48d8-aad0-779eb6ced53c" doc:name="Transform Message">
<dw:input-payload/>
<dw:set-payload>
<![CDATA[%dw 1.0
%output application/java
%namespace ns0 http://www.parasoft.com/wsdl/calculator/
---
{
x: payload.task[0].externalSourceId as :number,
y: payload.task[0].externalSourceSystem as :number
} as :object {
class : "com.saga.calculator.Add"
}]]>
</dw:set-payload>
</dw:transform-message>
<mulexml:jaxb-object-to-xml-transformer jaxbContext-ref="JAXB_Context" doc:name="JAXB Object to XML"/>
<custom-transformer class="com.saga.calculator.CalculatorTransformer" doc:name="JavaTransformer"/>
<ws:consumer config-ref="Web_Service_Consumer" operation="add" doc:name="InvokeCalculator"/>
<logger level="INFO" doc:name="Logger"/>
</flow>
请帮忙
答案 0 :(得分:0)
<http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="8888" doc:name="HTTP Listener Configuration"/>
<ws:consumer-config name="Web_Service_Consumer" service="Calculator" port="ICalculator" serviceAddress="http://ws1.parasoft.com/glue/calculator" wsdlLocation="calculator.wsdl" doc:name="Web Service Consumer"/>
<mulexml:jaxb-context name="JAXB_Context" packageNames="com.saga.calculator" doc:name="JAXB Context"/>
<flow name="soaptestFlow">
<http:listener config-ref="HTTP_Listener_Configuration" path="/soap" doc:name="HTTP"/>
<cxf:jaxws-service serviceClass="com.saga.service.WorkOrderNotification" doc:name="CXF"/>
<dw:transform-message metadata:id="36d25e83-b7ad-48d8-aad0-779eb6ced53c" doc:name="Transform Message">
<dw:input-payload/>
<dw:set-payload>
<![CDATA[%dw 1.0
%output application/java
%namespace ns0 http://www.parasoft.com/wsdl/calculator/
---
{
x: payload.task[0].externalSourceId as :number,
y: payload.task[0].externalSourceSystem as :number
} as :object {
class : "com.saga.calculator.Add"
}]]>
</dw:set-payload>
</dw:transform-message>
<mulexml:jaxb-object-to-xml-transformer jaxbContext-ref="JAXB_Context" doc:name="JAXB Object to XML"/>
<custom-transformer class="com.saga.calculator.CalculatorTransformer" doc:name="JavaTransformer"/>
<ws:consumer config-ref="Web_Service_Consumer" operation="add" doc:name="InvokeCalculator"/>
<logger level="INFO" doc:name="Logger"/>
</flow>