Last active
June 13, 2019 05:49
-
-
Save chanakaudaya/6ee7b61543dff5543043c611ded78e4d to your computer and use it in GitHub Desktop.
WSO2 Synapse mediation sequence to build a SOAP message for SOAP 12 namespace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<sequence name="PayloadFactorySOAP12Sequence" trace="disable" xmlns="http://ws.apache.org/ns/synapse"> | |
<payloadFactory media-type="xml"> | |
<format> | |
<soap:Envelope xmlns:ns="http://www.viewstar.com/webservices/2002/11" xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> | |
<soap:Header/> | |
<soap:Body> | |
<ns:Login> | |
<ns:loginId>$1</ns:loginId> | |
<ns:password>$2</ns:password> | |
<ns:groupName/> | |
<ns:loginMode>$3</ns:loginMode> | |
</ns:Login> | |
</soap:Body> | |
</soap:Envelope> | |
</format> | |
<args> | |
<arg evaluator="json" expression="$.loginId" literal="true"/> | |
<arg evaluator="json" expression="$.password" literal="true"/> | |
<arg evaluator="json" expression="$.loginMode" literal="true"/> | |
</args> | |
</payloadFactory> | |
<property name="messageType" scope="axis2" type="STRING" value="application/soap+xml"/> | |
<log level="full"/> | |
</sequence> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment