axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r562088 - /webservices/axis2/branches/java/1_3/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
Date Thu, 02 Aug 2007 12:07:10 GMT
Author: deepal
Date: Thu Aug  2 05:07:10 2007
New Revision: 562088

URL: http://svn.apache.org/viewvc?view=rev&rev=562088
Log:
fixing class cast exception when using following code 
RPCServiceClient cs = new RPCServiceClient();
        Options opst = new Options();
        opst.setAction("urn:getRes");
        opst.setManageSession(true);
        opst.setTo(new EndpointReference("http://localhost:8000/axis2/services/MyWebService"));
        cs.setOptions(opst);
        DataHandler dh = new DataHandler(new FileDataSource("file"));
        cs.invokeBlocking(new QName("http://ws.apache.org/axis2", "getRes"), new Object[]{dh});

Modified:
    webservices/axis2/branches/java/1_3/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java

Modified: webservices/axis2/branches/java/1_3/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_3/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java?view=diff&rev=562088&r1=562087&r2=562088
==============================================================================
--- webservices/axis2/branches/java/1_3/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
(original)
+++ webservices/axis2/branches/java/1_3/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
Thu Aug  2 05:07:10 2007
@@ -748,13 +748,12 @@
                         OMElement wrappingElement;
                         if (partName == null) {
                             wrappingElement = fac.createOMElement("arg" + argCount, null);
-                            wrappingElement.addChild((OMElement)arg);
                         } else {
                             wrappingElement = fac.createOMElement(partName, null);
-                            wrappingElement.addChild((OMElement)arg);
                         }
                         OMText text = fac.createOMText(arg, true);
-                        objects.add(text);
+                        wrappingElement.addChild(text);
+                        objects.add(wrappingElement);
                     } else {
                         objects.add(arg);
                     }



---------------------------------------------------------------------
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