[
https://issues.apache.org/jira/browse/CAMEL-5815?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrej Zachar updated CAMEL-5815:
---------------------------------
Attachment: camel-spring-ws-replyTo-usingCamelAgain.patch
camel-spring-ws-replyTo-usingCamelAgain.patch
Hello Willem and Claus!
thanks for your quick integration!
As I said I have ready the last path containing initial proposal how could be
done reply to problem using camel channel again.
Image the sample situation:
1. Sent from the client a WSA message with the param
wsa:replyTo="mailto:[email protected]" to the server
2. On the server the camel spring-ws component somehow resolve the message,
prepare an answer by route processing and than
3. before replying back to the client with a response you can reply by the
definition of WSA to a different location, e.g. using reply To you can specify
to delivery message by email instead of http response.
Here we go: what if I want to reply prepare by camel route ? or use camel mail
component to reponde?
That's why I have create a initial solution for this problem using custom
messageSender, e.g. CamelDirectSender like this:
<bean id="camelDirectMessageSender"
class="org.apache.camel.component.spring.ws.bean.CamelDirectSender">
<property name="camelContext" ref="camelContext" />
</bean>
<route>
<from
uri="spring-ws:to:http://sender-camel.com?messageSender=#camelDirectMessageSender&endpointMapping=#wsaEndpointMapping"
/>
<to uri="okResponse" />
</route>
<route>
<from uri="direct:mailto:[email protected]" />
.... you can process the reply to as you wish, for
example using other component camel:mail:.....
</route>
Please let me know, what do you think about this solution.
In the patch, you can find test CamelDirectSender
(CamelDirectSenderTest-context.xml) that shows more how to use it
Your camel rider,
Andrej
> camel-spring-ws - Support for WS-Addressing Action
> --------------------------------------------------
>
> Key: CAMEL-5815
> URL: https://issues.apache.org/jira/browse/CAMEL-5815
> Project: Camel
> Issue Type: New Feature
> Components: camel-spring-ws
> Affects Versions: 2.11.0
> Reporter: Andrej Zachar
> Assignee: Willem Jiang
> Labels: patch
> Fix For: Future
>
> Attachments: camel-spring-ws-2.11.patch,
> camel-spring-ws-replyTo-usingCamelAgain.patch,
> camel-spring-ws-replyTo-usingCamelAgain.patch,
> camel-spring-ws-trunk-WS-Addressing-Support-IncludingTets.patch
>
> Original Estimate: 120h
> Remaining Estimate: 120h
>
> The camel spring-ws consumer doesn't currently support the WS-Addressing
> Action and camel cannot dispatch such a message properly. There is only one
> workaround available using a xpath, which is not a very straight forward
> solution.
> Based on my previous experience with the patch for attachments and headers I
> would like to implement this functionality.
> Please let me know if you have any comments or ideas that are left.
> In the solution I would like to implement a new universal endpoint mapping
> key:
> action
> which will act as the same as the key soapaction but it will add also a
> possibility to retrieve action from soap wsa:action header instead of current
> http SOAPAction.
> BTW: Are there any ideas how should be supported wsa:replyTo inside the
> camel-spring-ws or how should be supported other attributes of WS-Addressing?
> Cheers,
> Andrej
--
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