axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r406274 - /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/BeanParamWriter.java
Date Sun, 14 May 2006 06:50:29 GMT
Author: nadiramra
Date: Sat May 13 23:50:29 2006
New Revision: 406274

URL: http://svn.apache.org/viewcvs?rev=406274&view=rev
Log:
C support fixes/enhancements.

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

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/BeanParamWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/BeanParamWriter.java?rev=406274&r1=406273&r2=406274&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/BeanParamWriter.java
(original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/BeanParamWriter.java
Sat May 13 23:50:29 2006
@@ -206,6 +206,7 @@
         }               
         
         writer.write("\taxiscSoapSerializerSerialize(pSZ, \">\", 0);\n");
+        
         if (extensionBaseAttrib != null)
         {
             String typeName = extensionBaseAttrib.getTypeName(); 
@@ -709,12 +710,10 @@
         {
             if (attribs[i].isSimpleType() || attribs[i].getType().isSimpleType())
             {
-                // Probably want to do it for hexbinary and base64binary and ?
                 if (attribs[i].isArray())
                 {
                     writeNewline = true;
                     
-                    String passedInBaseType;
                     String baseTypeName = null;
                     
                     if (!attribs[i].isSimpleType() && attribs[i].getType().isSimpleType())
@@ -722,16 +721,13 @@
                     else
                         baseTypeName = attribs[i].getTypeName();
                     
-                    if (attribs[i].isArray())
-                    {
-                        passedInBaseType = "XSDC_ARRAY";
-                        baseTypeName += "_Array";
-                    }
-                    else
-                        passedInBaseType = CUtils.getXSDTypeForBasicType(baseTypeName);
+                    String m_type =  CUtils.getXSDTypeForBasicType(baseTypeName);
                                     
                     writer.write("\tpTemp->" + attribs[i].getParamNameAsMember() 
-                            + " = (" + baseTypeName + "*)axiscAxisNew(" + passedInBaseType
+ ",0);\n");
+                            + " = (" + baseTypeName + "_Array *)axiscAxisNew(XSDC_ARRAY,
0);\n");
+                    
+                    writer.write("\tpTemp->" + attribs[i].getParamNameAsMember() + "->m_Type
= " 
+                            + CUtils.getXSDTypeForBasicType(baseTypeName) + ";\n");
                 }
             }
             else



Mime
View raw message