axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r492455 - /webservices/axis2/branches/java/1_1/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
Date Thu, 04 Jan 2007 08:38:37 GMT
Author: deepal
Date: Thu Jan  4 00:38:36 2007
New Revision: 492455

URL: http://svn.apache.org/viewvc?view=rev&rev=492455
Log:
fixing AXIS2-1746
 - This is not complete until I add a test case to make sure everything is working fine

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

Modified: webservices/axis2/branches/java/1_1/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java?view=diff&rev=492455&r1=492454&r2=492455
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
(original)
+++ webservices/axis2/branches/java/1_1/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
Thu Jan  4 00:38:36 2007
@@ -178,14 +178,22 @@
 
                     }
                 } else {
-                    if (typeTable != null) {
-                        QName qNamefortheType = typeTable.getQNamefortheType(ptype.getName());
-                        object.add(new QName(qNamefortheType.getNamespaceURI(),
-                                propDesc.getName(), qNamefortheType.getPrefix()));
-                    } else {
+
+                    if (elemntNameSpace != null) {
+                        object.add(new QName(elemntNameSpace.getNamespaceURI(),
+                                propDesc.getName(), elemntNameSpace.getPrefix()));
+                    } else{
                         object.add(new QName(beanName.getNamespaceURI(),
                                 propDesc.getName(), beanName.getPrefix()));
                     }
+//                    if (typeTable != null) {
+//                        QName qNamefortheType = typeTable.getQNamefortheType(ptype.getName());
+//                        object.add(new QName(qNamefortheType.getNamespaceURI(),
+//                                propDesc.getName(), qNamefortheType.getPrefix()));
+//                    } else {
+//                        object.add(new QName(beanName.getNamespaceURI(),
+//                                propDesc.getName(), beanName.getPrefix()));
+//                    }
                     Object value = propDesc.getReadMethod().invoke(beanObject,
                             null);
                     object.add(value);



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