Ola, estou fazendo uma comunicação com um WebService e ele me retorna a mensagem soap...
Como faço para pegar os valores que ele me retorno e usa-lo?
Source source = new DOMSource(res.getSOAPPart().getEnvelope().getBody().getFirstChild().getFirstChild());
TransformerFactory.newInstance().newTransformer().transform(source,new StreamResult(sw));
System.out.println(soapMessage);
ByteArrayOutputStream out = new ByteArrayOutputStream();
res.writeTo(out);
Até ai eu imprimo o out e tem a resposta certinho, mas como faz para pegar exatamente os campos? :S
Valeu, T+