Hi Waqas Ali Razzaq,
thank you for replying , i got the response for the below
code.
<?xml version="1.0" encoding="UTF-8"?>
<sequence name="callTokenService_flow" trace="disable"
xmlns="http://ws.apache.org/ns/synapse">
<log level="custom">
<property name="insideToken" value="inside the token esb"/>
</log>
<payloadFactory media-type="xml">
<format>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<root xmlns="">
<grant_type>client_credentials</grant_type>
</root>
</soapenv:Body>
</soapenv:Envelope>
</format>
<args/>
</payloadFactory>
<call>
<endpoint>
<http method="post"
uri-template="https://localhost:8243/token"/>
<property expression="fn:concat('Basic
','WnRJQWVNUHdiR1dVcnRueE5hRWtnanhuVGNrYTplRkwwSUJ4MXRNU25SSmgwTGtySFNNVXF4akVh')"
name="Authorization" scope="transport"
xmlns:ns="http://org.apache.synapse/xsd"/>
<property name="messageType" scope="axis2"
value="application/x-www-form-urlencoded"/>
<property name="grant_type" scope="axis2"
value="client_credentials"/>
<property name="Content-Type" scope="transport"
value="application/x-www-form-urlencoded"/>
</endpoint>
</call>
<enrich>
<source clone="true" type="body"/>
<target property="response" type="property"/>
</enrich>
<log level="custom">
<property expression="$ctx:response"
name="MESSAGE###########################3"/>
<property expression="get-property('ENDPOINT_PREFIX')"
name="Endpoint"/>
<property expression="get-property('transport', 'Content-Type')"
name="Content-Type"/>
</log>
</sequence>
Regards,
Seetha
--
Sent from: http://wso2-oxygen-tank.10903.n7.nabble.com/WSO2-Development-f3.html
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev