wso2esb - WSO2 ESB Show response in Tryit console -
hi using wso2 esb have created proxy named "query" work data salesforce , insert mssql database table, want show response in right response area
<?xml version="1.0" encoding="utf-8"?> <proxy xmlns="http://ws.apache.org/ns/synapse" name="query" startonload="true" statistics="disable" trace="disable" transports="http,https"> <target> <insequence> <salesforce.init> <username>$user$</username> <password>$password$$token$</password> <loginurl>https://login.salesforce.com/services/soap/u/27.0</loginurl> </salesforce.init> <salesforce.queryall> <batchsize>200</batchsize> <querystring>select id,name,account.name,assistantname,assistantphone,birthdate,createdby.name,department,description,email,homephone,lastmodifiedby.name,mobilephone,title contact</querystring> </salesforce.queryall> <sequence key="generatebatch"/> <iterate xmlns:sfdc="http://wso2.org/salesforce/adaptor" expression="//sfdc:iterator"> <target> <sequence> <salesforce.querymore> <batchsize>200</batchsize> </salesforce.querymore> <sequence key="generatebatch"/> </sequence> </target> </iterate> <respond/> <payloadfactory media-type="json"> <format>$1</format> <args> <arg evaluator="json" expression="$.response"/> </args> </payloadfactory> </insequence> <outsequence/> </target> <description/> </proxy>
you can try replace call dss payload examples debug.
in situation - iterate , send messages endpoint, don't agregate mediator after iterate.
Comments
Post a Comment