From 7d05dbde4c419ada6ed2bf9a1eef16159bb51488 Mon Sep 17 00:00:00 2001 From: scottkurz Date: Tue, 29 Nov 2011 16:20:23 +0000 Subject: Fix for TUSCANY-3986. Thanks Rashmi. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1207942 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/binding/ws/jaxws/JAXWSBindingInvoker.java | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'sca-java-2.x/trunk/modules') 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); -- cgit v1.2.3