I'm not sure if that's what you want but that's what i do... (using Xerces)
String XMLPref = resp.getReturnValue().getValue()); //Get the XML string
from the response
DOMParser parser = new DOMParser(); //Create a parser
parser.parse(new InputSource(new StringReader(XMLPref))); //Create the DOM
from the XML
And now "parser" is the DOM of your XML.
Can we have byref parameters in Apache Soap so we could have a response
with more then a return value(like 2 params byref)? I don't think so
because of the basics of Java but maybe I missed something and we can do
this. Someone can confirm this?
Steeve...
Pete Roth <[EMAIL PROTECTED]> on 31/07/2001 01:20:18 PM
Please respond to [EMAIL PROTECTED]
To: "Soap-user list (E-mail)" <[EMAIL PROTECTED]>, "Soap-dev List
(E-mail)" <[EMAIL PROTECTED]>
cc: (bcc: Steeve Gilbert/G_STGEORGES/CANAM_MANAC)
Subject: Using Xerces to parse a SOAP response
Does anyone know of an example or how to use the response from a SOAP
request in a Java client to build a Xerces object? What I would like to do
is parse the XML returned from the SOAP service. The response object
allows
you to get a Parameter Object. The Parameter.getValue() method returns an
Object. When using a simple SOAP method which only returns one piece of
data I just displayed that Object as a String and that worked fine. Now
I'm
trying to parse the data returned when there is complex XML returned by the
SOAP service. Can this Object be used to build a Reader(or XMLReader or
however Xerces specifically works) which will allow me to select nodes
using
Xerces?
If anyone could help me I would greatly appreciate it. Even a link to some
examples of using the response from in a Java client using the Apache
packages to build a DOM document or something similar would be great.
Thanks.
Peter Roth
Telemetry Technologies Inc.
p: 404.231.0021 ext. 1290
e: [EMAIL PROTECTED]