You must create your own Handler class and add it to handler chain.
Each handler  have public void invoke(MessageContext context)  method,
inside which you can access DOM objects.

On 4/11/07, Abid Hussain <[EMAIL PROTECTED]> wrote:
Hi everybody,

I posted that question some time ago, but still didn't find a solution
even though people gave me some hints after my posting. I have to
confess that I'm not an expert in xfire.

In the user guide article about the message context
(http://xfire.codehaus.org/MessageContext) it says that in order to get
the message xml one can use the DOMIn/OutHandler like:
service.addInHandler(new DOMInHandler())
service.addOutHandler(new DOMInHandler())

Ok, that's simple. But then it is written that one can access the xml
document like:
public void invoke(MessageContext context) {
   Document inputDoc =
context.getInMessage().getProperty(DOMInHandler.DOM_MESSAGE):
   Document outputDoc =
context.getOutMessage().getProperty(DOMOutHandler.DOM_MESSAGE):
}

What I don't understand is, where in my code I should actually put the
invoke() method. I mean, there is an invoke() methode inside the
DOMIn/OutHandler, but as far as I understood the case, it is not meant
to extend the DOMIn/OutHandler.

Best regards,

Abid

--

Abid Hussain
Mail: [EMAIL PROTECTED]
Web: http://www.abid76.de

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email




--
-----
When one of our products stops working, we'll blame another vendor
within 24 hours.

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to