synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Isuru Udana Loku Narangoda (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SYNAPSE-965) Callout mediator to use 'To' header as EPR
Date Sat, 10 Aug 2013 17:18:48 GMT
Isuru Udana Loku Narangoda created SYNAPSE-965:
--------------------------------------------------

             Summary: Callout mediator to use 'To' header as EPR
                 Key: SYNAPSE-965
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-965
             Project: Synapse
          Issue Type: Improvement
            Reporter: Isuru Udana Loku Narangoda
            Assignee: Hiranya Jayathilaka
            Priority: Minor


Callout mediator can be improved to use the 'To' header as the EPR when serviceURL is not
specified.
This will allow us to dynamically set the EPR using the incoming message payload etc. 
This is similar to the use case of Default Endpoint which uses the 'To' header to send the
message out.

So the sample config looks like follows when serviceURL is not specified.

        <header name="To" value="http://localhost:9000/services/SimpleStockQuoteService"/>
        <callout action="urn:getQuote">
            <source xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
                    xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
                    xpath="s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]"/>
            <target xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/"
                    xmlns:s12="http://www.w3.org/2003/05/soap-envelope"
                    xpath="s11:Body/child::*[fn:position()=1] | s12:Body/child::*[fn:position()=1]"/>
        </callout>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message