tenho esse codigo, queria ver oque tem dentro do message, apenas consigo vendo usando o .getfirstChild() mais ai é um por um
import java.io.BufferedOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Iterator;
import javax.xml.namespace.QName;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.SOAPBody;
import javax.xml.soap.SOAPBodyElement;
import javax.xml.soap.SOAPConnection;
import javax.xml.soap.SOAPConnectionFactory;
import javax.xml.soap.SOAPElement;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPException;
import javax.xml.soap.SOAPHeader;
import javax.xml.soap.SOAPMessage;
import javax.xml.soap.SOAPPart;
public class Soap {
public Soap() throws UnsupportedOperationException, SOAPException, MalformedURLException{
//Contrutor de msg
MessageFactory factory = MessageFactory.newInstance();//Fabrica de Msg
SOAPMessage message = factory.createMessage();//MSG
//Montando BODY
SOAPBody body = message.getSOAPBody(); //cria Soap Body que referencia message
QName bodyName = new QName("http://192.168.1.180/webservice_alive/AliveWS", "executeTabelaPermitidos", "proc"); //namespace
SOAPBodyElement bodyElement = body.addBodyElement(bodyName); //Crio um body element
QName name = new QName("message");//parametro
SOAPElement symbol = bodyElement.addChildElement(name);
symbol.addTextNode("");
//Conexao
SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance();//Fabrica
SOAPConnection connection = soapConnectionFactory.createConnection();//conexao
java.net.URL endpoint = new URL("http://192.168.1.180:80/webservice_alive/AliveWS");
SOAPMessage response = connection.call(message, endpoint);
System.out.println(response.getSOAPBody().getValue());
connection.close();
//------------
}
}