You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by Rajesh_lakhotia <la...@gmail.com> on 2009/09/15 23:59:22 UTC

Synapse is nor sending response back

Hi,
I have a proxiy service configured to route to different destination.
Routing is working fine and I see that destination has sent a reponse back
but Synapse is not forwarding that response back to client.
Am I missing any config ?
http://www.nabble.com/file/p25462596/synapse_sample_999.xml
synapse_sample_999.xml 
-- 
View this message in context: http://www.nabble.com/Synapse-is-nor-sending-response-back-tp25462596p25462596.html
Sent from the Synapse - User mailing list archive at Nabble.com.


Re: Synapse is nor sending response back

Posted by Ruwan Linton <ru...@gmail.com>.
Hi Rajesh,

Nice to hear that you got it resolved, let me comment on adding an out
mediator to the main sequence.

So there are tow basic operational model for messaging within Synapse which
are, proxy services and message mediation. In the case of proxy service the
message gets dispatched to it and the inSequence and outSequence that you
used for the proxy will be used for incoming and outgoing messages
respectively. But in the case of message mediation the message is always
directed to the main sequence regardless of the fact that the message is a
incoming or an outgoing message.

So adding an out mediator to the main sequecne will also work in this
particualr case because the out mediator filters out the outgoing messages
while inmediator takes the incoming messages, but that is not through the
proxy serivce. So the model is conceptualy wrong.

Hope this clarifies it for you.

Thanks,
Ruwan.

On Thu, Sep 17, 2009 at 2:45 AM, Rajesh_lakhotia <la...@gmail.com>wrote:

>
> Hello Ruwan,
> Thanks that worked flawlessly.
>
> I thought I need to add an "out" mediator to main sequence. Tried that, and
> it worked but that would have been wrong.
>
> Appreciate your support.
>
>
> Ruwan Linton wrote:
> >
> > Hi Rajesh,
> >
> > The issue is you are sending this request to the main sequence without
> > going
> > through the proxy service; The address that you have used to invoke the
> > ESB
> > from the client seems to be;
> >
> > http://localhost:8280/services/
> >
> > but in order to invoke the proxy service you need to send the request to
> > the
> > proxy service specifying the service name in the addres as follows;
> >
> > http://localhost:8280/services/AvnEsbService
> >
> > Since it is not going through the proxy service the response is also
> being
> > delivered to the main sequence and it drops the message since it is an
> > response message and there is no mediators to be executed for the out
> > path.
> >
> > Thanks,
> > Ruwan
> >
> > On Wed, Sep 16, 2009 at 8:47 PM, Rajesh_lakhotia
> > <la...@gmail.com>wrote:
> >
> >>
> >> Thanks Ruwan for helping me in this ...
> >> Attaching the log file...
> >> http://www.nabble.com/file/p25474604/synapse-Rajesh.log
> >> synapse-Rajesh.log
> >>
> >>
> >>
> >> Ruwan Linton wrote:
> >> >
> >> > Hi Rajesh,
> >> >
> >> > Your configuration seems to be fine. Please run synapse in the DEBUG
> >> log
> >> > level (change the org.apache.synapse log level in the log4j.properties
> >> > file
> >> > in the lib directory to DEBUG from INFO), and attach the debug log, so
> >> > that
> >> > I can analyse what went wrong.
> >> >
> >> > Thanks,
> >> > Ruwan
> >> >
> >> > On Wed, Sep 16, 2009 at 3:29 AM, Rajesh_lakhotia
> >> > <la...@gmail.com>wrote:
> >> >
> >> >>
> >> >> Hi,
> >> >> I have a proxiy service configured to route to different destination.
> >> >> Routing is working fine and I see that destination has sent a reponse
> >> >> back
> >> >> but Synapse is not forwarding that response back to client.
> >> >> Am I missing any config ?
> >> >> http://www.nabble.com/file/p25462596/synapse_sample_999.xml
> >> >> synapse_sample_999.xml
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://www.nabble.com/Synapse-is-nor-sending-response-back-tp25462596p25462596.html
> >> >> Sent from the Synapse - User mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >
> >> >
> >> > --
> >> > Ruwan Linton
> >> > Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb
> >> > WSO2 Inc.; http://wso2.org
> >> > email: ruwan@wso2.com; cell: +94 77 341 3097
> >> > blog: http://ruwansblog.blogspot.com
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Synapse-is-nor-sending-response-back-tp25462596p25474604.html
> >> Sent from the Synapse - User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > --
> > Ruwan Linton
> > Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb
> > WSO2 Inc.; http://wso2.org
> > email: ruwan@wso2.com; cell: +94 77 341 3097
> > blog: http://ruwansblog.blogspot.com
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Synapse-is-nor-sending-response-back-tp25462596p25480815.html
> Sent from the Synapse - User mailing list archive at Nabble.com.
>
>


