|
From: Ng C. Y. [Cyng] <cy...@cs...> - 2003-02-10 02:00:00
|
Hi,
> I have an application registered with MSH1 (let us call it S1)
> and another application registered with MSH2. (say R1)
> MSH1, MSH2 are two different msh servers.
> I am attempting to send a message from S1 to R1.
> Do I send a message with the TO_PARTY_ID as (URL) MSH2, (since
> R1's URL is not visible to S1). I have the same CPAID, etc. for both
> S1 and R1 and they are registered respectively to their MSHs.
> Now, I am lost at this point - How does MSH1 send to MSH2 since there
> is no registration, etc. going on between them.
You can visualize in this way:
Request1 <------> S1(MSH1) <=============> R1(MSH2) <------> Request2
register register
(a,b,c,d) (e,f,g,h)
Request1 registers to its own S1(MSH1) with ApplicationContext=(a,b,c,d).
That means it is expecting to receive messages with (a,b,c,d) from R1.
Similarly, Request2 registers to its own R1(MSH2) with
ApplicationContext=(e,f,g,h). That means S1(MSH1) will send messages with
(e,f,g,h) to R1(MSH2) and the "toMshUrl" of Request1 should be R1's URL.
Currently, you are advised to also set the TO_PARTY_ID to be R1's URL
(though the actual sending uses "toMshUrl") and the FROM_PARTY_ID to be
S1's URL.
Hope this help.
Regards,
CY
----------------------------------------------------------------------------
Ng Chi Yuen, CY. cy...@ce... http://www.cecid.hku.hk/
Technology Officer,
Centre for E-Commerce Infrastructure Development,
The University of Hong Kong
----------------------------------------------------------------------------
|