ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject cvs commit: ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info ParameterInfo.java
Date Wed, 16 Mar 2005 03:03:34 GMT
samisa      2005/03/15 19:03:34

  Modified:    c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal
                        BeanParamWriter.java
               c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info
                        ParameterInfo.java
  Log:
  Fix for resolving keyword wrapping '_' appearing in SOAP tag name.
  AXISCPP-550
  
  Revision  Changes    Path
  1.58      +2 -2      ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/BeanParamWriter.java
  
  Index: BeanParamWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/BeanParamWriter.java,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- BeanParamWriter.java	9 Mar 2005 13:11:05 -0000	1.57
  +++ BeanParamWriter.java	16 Mar 2005 03:03:34 -0000	1.58
  @@ -262,11 +262,11 @@
   						|| attribs[i].getTypeName().equals("xsd__QName")
   						|| attribs[i].getTypeName().equals("xsd__notation"))
    				{
  - 					writer.write("\tpSZ->serializeAsElement(\""+attribs[i].getElementNameAsString()+"\",
Axis_URI_" + classname + ", (void*)(param->"+attribs[i].getParamName()+"), "+ CUtils.getXSDTypeForBasicType(attribs[i].getTypeName())+");\n");

  + 					writer.write("\tpSZ->serializeAsElement(\""+attribs[i].getSOAPElementNameAsString()+"\",
Axis_URI_" + classname + ", (void*)(param->"+attribs[i].getParamName()+"), "+ CUtils.getXSDTypeForBasicType(attribs[i].getTypeName())+");\n");

    				}
    				else
    				{
  - 					writer.write("\tpSZ->serializeAsElement(\""+attribs[i].getElementNameAsString()+"\",
Axis_URI_" + classname + ", (void*)&(param->"+attribs[i].getParamName()+"), "+ CUtils.getXSDTypeForBasicType(attribs[i].getTypeName())+");\n");
  + 					writer.write("\tpSZ->serializeAsElement(\""+attribs[i].getSOAPElementNameAsString()+"\",
Axis_URI_" + classname + ", (void*)&(param->"+attribs[i].getParamName()+"), "+ CUtils.getXSDTypeForBasicType(attribs[i].getTypeName())+");\n");
    				}
    
   			}else{
  
  
  
  1.17      +15 -0     ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/ParameterInfo.java
  
  Index: ParameterInfo.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/ParameterInfo.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- ParameterInfo.java	18 Feb 2005 11:11:22 -0000	1.16
  +++ ParameterInfo.java	16 Mar 2005 03:03:34 -0000	1.17
  @@ -187,6 +187,21 @@
       }
       //Samisa
   
  +    //Samisa 16/03/2005
  +    public String getSOAPElementNameAsString()
  +    {
  +        String paramName = elementName.getLocalPart();
  +        if (paramName.lastIndexOf(SymbolTable.ANON_TOKEN) > 1)
  +        {
  +            paramName =
  +                paramName.substring(
  +                    paramName.lastIndexOf(SymbolTable.ANON_TOKEN) + 1,
  +                    paramName.length());
  +        }
  +        return paramName;
  +    }
  +    //Samisa
  +
       /**
        * @param name
        */
  
  
  

Mime
View raw message