ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruchi...@apache.org
Subject svn commit: r373294 - in /webservices/axis2/trunk/java/modules/adb: src/org/apache/axis2/databinding/ADBSOAPModelBuilder.java test/org/apache/axis2/databinding/ADBSOAPModelBuilderTest.java
Date Sun, 29 Jan 2006 08:26:33 GMT
Author: ruchithf
Date: Sun Jan 29 00:25:40 2006
New Revision: 373294

URL: http://svn.apache.org/viewcvs?rev=373294&view=rev
Log:
Fixed the problem with ADBSOAPModelBuilder where we were not able to build the envelope, the
problem was due to the SOAPEnvelope instance was not marked as incomplete.



Modified:
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBSOAPModelBuilder.java
    webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/ADBSOAPModelBuilderTest.java

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBSOAPModelBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBSOAPModelBuilder.java?rev=373294&r1=373293&r2=373294&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBSOAPModelBuilder.java
(original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/ADBSOAPModelBuilder.java
Sun Jan 29 00:25:40 2006
@@ -30,7 +30,9 @@
         body.setBuilder(this);
         lastNode = body;
 
+        ((OMNodeEx)envelope).setComplete(false);
         ((OMNodeEx)body).setComplete(false);
+        
     }
 
     long count = -1;
@@ -45,6 +47,7 @@
             if(!parser.hasNext()) {
                 done = true;
                 ((OMNodeEx)body).setComplete(true);
+                ((OMNodeEx)envelope).setComplete(true);
             }
         } catch (XMLStreamException e) {
             throw new OMException(e);

Modified: webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/ADBSOAPModelBuilderTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/ADBSOAPModelBuilderTest.java?rev=373294&r1=373293&r2=373294&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/ADBSOAPModelBuilderTest.java
(original)
+++ webservices/axis2/trunk/java/modules/adb/test/org/apache/axis2/databinding/ADBSOAPModelBuilderTest.java
Sun Jan 29 00:25:40 2006
@@ -77,9 +77,6 @@
         SOAPEnvelope env = builder.getEnvelope();
         env.build();
         
-        //A tiny hack 
-        env.toString();
-        
         StAXSOAPModelBuilder builder2 = new StAXSOAPModelBuilder(env.getXMLStreamReader(),
DOOMAbstractFactory.getSOAP11Factory(), SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
         
         SOAPEnvelope envelope = builder2.getSOAPEnvelope();



Mime
View raw message