axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject svn commit: r392007 - /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java
Date Thu, 06 Apr 2006 16:14:34 GMT
Author: dicka
Date: Thu Apr  6 09:14:29 2006
New Revision: 392007

URL: http://svn.apache.org/viewcvs?rev=392007&view=rev
Log:
Addition to fix for AXISCPP-961, too many end of element '>' on opening tag for rcp/encoded
complex types, and also no closing tag.

Modified:
    webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java?rev=392007&r1=392006&r2=392007&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java
(original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java
Thu Apr  6 09:14:29 2006
@@ -543,7 +543,11 @@
             writer.write(", NULL);\n\t}\n");
         }               
         
-        writer.write("\tpSZ->serialize( \">\", 0);\n");
+        if(wscontext.getWrapInfo().getWrapperStyle().equals("document"))
+        {
+            writer.write("\tpSZ->serialize( \">\", 0);\n");
+        }
+        
         if (extensionBaseAttrib != null)
         {
             String typeName = extensionBaseAttrib.getTypeName(); 
@@ -733,6 +737,13 @@
                     writer.write("\t}\n");
         }
 
+        if (wscontext.getWrapInfo().getWrapperStyle().equals("rpc"))
+        {
+            writer.write("\n\tpSZ->serialize(\"</\", Axis_TypeName_" + classname
+                    + ", \">\", NULL);\n");
+        }
+
+        
         writer.write("\n\tif (!bArray && blnIsNewPrefix)\n");
         writer.write("\t{\n");
         writer.write("\t\tpSZ->removeNamespacePrefix(Axis_URI_" + classname + ");\n");



Mime
View raw message