현재 시나리오는 사용자의 이름을 알려주면 사용자의 전자 메일 주소를 반환하는 데이터 서비스로부터 웹 서비스를 공개합니다. 이제 ESB에서이 웹 서비스를 사용하고 속성에서이 웹 서비스의 전자 메일 ID를 가져 와서 LOG 중재자를 사용하여 콘솔에 표시하려고합니다. 지금 어떻게해야하며 어떻게해야합니까?wso2 DSS server와 wso2를 통합하는 방법 ESB
죄송하지만이 바보 같은 질문에 대해 wso2 esb의 최신 회원입니다. 그러니 제발 도와주세요.
Now ihave a response like:
<brs:getRecipientKeyResponse xmlns:brs="http://brs.carbon.wso2.org">
<brs:MailRecipient xsi:type="ax2338:MailRecipient" xmlns:ax2338="http://email.samples/xsd" xmlns:ax2337="http://email.samples/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ax2337:recipient>kevin</ax2337:recipient>
</brs:MailRecipient>
</brs:getRecipientKeyResponse>
Ihave to get the recipient element from this response and put this in payload. My complete sequence for this is:
<sequence xmlns="http://ws.apache.org/ns/synapse" name="receiveSeq">
<log>
<property name="getRecipient" value="------------Trying to get data Fom BRS Response----------------------------"/>
<property xmlns:ns="http://org.apache.synapse/xsd" xmlns:ax2337="http://email.samples/xsd" name="Recipient" expression="//ax2337:recipient"/>
</log>
<payloadFactory>
<format>
<p:GetEmailDetails xmlns:p="http://ws.wso2.org/dataservice">
<xs:name xmlns:xs="http://ws.wso2.org/dataservice">$1</xs:name>
</p:GetEmailDetails>
</format>
<args>
<arg xmlns:ns="http://org.apache.synapse/xsd" xmlns:ax2337="http://email.samples/xsd" expression="//ax2337:recipient"/>
</args>
</payloadFactory>
<log>
<property xmlns:ns="http://org.apache.synapse/xsd" name="getName" expression="get-property('Recipient')"/>
</log>
<send receive="DBSeq">
<endpoint key="emailServiceEP"/>
</send>
</sequence>
<!--this part is not able to get data --->
<property xmlns:ns="http://org.apache.synapse/xsd" name="getName" expression="get-property('Recipient')"/>
다른 문제가 있습니다. 수취인이라는 건물에 이름을 붙였습니다. 이제 이것을 페이로드 팩토리에 전달하고 싶습니다. 이 작업을 수행하는 방법? – Roy
내 코드는 다음과 같습니다. –
Roy