ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1700224 - in /webservices/axiom/trunk: aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/ implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/ implementations/axiom-dom/src/main/java/org/apache/axiom/soa...
Date Mon, 31 Aug 2015 09:53:12 GMT
Author: veithen
Date: Mon Aug 31 09:53:11 2015
New Revision: 1700224

URL: http://svn.apache.org/r1700224
Log:
Move the remaining SOAPFactory code to om-aspects.

Modified:
    webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FactorySupport.aj
    webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FactorySupport.aj
    webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFactorySupport.aj
    webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/SOAPHelper.java
    webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFactoryImpl.java
    webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11Factory.java
    webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12Factory.java
    webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFactoryImpl.java
    webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11Factory.java
    webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12Factory.java

Modified: webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FactorySupport.aj
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FactorySupport.aj?rev=1700224&r1=1700223&r2=1700224&view=diff
==============================================================================
--- webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FactorySupport.aj
(original)
+++ webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FactorySupport.aj
Mon Aug 31 09:53:11 2015
@@ -18,6 +18,7 @@
  */
 package org.apache.axiom.soap.impl.common;
 
+import org.apache.axiom.soap.SOAPEnvelope;
 import org.apache.axiom.soap.SOAPFault;
 import org.apache.axiom.soap.SOAPFaultCode;
 import org.apache.axiom.soap.SOAPFaultNode;
@@ -70,4 +71,13 @@ public aspect AxiomSOAP11FactorySupport
     public final SOAPFaultNode AxiomSOAP11Factory.createSOAPFaultNode() {
         throw new UnsupportedOperationException();
     }
+
+    public final SOAPEnvelope AxiomSOAP11Factory.getDefaultFaultEnvelope() {
+        SOAPEnvelope defaultEnvelope = getDefaultEnvelope();
+        SOAPFault fault = createSOAPFault(defaultEnvelope.getBody());
+        createSOAPFaultCode(fault);
+        createSOAPFaultReason(fault);
+        createSOAPFaultDetail(fault);
+        return defaultEnvelope;
+    }
 }

Modified: webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FactorySupport.aj
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FactorySupport.aj?rev=1700224&r1=1700223&r2=1700224&view=diff
==============================================================================
--- webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FactorySupport.aj
(original)
+++ webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FactorySupport.aj
Mon Aug 31 09:53:11 2015
@@ -20,6 +20,7 @@ package org.apache.axiom.soap.impl.commo
 
 import org.apache.axiom.om.OMXMLParserWrapper;
 import org.apache.axiom.soap.SOAP12Constants;
+import org.apache.axiom.soap.SOAPEnvelope;
 import org.apache.axiom.soap.SOAPFault;
 import org.apache.axiom.soap.SOAPFaultClassifier;
 import org.apache.axiom.soap.SOAPFaultCode;
@@ -105,4 +106,15 @@ public aspect AxiomSOAP12FactorySupport
     public final SOAPFaultNode AxiomSOAP12Factory.createSOAPFaultNode() {
         return createSOAPFaultNode(null, null);
     }
+
+    public final SOAPEnvelope AxiomSOAP12Factory.getDefaultFaultEnvelope() {
+        SOAPEnvelope defaultEnvelope = getDefaultEnvelope();
+        SOAPFault fault = createSOAPFault(defaultEnvelope.getBody());
+        SOAPFaultCode faultCode = createSOAPFaultCode(fault);
+        createSOAPFaultValue(faultCode);
+        SOAPFaultReason reason = createSOAPFaultReason(fault);
+        createSOAPFaultText(reason);
+        createSOAPFaultDetail(fault);
+        return defaultEnvelope;
+    }
 }

Modified: webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFactorySupport.aj
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFactorySupport.aj?rev=1700224&r1=1700223&r2=1700224&view=diff
==============================================================================
--- webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFactorySupport.aj
(original)
+++ webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFactorySupport.aj
Mon Aug 31 09:53:11 2015
@@ -36,8 +36,21 @@ import org.apache.axiom.soap.SOAPFaultRo
 import org.apache.axiom.soap.SOAPHeader;
 import org.apache.axiom.soap.SOAPHeaderBlock;
 import org.apache.axiom.soap.SOAPMessage;
