You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by de...@apache.org on 2006/10/26 07:38:31 UTC
svn commit: r467873 -
/webservices/axis2/branches/java/1_1/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
Author: deepal
Date: Wed Oct 25 22:38:30 2006
New Revision: 467873
URL: http://svn.apache.org/viewvc?view=rev&rev=467873
Log:
fixing AXIS2-1285
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=467873&r1=467872&r2=467873
==============================================================================
--- 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 Wed Oct 25 22:38:30 2006
@@ -25,6 +25,7 @@
import org.apache.axiom.om.impl.llom.factory.OMXMLBuilderFactory;
import org.apache.axiom.om.util.Base64;
import org.apache.axis2.AxisFault;
+import org.apache.axis2.context.MessageContext;
import org.apache.axis2.databinding.typemapping.SimpleTypeMapper;
import org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl;
import org.apache.axis2.engine.ObjectSupplier;
@@ -73,6 +74,13 @@
throw new AxisFault("No service class found , exception from JAM");
}
QName elemntNameSpace = null;
+ if (typeTable == null) {
+ MessageContext currentMessageContext = MessageContext.getCurrentMessageContext();
+ if (currentMessageContext != null) {
+ typeTable = currentMessageContext.
+ getAxisService().getTypeTable();
+ }
+ }
if (typeTable != null) {
QName qNamefortheType = typeTable.getQNamefortheType(beanObject.getClass().getName());
elemntNameSpace = new QName(qNamefortheType.getNamespaceURI(),
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org