Re: wrting a soap response to file
- From: jude.ulibarri@xxxxxxxxxxxxxxx
- Date: Mon, 11 Aug 2008 11:51:12 -0700 (PDT)
On Aug 11, 1:37 pm, jude.uliba...@xxxxxxxxxxxxxxx wrote:
On Aug 11, 1:29 pm, jude.uliba...@xxxxxxxxxxxxxxx wrote:
On Aug 11, 12:32 pm, "Mike Schilling" <mscottschill...@xxxxxxxxxxx>
wrote:
jude.uliba...@xxxxxxxxxxxxxxx wrote:
Hello:
I'm using AXIS to create a SOAP Envelope. I can successfully send
this request to the web service and get a response back. But now, I
want to write the response to file. How is this done?
What form do you have the response in? If it's XML, you can use a
java.xml.transform.Transformer to turn it into a byte stream and write
those bytes to a file. (Use a StreamResult constructed from a File or
a FileOutputStream.)
The response is in an AXIS SOAPEnvelope object. Let me look at any
other return values that an axis.client.Call will return. I'll also
try the Transformer class
The Transformer constructor takes an XML source and a result. Well,
it doesn't recognize the SOAPEnvelope as an XML source. I'm also
getting the error that Transformer is abstract and can't be
instantiated. Sweet.... This just gets better all the time.
Call returns a SOAPEnvelope (response = call.invoke(request)). I'm
searching through the AXIS java doc for something that will stream the
Envelope to a file. No luck yet.
.
- References:
- wrting a soap response to file
- From: jude . ulibarri
- Re: wrting a soap response to file
- From: Mike Schilling
- Re: wrting a soap response to file
- From: jude . ulibarri
- Re: wrting a soap response to file
- From: jude . ulibarri
- wrting a soap response to file
- Prev by Date: Re: Control break pattern
- Next by Date: Re: Determining the Main Class
- Previous by thread: Re: wrting a soap response to file
- Next by thread: Re: wrting a soap response to file
- Index(es):
Relevant Pages
|