axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asan...@apache.org
Subject svn commit: r452586 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/receivers/RawXMLINOutMessageReceiver.java
Date Tue, 03 Oct 2006 18:04:16 GMT
Author: asankha
Date: Tue Oct  3 11:04:16 2006
New Revision: 452586

URL: http://svn.apache.org/viewvc?view=rev&rev=452586
Log:
Update for AXIS2-1286 as per Sanjiva's comment to return an empty envelope if the ServiceClass
returns null

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/receivers/RawXMLINOutMessageReceiver.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/receivers/RawXMLINOutMessageReceiver.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/receivers/RawXMLINOutMessageReceiver.java?view=diff&rev=452586&r1=452585&r2=452586
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/receivers/RawXMLINOutMessageReceiver.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/receivers/RawXMLINOutMessageReceiver.java
Tue Oct  3 11:04:16 2006
@@ -110,23 +110,14 @@
                 }
 
                 OMElement result = (OMElement) method.invoke(obj, args);
-                if (result == null) {
-                    throw new AxisFault(Messages.getMessage("implReturnedNull",
-                        opDesc.getName().toString()));
-                }
-
-                AxisService service = msgContext.getAxisService();
-                result.declareNamespace(service.getTargetNamespace(),
-                        service.getTargetNamespacePrefix());
-                OMElement bodyContent;
-
                 SOAPFactory fac = getSOAPFactory(msgContext);
-                bodyContent = result;
-
                 SOAPEnvelope envelope = fac.getDefaultEnvelope();
 
-                if (bodyContent != null) {
-                    envelope.getBody().addChild(bodyContent);
+                if (result != null) {
+                    AxisService service = msgContext.getAxisService();
+                    result.declareNamespace(service.getTargetNamespace(),
+                        service.getTargetNamespacePrefix());
+                    envelope.getBody().addChild(result);
                 }
 
                 newmsgContext.setEnvelope(envelope);



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message