Soap wso2esb肥皂对痘用肥皂代替肥皂给出痘的答案
我已经在WSO2ESB版本4.8.1中创建了一个soap-to-pox代理,以便可以从BPEL调用该服务。此代理将消息转换为POX(使用Soap wso2esb肥皂对痘用肥皂代替肥皂给出痘的答案,soap,proxy,wso2,wso2esb,pox,Soap,Proxy,Wso2,Wso2esb,Pox,我已经在WSO2ESB版本4.8.1中创建了一个soap-to-pox代理,以便可以从BPEL调用该服务。此代理将消息转换为POX(使用)。我在日志中看到服务被正确调用,并且返回了有效的响应 响应是没有名称空间的纯XML ESB返回此答案,而不将其包装在soap信封中。为什么会这样?我想应该把它包起来 谁能告诉我我错过了什么 下面是我的代理定义 <?xml version="1.0" encoding="UTF-8"?> <proxy xmlns="http://ws.apac
)。我在日志中看到服务被正确调用,并且返回了有效的响应
响应是没有名称空间的纯XML
ESB返回此答案,而不将其包装在soap信封中。为什么会这样?我想应该把它包起来
谁能告诉我我错过了什么
下面是我的代理定义
<?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>
$1
$2
2336
1.
$3
在后续操作中,在发送mediatior之前,如果需要SOAP响应,应添加此属性:
<property name="messageType" value="text/xml" scope="axis2" />