[
https://issues.apache.org/jira/browse/SYNAPSE-965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13736396#comment-13736396
]
Hudson commented on SYNAPSE-965:
--------------------------------
SUCCESS: Integrated in Synapse - Trunk #4708 (See
[https://builds.apache.org/job/Synapse%20-%20Trunk/4708/])
Making it possible to send requests using the To header in the callout
mediator. Patch applied from SYNAPSE-965 (hiranya: rev 1512987)
*
/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/CalloutMediatorFactory.java
*
/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/CalloutMediatorSerializer.java
*
/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CalloutMediator.java
*
/synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/config/xml/CalloutMediatorSerializationTest.java
*
/synapse/trunk/java/modules/documentation/src/site/xdoc/userguide/mediators.xml
> 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
> Fix For: NIGHTLY
>
> Attachments: SYNAPSE-960-SYNAPSE-965-Documentation.patch,
> SYNAPSE-965.patch
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]