You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ve...@apache.org on 2011/10/19 21:45:36 UTC
svn commit: r1186431 -
/axis/axis2/java/sandesha/trunk/modules/core/src/main/java/org/apache/sandesha2/client/SandeshaClient.java
Author: veithen
Date: Wed Oct 19 19:45:36 2011
New Revision: 1186431
URL: http://svn.apache.org/viewvc?rev=1186431&view=rev
Log:
Eliminated a couple of illegal direct references to Axiom implementation classes.
Modified:
axis/axis2/java/sandesha/trunk/modules/core/src/main/java/org/apache/sandesha2/client/SandeshaClient.java
Modified: axis/axis2/java/sandesha/trunk/modules/core/src/main/java/org/apache/sandesha2/client/SandeshaClient.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/sandesha/trunk/modules/core/src/main/java/org/apache/sandesha2/client/SandeshaClient.java?rev=1186431&r1=1186430&r2=1186431&view=diff
==============================================================================
--- axis/axis2/java/sandesha/trunk/modules/core/src/main/java/org/apache/sandesha2/client/SandeshaClient.java (original)
+++ axis/axis2/java/sandesha/trunk/modules/core/src/main/java/org/apache/sandesha2/client/SandeshaClient.java Wed Oct 19 19:45:36 2011
@@ -27,12 +27,11 @@ import java.util.MissingResourceExceptio
import javax.xml.namespace.QName;
+import org.apache.axiom.om.OMAbstractFactory;
import org.apache.axiom.om.OMElement;
import org.apache.axiom.soap.SOAP12Constants;
import org.apache.axiom.soap.SOAPEnvelope;
import org.apache.axiom.soap.SOAPFactory;
-import org.apache.axiom.soap.impl.llom.soap11.SOAP11Factory;
-import org.apache.axiom.soap.impl.llom.soap12.SOAP12Factory;
import org.apache.axis2.AxisFault;
import org.apache.axis2.Constants;
import org.apache.axis2.addressing.EndpointReference;
@@ -857,10 +856,10 @@ public class SandeshaClient {
SOAPFactory factory = null;
SOAPEnvelope dummyEnvelope = null;
if (SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(soapNamespaceURI)) {
- factory = new SOAP12Factory();
+ factory = OMAbstractFactory.getSOAP12Factory();
dummyEnvelope = factory.getDefaultEnvelope();
} else {
- factory = new SOAP11Factory();
+ factory = OMAbstractFactory.getSOAP11Factory();
dummyEnvelope = factory.getDefaultEnvelope();
}
@@ -1022,10 +1021,10 @@ public class SandeshaClient {
soapNamespaceURI = getSOAPNamespaceURI(storageManager, internalSequenceID);
if (SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(soapNamespaceURI)) {
- factory = new SOAP12Factory();
+ factory = OMAbstractFactory.getSOAP12Factory();
dummyEnvelope = factory.getDefaultEnvelope();
} else {
- factory = new SOAP11Factory();
+ factory = OMAbstractFactory.getSOAP11Factory();
dummyEnvelope = factory.getDefaultEnvelope();
}
@@ -1178,10 +1177,10 @@ public class SandeshaClient {
if (soapNamespaceURI == null)
soapNamespaceURI = getSOAPNamespaceURI(storageManager, internalSequenceID);
if (SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(soapNamespaceURI)) {
- factory = new SOAP12Factory();
+ factory = OMAbstractFactory.getSOAP12Factory();
dummyEnvelope = factory.getDefaultEnvelope();
} else {
- factory = new SOAP11Factory();
+ factory = OMAbstractFactory.getSOAP11Factory();
dummyEnvelope = factory.getDefaultEnvelope();
}