-- 
Ruwan Linton
Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ruwan@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com

Re: Synapse is nor sending response back

Posted by Rajesh_lakhotia <la...@gmail.com>.
Hello Ruwan,
Thanks that worked flawlessly.

I thought I need to add an "out" mediator to main sequence. Tried that, and
it worked but that would have been wrong.

Appreciate your support.


Ruwan Linton wrote:
> 
> Hi Rajesh,
> 
> The issue is you are sending this request to the main sequence without
> going
> through the proxy service; The address that you have used to invoke the
> ESB
> from the client seems to be;
> 
> http://localhost:8280/services/
> 
> but in order to invoke the proxy service you need to send the request to
> the
> proxy service specifying the service name in the addres as follows;
> 
> http://localhost:8280/services/AvnEsbService
> 
> Since it is not going through the proxy service the response is also being
> delivered to the main sequence and it drops the message since it is an
> response message and there is no mediators to be executed for the out
> path.
> 
> Thanks,
> Ruwan
> 
> On Wed, Sep 16, 2009 at 8:47 PM, Rajesh_lakhotia
> <la...@gmail.com>wrote:
> 
>>
>> Thanks Ruwan for helping me in this ...
>> Attaching the log file...
>> http://www.nabble.com/file/p25474604/synapse-Rajesh.log
>> synapse-Rajesh.log
>>
>>
>>
>> Ruwan Linton wrote:
>> >
>> > Hi Rajesh,
>> >
>> > Your configuration seems to be fine. Please run synapse in the DEBUG
>> log
>> > level (change the org.apache.synapse log level in the log4j.properties
>> > file
>> > in the lib directory to DEBUG from INFO), and attach the debug log, so
>> > that
>> > I can analyse what went wrong.
>> >
>> > Thanks,
>> > Ruwan
>> >
>> > On Wed, Sep 16, 2009 at 3:29 AM, Rajesh_lakhotia
>> > <la...@gmail.com>wrote:
>> >
>> >>
>> >> Hi,
>> >> I have a proxiy service configured to route to different destination.
>> >> Routing is working fine and I see that destination has sent a reponse
>> >> back
>> >> but Synapse is not forwarding that response back to client.
>> >> Am I missing any config ?
>> >> http://www.nabble.com/file/p25462596/synapse_sample_999.xml
>> >> synapse_sample_999.xml
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Synapse-is-nor-sending-response-back-tp25462596p25462596.html
>> >> Sent from the Synapse - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>> > --
>> > Ruwan Linton
>> > Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb
>> > WSO2 Inc.; http://wso2.org
>> > email: ruwan@wso2.com; cell: +94 77 341 3097
>> > blog: http://ruwansblog.blogspot.com
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Synapse-is-nor-sending-response-back-tp25462596p25474604.html
>> Sent from the Synapse - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Ruwan Linton
> Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb
> WSO2 Inc.; http://wso2.org
> email: ruwan@wso2.com; cell: +94 77 341 3097
> blog: http://ruwansblog.blogspot.com
> 
> 

-- 
View this message in context: http://www.nabble.com/Synapse-is-nor-sending-response-back-tp25462596p25480815.html
Sent from the Synapse - User mailing list archive at Nabble.com.


Re: Synapse is nor sending response back

Posted by Ruwan Linton <ru...@gmail.com>.
Hi Rajesh,

The issue is you are sending this request to the main sequence without going
through the proxy service; The address that you have used to invoke the ESB
from the client seems to be;

http://localhost:8280/services/

but in order to invoke the proxy service you need to send the request to the
proxy service specifying the service name in the addres as follows;

http://localhost:8280/services/AvnEsbService

Since it is not going through the proxy service the response is also being
delivered to the main sequence and it drops the message since it is an
response message and there is no mediators to be executed for the out path.

Thanks,
Ruwan

On Wed, Sep 16, 2009 at 8:47 PM, Rajesh_lakhotia <la...@gmail.com>wrote:

