wso2 esb service endpoint in request -


i getting service endpoint input soap request wso2 esb, based on need send payload data endpoint , response client. please advise how send payload endpoint. tried header mediator no luck. following soap xml request coming esb has service endpoint reference, under property element.

<soapenv:envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"> <soapenv:body> <resources> <resource>
<properties> <property name="location" value="http://localhost:8280/services/echo.echohttpsoap11endpoint"/> </properties> </resource> </resources> </soapenv:body> </soapenv:envelope>

first retrieve address value using expression "//properties/property/@value". set address of header mediator , send message.

         <property name="address" expression="//properties/property/@value"/>          <header name="to" expression="get-property('address')"/>          <payloadfactory>           <format>            <p:echoint xmlns:p="http://echo.services.core.carbon.wso2.org">               <in xmlns="">$1</in>            </p:echoint>          </format>           <args>            <arg value="1"/>          </args>         </payloadfactory>      <send/> 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -