You may want to approach this from the perspective of a message-based service invocation. That is, you invoke it with XML, and you get XML back (no marshalling/unmarshalling). Your service may need to be exposed using SOAP's "message" binding, but I'm not sure on that point.
You can still use JAXB to build your request, just build the objects, as you need to, have JAXB build the XML, then invoke the service with the XML (instead of letting XFire handle it under the covers). If you do this explicitly, XFire should stay out of your way for the response and you should be able to get the functionality you need. XFire will have a hard (if not impossible) time acting with a split-personality disorder (document/rpc binding on the request, message binding on the response). Cheers, Brice -----Original Message----- From: Tomek Sztelak [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 13, 2006 1:44 PM To: [email protected] Subject: Re: [xfire-user] Is there a way to dump the soap response message body to a file when using XFire as a client? Hi, If i understand correctly, you want to get response as xml data instead of converting it back to java object ? If so, then i don't any way to do it , sorry. On 12/13/06, Chad Sapp <[EMAIL PROTECTED]> wrote: > > > Is there a way to use XFire as a client to call a web service but insert a > handler that will dump the message body of the response to a file instead of > putting it through all of the XML parsing code? I have not found a handler > in the source code or examples that is able to bypass the XML parsing. > > I did figure out how to attach the DomInHandler and then I added my own > custom handler that is similar to the LoggingHandler to dump a web service > response to a file. However, this is going through the XML parsing layer > and (if I understand the framework correctly) will add a lot of extra > overhead to the interface that I am trying to build. I just need to use the > JAXB bindings to build the request but then intercept the response before it > is parsed and drop it into a file. Is this possible with XFire? -- ----- 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 --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
