You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by de...@apache.org on 2007/06/27 05:58:38 UTC

svn commit: r551028 - in /webservices/axis2/trunk/java/modules: adb/src/org/apache/axis2/rpc/receivers/RPCInOutAsyncMessageReceiver.java integration/test/org/tempuri/complex/data/arrays/ArrayOfPerson.java

Author: deepal
Date: Tue Jun 26 20:58:37 2007
New Revision: 551028

URL: http://svn.apache.org/viewvc?view=rev&rev=551028
Log:
- Fixing TODOs in DocLitBare test case
- Added doc-lit bare support for RPCInOutAsyncMessageReceiver.java too

Modified:
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/rpc/receivers/RPCInOutAsyncMessageReceiver.java
    webservices/axis2/trunk/java/modules/integration/test/org/tempuri/complex/data/arrays/ArrayOfPerson.java

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/rpc/receivers/RPCInOutAsyncMessageReceiver.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/rpc/receivers/RPCInOutAsyncMessageReceiver.java?view=diff&rev=551028&r1=551027&r2=551028
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/rpc/receivers/RPCInOutAsyncMessageReceiver.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/rpc/receivers/RPCInOutAsyncMessageReceiver.java Tue Jun 26 20:58:37 2007
@@ -24,6 +24,8 @@
 import org.apache.axis2.description.AxisMessage;
 import org.apache.axis2.description.AxisOperation;
 import org.apache.axis2.description.AxisService;
+import org.apache.axis2.description.Parameter;
+import org.apache.axis2.description.java2wsdl.Java2WSDLConstants;
 import org.apache.axis2.receivers.AbstractInOutAsyncMessageReceiver;
 import org.apache.axis2.wsdl.WSDLConstants;
 import org.apache.commons.logging.Log;
@@ -100,8 +102,17 @@
                                                    service.getSchemaTargetNamespacePrefix());
             SOAPEnvelope envelope = fac.getDefaultEnvelope();
             OMElement bodyContent = null;
-            RPCUtil.processResponseAsDocLitWrapped(resObject, service,
-                                    method, envelope, fac, ns, bodyContent, outMessage);
+            Parameter generateBare = service.getParameter(Java2WSDLConstants.DOC_LIT_BARE_PARAMETER);
+            if (generateBare!=null && "true".equals(generateBare.getValue())) {
+                RPCUtil.processResonseAsDocLitBare(resObject, service,
+                        envelope, fac, ns,
+                        bodyContent, outMessage);
+            } else {
+                RPCUtil.processResponseAsDocLitWrapped(resObject, service,
+                        method, envelope, fac, ns,
+                        bodyContent, outMessage);
+            }
+             outMessage.setEnvelope(envelope);
         } catch (InvocationTargetException e) {
             String msg = null;
             Throwable cause = e.getCause();

Modified: webservices/axis2/trunk/java/modules/integration/test/org/tempuri/complex/data/arrays/ArrayOfPerson.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/integration/test/org/tempuri/complex/data/arrays/ArrayOfPerson.java?view=diff&rev=551028&r1=551027&r2=551028
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/tempuri/complex/data/arrays/ArrayOfPerson.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/tempuri/complex/data/arrays/ArrayOfPerson.java Tue Jun 26 20:58:37 2007
@@ -13,4 +13,8 @@
         return this.person;
     }
 
+    public void setPerson(Person[] person){
+        this.person =person;
+    }
+
 }



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