Fixed echo example
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
|
||||
<target name="build" depends="init">
|
||||
<mkdir dir="${bin.dir}"/>
|
||||
<javac srcdir="${src.dir}" destdir="${bin.dir}">
|
||||
<javac srcdir="${src.dir}" destdir="${bin.dir}" debug="true">
|
||||
<classpath refid="compile.classpath"/>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
@@ -83,9 +83,8 @@ 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(echoResponseName).next();
|
||||
.getSOAPBody().getChildElements().next();
|
||||
String echoValue = echoResponseElement.getTextContent();
|
||||
System.out.println("Echo Response [" + echoValue + "]");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user