我在 WSO2ESB 版本 4.8.1 中创建了一个肥皂到痘代理,以便我可以从 BPEL 调用该服务。此代理将消息转换为 POX(使用<address uri="service-address" format="pox"/>
)。我在日志中看到该服务被正确调用并且返回了一个有效的响应。
响应是没有命名空间的纯 XML。
ESB 会返回此答案而不将其包装在肥皂信封中。为什么是这样?我认为它应该被包裹起来。
有人可以告诉我我错过了什么吗?
下面是我的代理定义。
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse" name="RDW-OPENB-VRTG-INFO" transports="https http" startOnLoad="true" trace="enable">
<target>
<inSequence>
<property name="PRESERVE_WS_ADDRESSING" value="true" scope="default" type="STRING" description="preserve_ws_addressing"/>
<payloadFactory media-type="xml" description="CreatePayload">
<format>
<OPENB-VRTG-INFO xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/OPENB-VRTG-INFO.xsd">
<ALG-GEG>
<GEBR-IDENT>$1</GEBR-IDENT>
<WACHT-WOORD-ACT>$2</WACHT-WOORD-ACT>
<PROC-IDENT>2336</PROC-IDENT>
<PROC-FUNC>1</PROC-FUNC>
</ALG-GEG>
<KENT-GEG>
<KENTEKEN>$3</KENTEKEN>
</KENT-GEG>
</OPENB-VRTG-INFO>
</format>
<args>
<arg value="50200003"/>
<arg value="redora05"/>
<arg xmlns:r="http://argus.cale.nl/soa/RDW/" evaluator="xml" expression="//r:getOpenbVrtgInfo/r:licensePlate"/>
</args>
</payloadFactory>
<log level="full" description="logSendMessage"/>
<send>
<endpoint key="RDW"/>
</send>
</inSequence>
<outSequence>
<log level="full" description="log"/>
<send/>
</outSequence>
<faultSequence>
<drop description="drop"/>
</faultSequence>
</target>
<publishWSDL>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:rdw="http://argus.cale.nl/soa/RDW/" name="RDW" targetNamespace="http://argus.cale.nl/soa/RDW/">
<wsdl:types>
<xsd:schema targetNamespace="http://argus.cale.nl/soa/RDW/" elementFormDefault="qualified">
<xsd:element name="getOpenbVrtgInfo">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="licensePlate" type="xsd:string"/>
<xsd:element name="rdwUser" type="xsd:string"/>
<xsd:element name="rdwPassword" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="getOpenbVrtgInfoResponse" type="xsd:string"/>
</xsd:schema>
</wsdl:types>
<wsdl:message name="getOpenbVrtgInfoRequest">
<wsdl:part element="rdw:getOpenbVrtgInfo" name="parameters"/>
</wsdl:message>
<wsdl:message name="getOpenbVrtgInfoResponse">
<wsdl:part element="rdw:getOpenbVrtgInfoResponse" name="parameters"/>
</wsdl:message>
<wsdl:portType name="RDW">
<wsdl:operation name="getOpenbVrtgInfo">
<wsdl:input message="rdw:getOpenbVrtgInfoRequest"/>
<wsdl:output message="rdw:getOpenbVrtgInfoResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="RDWSOAP" type="rdw:RDW">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getOpenbVrtgInfo">
<soap:operation soapAction="http://argus.cale.nl/soa/RDW/getOpenbVrtgInfo"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="RDW">
<wsdl:port binding="rdw:RDWSOAP" name="RDWSOAP">
<soap:address location="http://argus.cale.nl/soa/rdw"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
</publishWSDL>
</proxy>