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 ha...@apache.org on 2005/12/09 12:33:28 UTC

svn commit: r355452 - /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/BeanParamWriter.java

Author: hawkeye
Date: Fri Dec  9 03:33:21 2005
New Revision: 355452

URL: http://svn.apache.org/viewcvs?rev=355452&view=rev
Log:
Complex types that were refs were serialising out the _REF name and not the element name

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

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/BeanParamWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/BeanParamWriter.java?rev=355452&r1=355451&r2=355452&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/BeanParamWriter.java (original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/BeanParamWriter.java Fri Dec  9 03:33:21 2005
@@ -400,7 +400,6 @@
          * this may not be the appropriate place to do this
          */
         writer.write("\tif ( param == NULL )\n\t{\n");
-        writer.write("\t /* TODO : may need to check nillable value - Now done*/\n");
         writer.write("\t\tpSZ->serializeAsAttribute( \"xsi:nil\", 0, (void*)&(xsd_boolean_true), XSD_BOOLEAN);\n");
         writer.write("\t\tpSZ->serialize( \">\", NULL);\n");
         writer.write("\t\treturn AXIS_SUCCESS;\n");
@@ -416,7 +415,7 @@
         writer.write("\t}\n");
         
         
-        writer.write("\t/* first serialize attributes if any*/\n");
+        writer.write("\t/* If there are any attributes serialize them. If there aren't then close the tag */\n");
         for (int i = 0; i < attributeParamCount; i++)
         {
             if (attribs[i].isArray() || !(attribs[i].isSimpleType()))
@@ -512,7 +511,6 @@
             
             // Dushshantha:
 		    // if the attribute is a choice following should do
-
             if (attribs[i].getChoiceElement())
             {
                 if (!firstIfWritten)
@@ -583,7 +581,7 @@
                     writer.write("\t\t\t\t\t\t (void*) Axis_GetSize_"
                             + arrayType + ",\n");
                     writer.write("\t\t\t\t\t\t \""
-                            + attribs[i].getParamName() + "\", "
+                            + attribs[i].getElementNameAsString() + "\", "
                             + namespace + ");\n");
                 }
             }