>
> Thanks Ruwan for helping me in this ...
> Attaching the log file...
> http://www.nabble.com/file/p25474604/synapse-Rajesh.log synapse-Rajesh.log
>
>
>
> Ruwan Linton wrote:
> >
> > Hi Rajesh,
> >
> > Your configuration seems to be fine. Please run synapse in the DEBUG log
> > level (change the org.apache.synapse log level in the log4j.properties
> > file
> > in the lib directory to DEBUG from INFO), and attach the debug log, so
> > that
> > I can analyse what went wrong.
> >
> > Thanks,
> > Ruwan
> >
> > On Wed, Sep 16, 2009 at 3:29 AM, Rajesh_lakhotia
> > <la...@gmail.com>wrote:
> >
> >>
> >> Hi,
> >> I have a proxiy service configured to route to different destination.
> >> Routing is working fine and I see that destination has sent a reponse
> >> back
> >> but Synapse is not forwarding that response back to client.
> >> Am I missing any config ?
> >> http://www.nabble.com/file/p25462596/synapse_sample_999.xml
> >> synapse_sample_999.xml
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Synapse-is-nor-sending-response-back-tp25462596p25462596.html
> >> Sent from the Synapse - User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > --
> > Ruwan Linton
> > Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb
> > WSO2 Inc.; http://wso2.org
> > email: ruwan@wso2.com; cell: +94 77 341 3097
> > blog: http://ruwansblog.blogspot.com
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Synapse-is-nor-sending-response-back-tp25462596p25474604.html
> Sent from the Synapse - User mailing list archive at Nabble.com.
>
>


-- 
Ruwan Linton
Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ruwan@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com

Re: Synapse is nor sending response back

Posted by Rajesh_lakhotia <la...@gmail.com>.
Thanks Ruwan for helping me in this ...
Attaching the log file...
http://www.nabble.com/file/p25474604/synapse-Rajesh.log synapse-Rajesh.log 



Ruwan Linton wrote:
> 
> Hi Rajesh,
> 
> Your configuration seems to be fine. Please run synapse in the DEBUG log
> level (change the org.apache.synapse log level in the log4j.properties
> file
> in the lib directory to DEBUG from INFO), and attach the debug log, so
> that
> I can analyse what went wrong.
> 
> Thanks,
> Ruwan
> 
> On Wed, Sep 16, 2009 at 3:29 AM, Rajesh_lakhotia
> <la...@gmail.com>wrote:
> 
>>
>> Hi,
>> I have a proxiy service configured to route to different destination.
>> Routing is working fine and I see that destination has sent a reponse
>> back
>> but Synapse is not forwarding that response back to client.
>> Am I missing any config ?
>> http://www.nabble.com/file/p25462596/synapse_sample_999.xml
>> synapse_sample_999.xml
>> --
>> View this message in context:
>> http://www.nabble.com/Synapse-is-nor-sending-response-back-tp25462596p25462596.html
>> Sent from the Synapse - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Ruwan Linton
> Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb
> WSO2 Inc.; http://wso2.org
> email: ruwan@wso2.com; cell: +94 77 341 3097
> blog: http://ruwansblog.blogspot.com
> 
> 

-- 
View this message in context: http://www.nabble.com/Synapse-is-nor-sending-response-back-tp25462596p25474604.html
Sent from the Synapse - User mailing list archive at Nabble.com.


Re: Synapse is nor sending response back

Posted by Ruwan Linton <ru...@gmail.com>.
Hi Rajesh,

Your configuration seems to be fine. Please run synapse in the DEBUG log
level (change the org.apache.synapse log level in the log4j.properties file
in the lib directory to DEBUG from INFO), and attach the debug log, so that
I can analyse what went wrong.

Thanks,
Ruwan

On Wed, Sep 16, 2009 at 3:29 AM, Rajesh_lakhotia <la...@gmail.com>wrote:

>
> Hi,
> I have a proxiy service configured to route to different destination.
> Routing is working fine and I see that destination has sent a reponse back
> but Synapse is not forwarding that response back to client.
> Am I missing any config ?
> http://www.nabble.com/file/p25462596/synapse_sample_999.xml
> synapse_sample_999.xml
> --
> View this message in context:
> http://www.nabble.com/Synapse-is-nor-sending-response-back-tp25462596p25462596.html
> Sent from the Synapse - User mailing list archive at Nabble.com.
>
>


-- 
Ruwan Linton
Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ruwan@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com