1
WSO2 ESB에 배포 된 프록시 서비스에서 페이로드 중재자를 사용하여 기존 값을 새 값으로 매핑합니다. 그것은 잘 작동하지만 그것은 단지 내가 변환 한 값을 보여줍니다. 나머지 응답도 표시하고 싶습니다. 페이로드 중재자 또는 다른 중개자를 사용하여이를 수행 할 여지가 있습니까?WSO2 esy의 페이로드 중재자를 통해 모든 기본 응답 값 전달
WSDL : 나는 응답 이제 네 개의 속성을 얻고있다
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="Person_Proxy"
transports="https,http"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<inSequence>
<send>
<endpoint>
<address uri="http://www.example.com/xsd/Person_01_RequestResponse_001"/>
</endpoint>
</send>
</inSequence>
<outSequence>
<payloadFactory media-type="xml">
<format>
<m:GetPersonResponse xmlns:m="http://example.com/TimeWriter/Person">
<m:NationalIdentityNumber>$1</m:NationalIdentityNumber>
<m:CountryCode>$2</m:CountryCode>
<m:FirstName>$3</m:FirstName>
<m:LastName>$4</m:LastName>
<m:HomePhone>$5</m:HomePhone>
</m:GetPersonResponse>
</format>
<args>
<arg xmlns:m0="http://www.example.com/xsd/Person_01"
evaluator="xml"
expression="//m0:CNIC"/>
<arg xmlns:m0="http://www.example.com/xsd/Person_01"
evaluator="xml"
expression="//m0:Country"/>
<arg xmlns:m0="http://www.example.com/xsd/Person_01"
evaluator="xml"
expression="//m0:FirstName"/>
<arg xmlns:m0="http://www.example.com/xsd/Person_01"
evaluator="xml"
expression="//m0:LastName"/>
<arg xmlns:m0="http://www.example.com/xsd/Person_01"
evaluator="xml"
expression="//m0:HomePhone"/>
</args>
</payloadFactory>
<send/>
</outSequence>
<endpoint>
<address uri="http://localhost:8080/Person_01/services/PersonSOAP"/>
</endpoint>
</target>
<description/>
</proxy>
내가 명시 적으로 변화했다. 나는 나머지 속성들도 원한다. SoapUI 도구를 사용하여이 서비스를 테스트하고 있습니다.
송수신 메시지와 필요한 보내는 메시지의 예를 공유하십시오. –