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 ch...@apache.org on 2005/03/07 11:11:41 UTC

svn commit: r156413 - in webservices/axis/trunk/java/modules: core/src/java/org/apache/axis/context/MessageContext.java om/src/java/org/apache/axis/om/impl/llom/OMElementImpl.java om/src/java/org/apache/axis/om/impl/llom/builder/StAXSOAPModelBuilder.java

Author: chinthaka
Date: Mon Mar  7 02:11:38 2005
New Revision: 156413

URL: http://svn.apache.org/viewcvs?view=rev&rev=156413
Log: (empty)


Modified:
    webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/context/MessageContext.java
    webservices/axis/trunk/java/modules/om/src/java/org/apache/axis/om/impl/llom/OMElementImpl.java
    webservices/axis/trunk/java/modules/om/src/java/org/apache/axis/om/impl/llom/builder/StAXSOAPModelBuilder.java

Modified: webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/context/MessageContext.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/context/MessageContext.java?view=diff&r1=156412&r2=156413
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/context/MessageContext.java (original)
+++ webservices/axis/trunk/java/modules/core/src/java/org/apache/axis/context/MessageContext.java Mon Mar  7 02:11:38 2005
@@ -91,6 +91,8 @@
      */
     private boolean processingFault = false;
 
+
+
     /**
      * Addressing Information for Axis 2
      * Following Properties will be kept inside this, these fields will be initially filled by
@@ -511,5 +513,13 @@
     }
     public String getWSAMessageId(){
         return messageInformationHeaders.getMessageId();
+    }
+
+    public MessageInformationHeadersCollection getMessageInformationHeaders() {
+        return messageInformationHeaders;
+    }
+
+    public void setMessageInformationHeaders(MessageInformationHeadersCollection messageInformationHeaders) {
+        this.messageInformationHeaders = messageInformationHeaders;
     }
 }

Modified: webservices/axis/trunk/java/modules/om/src/java/org/apache/axis/om/impl/llom/OMElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/om/src/java/org/apache/axis/om/impl/llom/OMElementImpl.java?view=diff&r1=156412&r2=156413
==============================================================================
--- webservices/axis/trunk/java/modules/om/src/java/org/apache/axis/om/impl/llom/OMElementImpl.java (original)
+++ webservices/axis/trunk/java/modules/om/src/java/org/apache/axis/om/impl/llom/OMElementImpl.java Mon Mar  7 02:11:38 2005
@@ -690,12 +690,14 @@
                     }
                 }
             } else {
-                throw new OMException(
-                        "Non namespace qualified elements are not allowed");
+                writer.writeStartElement(this.getLocalName());
+//                throw new OMException(
+//                        "Non namespace qualified elements are not allowed");
             }
         } else {
-            throw new OMException(
-                    "Non namespace qualified elements are not allowed");
+            writer.writeStartElement(this.getLocalName());
+//            throw new OMException(
+//                    "Non namespace qualified elements are not allowed");
         }
 
         // add the elements attributes

Modified: webservices/axis/trunk/java/modules/om/src/java/org/apache/axis/om/impl/llom/builder/StAXSOAPModelBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/om/src/java/org/apache/axis/om/impl/llom/builder/StAXSOAPModelBuilder.java?view=diff&r1=156412&r2=156413
==============================================================================
--- webservices/axis/trunk/java/modules/om/src/java/org/apache/axis/om/impl/llom/builder/StAXSOAPModelBuilder.java (original)
+++ webservices/axis/trunk/java/modules/om/src/java/org/apache/axis/om/impl/llom/builder/StAXSOAPModelBuilder.java Mon Mar  7 02:11:38 2005
@@ -201,7 +201,7 @@
         } else {
 
             // this is neither of above. Just create an element
-            element = ombuilderFactory.createOMElement(elementName, parent.getNamespace(),
+            element = ombuilderFactory.createOMElement(elementName, null,
                     parent, this);
             processNamespaceData(element, false);
         }
@@ -295,7 +295,7 @@
         // throw new OMException("All elements must be namespace qualified!");
         // }
         if (isSOAPElement) {
-            if (!node.getNamespace().getName().equals(
+            if (node.getNamespace() != null && !node.getNamespace().getName().equals(
                     OMConstants.SOAP_ENVELOPE_NAMESPACE_URI)) {
                 throw new OMBuilderException("invalid SOAP namespace URI");
             }