Friday, March 23, 2012

Manipulating HTTP headers via Unified-Endpoints

WSO2 Carbon platform supports unified-endpoints(UEPs) to configure partner endpoints which are used in the BPEL processes. In more general terms, UEPs facilitate for a generalized way of configuring endpoints taking quality of service into the picture.
The following sample provides a guide on how to manipulate HTTP headers for an request message of the given endpoint.

<wsa:EndpointReference
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3schools.com uep_schema.xsd"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/">
<wsa:Address>http://localhost:8290/services/GetProxy.GetProxyHttpSoap11Endpoint
</wsa:Address>
<wsa:Metadata>
<id>SInvokeEPR</id>
<transport type="http">
<Transfer-Encoding>chunked</Transfer-Encoding>
<Content-Encoding>gzip</Content-Encoding>
</transport>
</wsa:Metadata>
</wsa:EndpointReference>

Related Posts