|
From: john s. <dev...@ih...> - 2006-01-04 14:50:35
|
I would need to return a data structure as return value from a message reception. The whole thing has to be done in a synchronous way because the client (the one who posts the message) is behind a NAT (so the IP is not directly accesible and the receiver cannot instantiate a connection with the client whenever he wants) . I have tested the Acknowledge thing but the structure returned is as far as I know fixed (it is generated automatically without any kind of interaction with my onMessage function - in fact it looks as if the response with the acknowledgement is returned well before my onMessage returns). The ideal thing would be to be able to insert a custom made data structure in my onMessage that would somehow be sent in the response back and would be readable on the calling end. This would be a little like using EBMS to encapsulate a web service: I pass a request as a XML document (ebXMLMessage) and receive a response as another XML document (an ebXMLMessage again) that actually can contain response information, and all of this encapsulated with EBXML and using XML functionalities like signing and validation and so on. Is this possible with Hermes? Can this be done with EBXML? Thanks in advance. |