+import org.apache.axiom.soap.SOAPVersion;
 
 public aspect AxiomSOAPFactorySupport {
+    public final String AxiomSOAPFactory.getSoapVersionURI() {
+        return getSOAPHelper().getEnvelopeURI();
+    }
+
+    public final SOAPVersion AxiomSOAPFactory.getSOAPVersion() {
+        return getSOAPHelper().getVersion();
+    }
+    
+    public final OMNamespace AxiomSOAPFactory.getNamespace() {
+        return getSOAPHelper().getNamespace();
+    }
+    
     public final <T extends AxiomSOAPElement> T AxiomSOAPFactory.createSOAPElement(Class<T>
type, OMElement parent, QName qname, OMXMLParserWrapper builder) {
         T element = createNode(type);
         if (builder != null) {
@@ -205,4 +218,19 @@ public aspect AxiomSOAPFactorySupport {
     public final SOAPFaultDetail AxiomSOAPFactory.createSOAPFaultDetail() {
         return createSOAPFaultDetail(null, null);
     }
+
+    public final SOAPMessage AxiomSOAPFactory.createDefaultSOAPMessage() {
+        SOAPMessage message = createSOAPMessage();
+        SOAPEnvelope env = createSOAPEnvelope();
+        message.addChild(env);
+        createSOAPBody(env);
+        return message;
+    }
+    
+    public final SOAPEnvelope AxiomSOAPFactory.getDefaultEnvelope() {
+        SOAPEnvelope env = createSOAPEnvelope();
+        createSOAPHeader(env);
+        createSOAPBody(env);
+        return env;
+    }
 }

Modified: webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/SOAPHelper.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/SOAPHelper.java?rev=1700224&r1=1700223&r2=1700224&view=diff
==============================================================================
--- webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/SOAPHelper.java
(original)
+++ webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/SOAPHelper.java
Mon Aug 31 09:53:11 2015
@@ -20,6 +20,8 @@ package org.apache.axiom.soap.impl.commo
 
 import javax.xml.namespace.QName;
 
+import org.apache.axiom.om.OMNamespace;
+import org.apache.axiom.om.impl.common.OMNamespaceImpl;
 import org.apache.axiom.soap.SOAP11Constants;
 import org.apache.axiom.soap.SOAP11Version;
 import org.apache.axiom.soap.SOAP12Constants;
@@ -86,6 +88,7 @@ abstract class SOAPHelper {
     };
     
     private final SOAPVersion version;
+    private final OMNamespace namespace;
     private final String specName;
     private final Class<? extends AxiomSOAPHeader> headerClass;
     private final QName headerQName;
@@ -113,6 +116,8 @@ abstract class SOAPHelper {
             Class<? extends AxiomSOAPFaultDetail> faultDetailClass,
             String roleAttributeLocalName, String relayAttributeLocalName) {
         this.version = version;
+        namespace = new OMNamespaceImpl(version.getEnvelopeURI(),
+                SOAPConstants.SOAP_DEFAULT_NAMESPACE_PREFIX);
         this.specName = specName;
         this.headerClass = headerClass;
         headerQName = new QName(version.getEnvelopeURI(), SOAPConstants.HEADER_LOCAL_NAME,
@@ -140,6 +145,14 @@ abstract class SOAPHelper {
         return version;
     }
     
+    final String getEnvelopeURI() {
+        return version.getEnvelopeURI();
+    }
+
+    final OMNamespace getNamespace() {
+        return namespace;
+    }
+
     final String getSpecName() {
         return specName;
     }

Modified: webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFactoryImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFactoryImpl.java?rev=1700224&r1=1700223&r2=1700224&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFactoryImpl.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFactoryImpl.java
Mon Aug 31 09:53:11 2015
@@ -21,9 +21,6 @@ package org.apache.axiom.soap.impl.dom;
 
 import org.apache.axiom.om.impl.dom.factory.OMDOMFactory;
 import org.apache.axiom.om.impl.dom.factory.OMDOMMetaFactory;
-import org.apache.axiom.soap.SOAPEnvelope;
-import org.apache.axiom.soap.SOAPMessage;
-import org.apache.axiom.soap.SOAPProcessingException;
 import org.apache.axiom.soap.impl.common.AxiomSOAPFactory;
 
 public abstract class SOAPFactoryImpl extends OMDOMFactory implements AxiomSOAPFactory {
@@ -33,19 +30,4 @@ public abstract class SOAPFactoryImpl ex
 
     public SOAPFactoryImpl() {
     }
-
-    public final SOAPMessage createDefaultSOAPMessage() {
-        SOAPMessage message = createSOAPMessage();
-        SOAPEnvelope env = createSOAPEnvelope();
-        message.addChild(env);
-        createSOAPBody(env);
-        return message;
-    }
-    
-    public final SOAPEnvelope getDefaultEnvelope() throws SOAPProcessingException {
-        SOAPEnvelope env = createSOAPEnvelope();
-        createSOAPHeader(env);
-        createSOAPBody(env);
-        return env;
-    }
 }

Modified: webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11Factory.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11Factory.java?rev=1700224&r1=1700223&r2=1700224&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11Factory.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11Factory.java
Mon Aug 31 09:53:11 2015
@@ -19,15 +19,7 @@
 
 package org.apache.axiom.soap.impl.dom.soap11;
 
-import org.apache.axiom.om.OMNamespace;
-import org.apache.axiom.om.impl.common.OMNamespaceImpl;
 import org.apache.axiom.om.impl.dom.factory.OMDOMMetaFactory;
-import org.apache.axiom.soap.SOAP11Constants;
-import org.apache.axiom.soap.SOAPEnvelope;
-import org.apache.axiom.soap.SOAPFault;
-import org.apache.axiom.soap.SOAPProcessingException;
-import org.apache.axiom.soap.SOAPVersion;
-import org.apache.axiom.soap.SOAP11Version;
 import org.apache.axiom.soap.impl.common.AxiomSOAP11Factory;
 import org.apache.axiom.soap.impl.dom.SOAPFactoryImpl;
 
@@ -40,26 +32,4 @@ public class SOAP11Factory extends SOAPF
     
     public SOAP11Factory() {
     }
-
-    public String getSoapVersionURI() {
-        return SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI;
-    }
-
-    public SOAPVersion getSOAPVersion() {
-        return SOAP11Version.getSingleton();
-    }
-
-    public OMNamespace getNamespace() {
-        return new OMNamespaceImpl(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
-                                 SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
-    }
-
-    public SOAPEnvelope getDefaultFaultEnvelope() throws SOAPProcessingException {
-        SOAPEnvelope defaultEnvelope = getDefaultEnvelope();
-        SOAPFault fault = createSOAPFault(defaultEnvelope.getBody());
-        createSOAPFaultCode(fault);
-        createSOAPFaultReason(fault);
-        createSOAPFaultDetail(fault);
-        return defaultEnvelope;
-    }
 }

Modified: webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12Factory.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12Factory.java?rev=1700224&r1=1700223&r2=1700224&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12Factory.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12Factory.java
Mon Aug 31 09:53:11 2015
@@ -19,17 +19,7 @@
 
 package org.apache.axiom.soap.impl.dom.soap12;
 
-import org.apache.axiom.om.OMNamespace;
-import org.apache.axiom.om.impl.common.OMNamespaceImpl;
 import org.apache.axiom.om.impl.dom.factory.OMDOMMetaFactory;
-import org.apache.axiom.soap.SOAP12Constants;
-import org.apache.axiom.soap.SOAPEnvelope;
-import org.apache.axiom.soap.SOAPFault;
-import org.apache.axiom.soap.SOAPFaultCode;
-import org.apache.axiom.soap.SOAPFaultReason;
-import org.apache.axiom.soap.SOAPProcessingException;
-import org.apache.axiom.soap.SOAPVersion;
-import org.apache.axiom.soap.SOAP12Version;
 import org.apache.axiom.soap.impl.common.AxiomSOAP12Factory;
 import org.apache.axiom.soap.impl.dom.SOAPFactoryImpl;
 
@@ -42,32 +32,4 @@ public class SOAP12Factory extends SOAPF
 
     public SOAP12Factory() {
     }
-
-    public String getSoapVersionURI() {
-        return SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI;
-    }
-
-    public SOAPVersion getSOAPVersion() {
-        return SOAP12Version.getSingleton();
-    }
-
-    public OMNamespace getNamespace() {
-        return new OMNamespaceImpl(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI,
-                                 SOAP12Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
-    }
-
-    public SOAPEnvelope getDefaultFaultEnvelope() throws SOAPProcessingException {
-        SOAPEnvelope defaultEnvelope = getDefaultEnvelope();
-        SOAPFault fault = createSOAPFault(defaultEnvelope.getBody());
-
-        SOAPFaultCode faultCode = createSOAPFaultCode(fault);
-        createSOAPFaultValue(faultCode);
-
-        SOAPFaultReason reason = createSOAPFaultReason(fault);
-        createSOAPFaultText(reason);
-
-        createSOAPFaultDetail(fault);
-
-        return defaultEnvelope;
-    }
 }

Modified: webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFactoryImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFactoryImpl.java?rev=1700224&r1=1700223&r2=1700224&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFactoryImpl.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFactoryImpl.java
Mon Aug 31 09:53:11 2015
@@ -20,9 +20,6 @@ package org.apache.axiom.soap.impl.llom;
 
 import org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory;
 import org.apache.axiom.om.impl.llom.factory.OMLinkedListMetaFactory;
-import org.apache.axiom.soap.SOAPEnvelope;
-import org.apache.axiom.soap.SOAPMessage;
-import org.apache.axiom.soap.SOAPProcessingException;
 import org.apache.axiom.soap.impl.common.AxiomSOAPFactory;
 
 public abstract class SOAPFactoryImpl extends OMLinkedListImplFactory implements AxiomSOAPFactory
{
@@ -35,19 +32,4 @@ public abstract class SOAPFactoryImpl ex
      */
     public SOAPFactoryImpl() {
     }
-
-    public final SOAPMessage createDefaultSOAPMessage() {
-        SOAPMessage message = createSOAPMessage();
-        SOAPEnvelope env = createSOAPEnvelope();
-        message.addChild(env);
-        createSOAPBody(env);
-        return message;
-    }
-    
-    public final SOAPEnvelope getDefaultEnvelope() throws SOAPProcessingException {
-        SOAPEnvelope env = createSOAPEnvelope();
-        createSOAPHeader(env);
-        createSOAPBody(env);
-        return env;
-    }
 }

Modified: webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11Factory.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11Factory.java?rev=1700224&r1=1700223&r2=1700224&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11Factory.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11Factory.java
Mon Aug 31 09:53:11 2015
@@ -20,15 +20,7 @@
 package org.apache.axiom.soap.impl.llom.soap11;
 
 import org.apache.axiom.om.OMAbstractFactory;
-import org.apache.axiom.om.OMNamespace;
-import org.apache.axiom.om.impl.common.OMNamespaceImpl;
 import org.apache.axiom.om.impl.llom.factory.OMLinkedListMetaFactory;
-import org.apache.axiom.soap.SOAP11Constants;
-import org.apache.axiom.soap.SOAPEnvelope;
-import org.apache.axiom.soap.SOAPFault;
-import org.apache.axiom.soap.SOAPProcessingException;
-import org.apache.axiom.soap.SOAPVersion;
-import org.apache.axiom.soap.SOAP11Version;
 import org.apache.axiom.soap.impl.common.AxiomSOAP11Factory;
 import org.apache.axiom.soap.impl.llom.SOAPFactoryImpl;
 
@@ -50,26 +42,4 @@ public class SOAP11Factory extends SOAPF
      */
     public SOAP11Factory() {
     }
-
-    public OMNamespace getNamespace() {
-        return new OMNamespaceImpl(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
-                                   SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
-    }
-
-    public String getSoapVersionURI() {
-        return SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI;
-    }
-
-    public SOAPVersion getSOAPVersion() {
-        return SOAP11Version.getSingleton();
-    }
-
-    public SOAPEnvelope getDefaultFaultEnvelope() throws SOAPProcessingException {
-        SOAPEnvelope defaultEnvelope = getDefaultEnvelope();
-        SOAPFault fault = createSOAPFault(defaultEnvelope.getBody());
-        createSOAPFaultCode(fault);
-        createSOAPFaultReason(fault);
-        createSOAPFaultDetail(fault);
-        return defaultEnvelope;
-    }
 }

Modified: webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12Factory.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12Factory.java?rev=1700224&r1=1700223&r2=1700224&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12Factory.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12Factory.java
Mon Aug 31 09:53:11 2015
@@ -20,17 +20,7 @@
 package org.apache.axiom.soap.impl.llom.soap12;
 
 import org.apache.axiom.om.OMAbstractFactory;
-import org.apache.axiom.om.OMNamespace;
-import org.apache.axiom.om.impl.common.OMNamespaceImpl;
 import org.apache.axiom.om.impl.llom.factory.OMLinkedListMetaFactory;
-import org.apache.axiom.soap.SOAP12Constants;
-import org.apache.axiom.soap.SOAP12Version;
-import org.apache.axiom.soap.SOAPEnvelope;
-import org.apache.axiom.soap.SOAPFault;
-import org.apache.axiom.soap.SOAPFaultCode;
-import org.apache.axiom.soap.SOAPFaultReason;
-import org.apache.axiom.soap.SOAPProcessingException;
-import org.apache.axiom.soap.SOAPVersion;
 import org.apache.axiom.soap.impl.common.AxiomSOAP12Factory;
 import org.apache.axiom.soap.impl.llom.SOAPFactoryImpl;
 
@@ -52,32 +42,4 @@ public class SOAP12Factory extends SOAPF
      */
     public SOAP12Factory() {
     }
-
-    public String getSoapVersionURI() {
-        return SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI;
-    }
-
-    public SOAPVersion getSOAPVersion() {
-        return SOAP12Version.getSingleton();
-    }    
-
-    public OMNamespace getNamespace() {
-        return new OMNamespaceImpl(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI,
-                                   SOAP12Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
-    }
-
-    public SOAPEnvelope getDefaultFaultEnvelope() throws SOAPProcessingException {
-        SOAPEnvelope defaultEnvelope = getDefaultEnvelope();
-        SOAPFault fault = createSOAPFault(defaultEnvelope.getBody());
-
-        SOAPFaultCode faultCode = createSOAPFaultCode(fault);
-        createSOAPFaultValue(faultCode);
-
-        SOAPFaultReason reason = createSOAPFaultReason(fault);
-        createSOAPFaultText(reason);
-
-        createSOAPFaultDetail(fault);
-
-        return defaultEnvelope;
-    }
 }



Mime
View raw message