diff options
Diffstat (limited to 'sca-java-2.x/trunk/modules')
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java b/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java index 91ab4ec331..3c89c53b96 100644 --- a/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java +++ b/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java @@ -151,16 +151,17 @@ public class JAXWSBindingInvoker implements Invoker, DataExchangeSemantics { public Message invoke(Message msg) { try { SOAPMessage resp = invokeTarget(msg); - SOAPBody body = resp.getSOAPBody(); - if (body != null) { - SOAPFault fault = body.getFault(); - if (fault != null) { - // setFault(msg, fault); - } else { - // The 1st child element - msg.setBody(body.getChildElements().next()); + if (resp != null) { + SOAPBody body = resp.getSOAPBody(); + if (body != null) { + SOAPFault fault = body.getFault(); + if (fault != null) { + // setFault(msg, fault); + } else { + // The 1st child element + msg.setBody(body.getChildElements().next()); + } } - } } catch (SOAPFaultException e) { setFault(msg, e); |