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 th...@apache.org on 2007/02/16 07:52:17 UTC

svn commit: r508326 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/TransportUtils.java

Author: thilina
Date: Thu Feb 15 22:52:16 2007
New Revision: 508326

URL: http://svn.apache.org/viewvc?view=rev&rev=508326
Log:
removing the factory unifying logic for non soap messages...

JSON needs to access the internal DataSource... This was hiding the data source..


Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/TransportUtils.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/TransportUtils.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/TransportUtils.java?view=diff&rev=508326&r1=508325&r2=508326
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/TransportUtils.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/TransportUtils.java Thu Feb 15 22:52:16 2007
@@ -31,7 +31,6 @@
 import org.apache.axiom.soap.SOAP12Constants;
 import org.apache.axiom.soap.SOAPEnvelope;
 import org.apache.axiom.soap.SOAPFactory;
-import org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder;
 import org.apache.axiom.soap.impl.llom.soap11.SOAP11Factory;
 import org.apache.axis2.AxisFault;
 import org.apache.axis2.Constants;
@@ -150,17 +149,9 @@
 		} else {
 			//If it is not a SOAPEnvelope we wrap that with a fake SOAPEnvelope.
 			SOAPFactory soapFactory = new SOAP11Factory();
-			SOAPEnvelope intermediateEnvelope
-			= soapFactory
-					.getDefaultEnvelope();
-			intermediateEnvelope.getBody().addChild(
+			envelope= soapFactory.getDefaultEnvelope();
+			envelope.getBody().addChild(
 					builder.getDocumentElement());
-
-			// We now have the message inside an envelope. However, this is
-			// only an OM; We need to build a SOAP model from it.
-			builder = new StAXSOAPModelBuilder(intermediateEnvelope
-					.getXMLStreamReader(), SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
-			envelope = (SOAPEnvelope) builder.getDocumentElement();
 		}
 
 		String charsetEncoding = builder.getCharsetEncoding();



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