You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by Bill Majurski <bm...@googlemail.com> on 2008/12/19 15:37:50 UTC
SOAPAction problem
I am trying to use Synapse to mediate an external service that cannot
accept async WS requests. So the request message (to Synapse) is
async, the output to the external service is synchronous and of course
the response from Synapse back to the client is on a separate channel.
This basically works...but...the SOAPAction returned to the client is
always urn:mediateResponse instead of of the value returned by the
external service. Interestingly, the log output from Synapse shows
the correct SOAPAction:
Sending To: http://www.w3.org/2005/08/addressing/anonymous
SOAPAction: urn:ihe:iti:2007:RegistryStoredQueryResponse
When I have the client issue a sync request (no ReplyTo header)
everything works as expected (reply SOAPAction has correct value).
BTW: the client is built from Axis2 and is configured to use Synapse
as a proxy.
Attached are the config file I used and the log output. Any advice
you can offer would be appreciated.
regards,
bill
Re: SOAPAction problem
Posted by Ruwan Linton <ru...@gmail.com>.
Hi bill,
Could you please try adding the following bit to the out mediator before
calling the send. If this doesn't work, please file a JIRA... we will
address this issue according to the priority.
<header name="Action" value="urn:ihe:iti:2007:RegistryStoredQueryResponse"/>
I know this is static, but if this works you can make it to be dynamic.
Thanks,
Ruwan
On Fri, Dec 19, 2008 at 8:07 PM, Bill Majurski <bm...@googlemail.com>wrote:
> I am trying to use Synapse to mediate an external service that cannot
> accept async WS requests. So the request message (to Synapse) is async, the
> output to the external service is synchronous and of course the response
> from Synapse back to the client is on a separate channel. This basically
> works...but...the SOAPAction returned to the client is always
> urn:mediateResponse instead of of the value returned by the external
> service. Interestingly, the log output from Synapse shows the correct
> SOAPAction:
> Sending To: http://www.w3.org/2005/08/addressing/anonymous
> SOAPAction: urn:ihe:iti:2007:RegistryStoredQueryResponse
>
> When I have the client issue a sync request (no ReplyTo header) everything
> works as expected (reply SOAPAction has correct value).
>
> BTW: the client is built from Axis2 and is configured to use Synapse as a
> proxy.
>
> Attached are the config file I used and the log output. Any advice you can
> offer would be appreciated.
>
> regards,
> bill
>
>
--
Ruwan Linton
http://wso2.org - "Oxygenating the Web Services Platform"
http://ruwansblog.blogspot.com/