Undone fix

This commit is contained in:
Arjen Poutsma
2007-05-20 20:53:56 +00:00
parent 16e7a52785
commit 01e01687cb

View File

@@ -83,8 +83,9 @@ public class EchoClient {
private void writeEchoResponse(SOAPMessage message) throws SOAPException {
SOAPEnvelope envelope = message.getSOAPPart().getEnvelope();
Name echoResponseName = envelope.createName("echoResponse", PREFIX, NAMESPACE_URI);
SOAPBodyElement echoResponseElement = (SOAPBodyElement) message
.getSOAPBody().getChildElements().next();
.getSOAPBody().getChildElements(echoResponseName).next();
String echoValue = echoResponseElement.getTextContent();
System.out.println("Echo Response [" + echoValue + "]");
}