* msg.writeTo(System.out);
* System.out.println("-----------soap---------");
*/
SOAPEnvelope env = msg.getSOAPPart().getEnvelope();
SOAPBody body = env.getBody();
Iterator it = body.getChildElements();
while (it.hasNext()) {
Object elem = it.next();
if (elem instanceof SOAPElement) {
Iterator it2 = ((SOAPElement)elem).getChildElements();
while (it2.hasNext()) {
Object elem2 = it2.next();
if (elem2 instanceof SOAPElement) {
String value = ((SOAPElement)elem2).getValue();
String name = ((SOAPElement)elem2).getLocalName();
if (name.indexOf("arg0") >= 0 && value.equalsIgnoreCase("11")) {
value = "12";
((SOAPElement)elem2).setValue(value);
}
if (name.indexOf("arg1") >= 0 && value.equalsIgnoreCase("21")) {
value = "22";
((SOAPElement)elem2).setValue(value);
}
}
}
}
}
msg.saveChanges();
} else {
SOAPMessage msg = ctx.getMessage();
/*
* System.out.println("-----------soap---------");
* msg.writeTo(System.out);
* System.out.println("-----------soap---------");
*/
SOAPEnvelope env = msg.getSOAPPart().getEnvelope();
SOAPBody body = env.getBody();
Iterator it = body.getChildElements();
while (it.hasNext()) {
Object elem = it.next();
if (elem instanceof SOAPElement) {