Dear Filip,
we are currently working on exactly the same problem, because it would be simple and neat solution. However we didn't get there so far, so maybe it could be interesting to have closer look at what it is exactly that doesn't work. Do you have a process defined, that fails? Then maybe you could send the process files so we could have a look it?

We found that the WS-addressing did not seem to work with axis2 1.4.1 and you should try axis2 1.5 on the service side. To enable wsa support and asynchronous invocation add the following to your services.xml within the service tags:

<module ref="addressing" />
<parameter name="messageReceiver.invokeOnSeparateThread">true</ parameter>

There will be other problems however:
- providing the correct port, role and partnerlink type, in the bpel process for the service to reply to - If I try to use a <invoke> and <receive> secence for invoking the service, the invoke waits for the service to reply even though the wsa:replyto works and the invoke will be called and waits and times out. The documentation on this topic is unfortunately totally incomplete. Maybe we can try to resolve this together.
Best
Michael

Am 07.10.2009 um 20:40 schrieb Filip Majernik:

Hi,
I want to invoke an asynchronous Web Service from ode, but I cannot figure out how to change wsa:ReplyTo header. I've read about the EPR configuration
on the ode website and tried something like this:

<bpel:assign>
   <bpel:copy>
       <bpel:from>
           <bpel:literal>
               <wsa:EndpointReference xmlns:wsa="
http://www.w3.org/2005/08/addressing";>
                   <wsa:Address>
http://localhost:8080/axis2/services/MyService</wsa:Address>
                   <wsa:ReplyTo><wsa:Address>
http://localhost:8080/axis2/services/ReplyToService
</wsa:Address></wsa:ReplyTo>
               </wsa:EndpointReference>
           </bpel:literal>
       </bpel:from>
       <bpel:to partnerLink="testPartnerLink"/>
   </bpel:copy>
</bpel:assign>

but it isn't working. Does anyone maybe have a working example of changing the wsa:ReplyTo header (and invoking and asynchronous service) when invoking
a service??? Or is it possible at all?

Btw. my configuration is:
apache ode 1.3.2
the webservice I am invoking is running on apache axis 1.4

Thank you guys in advance.
Filip


Reply via email to