I want to read a response from a non-wsdl web service call using JAXB.
I am sending a POST request using HttpURLConnection, and getting a response.
My question is do I make an xml doc from the response stream, then use jaxb to make the java objects? Or, is it possible to use use jaxb on the fly with the response stream?
This will be a web application, and I will not be able to store a generated xml doc anywhere, so if i need to make an xml doc, how do i store it for jaxb to use, if I cannot do the jaxb on the fly?
I want to read a response from a non-wsdl web service call using JAXB.
Share
The
Unmarshaller.unmarshalcan take an InputStream, which would eliminated the need to parse it to an XML doc.