|
From: Geilfuss, B. <Bra...@Si...> - 2003-07-14 17:43:32
|
Thanks Cyng. This sounds like it should do what I want, however, when the element = <ToUrlResolver> is set, will it cause the Request object to resolve the = <To><PartyID> element every time send() or sendReliably() are called, or = will it only resolve the target MSH upon instantiation of the Request = object (and persistently send messages to that MSH)? Also, what is the = parent of <ToUrlResolver> in msh.properties.xml? I've tried putting it = under <Config>. Brad =3D=3D Brad Geilfuss Sierra Systems 400 N. Continental Blvd., Suite 300 El Segundo, CA 90245 www.SierraSystems.com -----Original Message----- From: Ng Chi Yuen [Cyng] [mailto:cy...@cs...] Sent: Saturday, July 12, 2003 7:44 AM To: ebx...@li... Cc: Geilfuss, Brad Subject: Re: [ebxmlms-general] Request object Hi, > Unfortunately, it seems as if the Request object always sends the > message to the MSH that was specified upon instantiation, regardless = of > what I pass in using MessageHeader.addToPartyId(). Am I > missinterpretting the function of adding a "to party" to an ebxml > message as header? In msh.properties.xml, there is a property <ToUrlResolver>. You can uncomment it to = hk.hku.cecid.phoenix.message.handler.ToUrlResolverImpl. This mechanism works as follows. If such a ToUrlResolver implementation does not exist, Request will always use toMshUrl = (specified upon Request instantiation). Otherwise, ToUrlResolver will try to = examine the <To><PartyId> in the ebXML message to see if it is a resolvable URL with supported transport protocol, say, http://, and this URL will be = used then. However, if the <To><PartyId> is not resolvable, say, urn:oasis:, Request falls back to use toMshUrl. So, you can implement your own ToUrlResolver and set it in msh.properties.xml to map those schema names like urn:oasis: to a physical URL of HTTP or Mail. 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 -------------------------------------------------------------------------= --- |