Hi Maduranga,

If you need a more deeper understanding about what happens when you invoke
the "dualquote" mode from the sampleClient, you need to dig in to the
source code.

1. First check on the axis2Client folder's src directory and find the
relevant location where this "dualquote" mode is used. (it is inside
axis2Client/src/samples/StockQuoteClient.java)
2. Then go to the source code of the related module (In this case it is
addressing module -
http://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/dependencies/axis2/1.6.1-wso2v10/modules/addressing/src/org/apache/axis2/handlers/addressing/
)

3. Check on the source code and you can find the place where this
addressing information are used.

4. Debug the source code and then you can find the actual values going
through when you invoke the client.

Normally, you can explore any of the sample if you dig deeper in to the
code and debug. It is always a best practice to debug when you hit some
road block like this. I hope this helps you.


Thanks,
Chanaka


On Thu, Dec 5, 2013 at 9:46 PM, Nirmal Fernando <[email protected]> wrote:

> I think this behavioud is because of the dual channel mode.
>
> See: (from documentation)
> "In the above example, the request received is forwarded to the sample
> service hosted on Axis2 and the endpoint specifies to enable addressing and
> do the invocation over a dual channel. If you observe this message flow by
> using a TCPmon, you could see that on the channel you send the request to
> synapse the response has been written as an HTTP 202 Accepted, where as the
> real response from synapse will come over a different channel which cannot
> be observed unless you use tcpdump to dump all the TCP level messages.
>
> At the same time you can observe the behavior of the invocation between
> synapse and the actual Axis2 service, where you can see a 202 Accepted
> message being delivered to synapse as the response to the request. The
> actual response will be delivered to synapse over a different channel."
>
>
> On Thu, Dec 5, 2013 at 10:18 AM, Maduranga Siriwardena <[email protected]
> > wrote:
>
>> this is the wire log for the message from esb to server
>> https://gist.github.com/madurangasiriwardena/7800197
>>
>>
>> On Thu, Dec 5, 2013 at 9:35 AM, Maduranga Siriwardena <[email protected]
>> > wrote:
>>
>>> Hi all,
>>> In sample 155 [1] (dual channel invocation on both client side and the
>>> server side of synapse with proxy services) both client - esb and esb -
>>> server connections are dual channel. When the esb sends a request to the
>>> server how does the server knows which address to reply? I can't see any
>>> header or something is set about replying address. There is a reply to
>>> element in the header of the soap message. But it does not contain a proper
>>> address. The text in the reply to element is "
>>> http://maduranga-Dell-System-Vostro-3450:8280/services/__ADDR_ONLY__";.
>>>
>>>
>>> [1]
>>> http://docs.wso2.org/display/ESB480/Sample+155%3A+Dual+Channel+Invocation+on+Both+Client+Side+and+Server+Side+of+Synapse+with+Proxy+Services
>>>
>>> Thank you.
>>>
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
--
Chanaka Fernando
Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya
Wordpress:http://chanakaudaya.wordpress.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to