|
From: Geilfuss, B. <Bra...@Si...> - 2003-07-11 16:54:20
|
Hi- I've been writing an MSH server that listens and accepts ebxml messages = from a number of seperate, remote MSH sources; and then attempts to = respond asynchronously to the senders with new ebxml messages.=20 I implemented it by creating a single Request object with a single = MessageListener. When I want to respond to a message, I check the "from = party" ID in the received EbxmlMessage, and create a new EbxmlMessage to = which I add MessageHeader objects with new "to party" ID's specified by = MessageHeader.addToPartyID(). 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? =20 If this is the case, it seems like I would have to create a new Request = object everytime I receive a message from a different remote MSH that I = want to respond to, and pass each Request object another reference to = the listener. Is there a better recommended way? Another issue- if the "to party" header has no relationship to the = actual receiver of the message (and seemingly the "from party" header to = the sender), what are the functions of these headers? regards, b.geilfuss =3D=3D Brad Geilfuss Sierra Systems 400 N. Continental Blvd., Suite 300 El Segundo, CA 90245 Main: 310.536.6288 www.SierraSystems.com=20 |