Assuming you have a 'xxxReturn' as a node in your soap message - take a look at tcpmon or the soap applet, etc, if you need to...

I think what you want is to get a node and show just that - I think axis 1.x allows you to get the Document from Message Context directly, but anyways:

           DocumentBuilderFactory factory =
                DocumentBuilderFactory.newInstance();
            factory.setNamespaceAware(true);
            factory.setIgnoringElementContentWhitespace(false);
            DocumentBuilder builder = factory.newDocumentBuilder();

            InputSource isXml = new InputSource(new StringReader(XMLContents));
            Document doc = builder.parse(isXml);
            NodeList nodeList = doc.getElementsByTagName("xxxReturn");

            // What you do next depends a lot on what is in myNode -
            // you may have attributes, child elements, etc.            
            Node myNode = nodeList.item(0);

If that isn't what you want, try and rephrase the question.

HTH,
Robert
http://www.braziloutsource.com/

On 5/22/06, Gabriel Moura <[EMAIL PROTECTED] > wrote:

hi, i am brazilian student and speak english very well. :D
my doubt is:

i want show only "xxxReturn" in the aplication..
my client is generated by wsdl2..
i obtain xml response using:
-------------------------------------------
java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream();
_call.getMessageContext().getMessage().writeTo(baos);
String XMLContents = new java.lang.String(baos.toByteArray(), "UTF-8");
System.out.println(XMLContents);
-----------------------------------------------

How i show only "xxxReturn" for example?
anyone can help-me?

--
View this message in context: http://www.nabble.com/show+a+method+return+in+xml+response-t1664824.html#a4511532
Sent from the Axis - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to