axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal BeanParamWriter.java
Date Mon, 21 Feb 2005 16:02:32 GMT
dicka       2005/02/21 08:02:32

  Modified:    c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal
                        BeanParamWriter.java
  Log:
  Correct problem with generated code not compiling when containing attributes.
  
  PR: AXISCPP-460
  Submitted by: Adrian Dick
  
  Revision  Changes    Path
  1.51      +4 -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.50
  retrieving revision 1.51
  diff -u -r1.50 -r1.51
  --- BeanParamWriter.java	21 Feb 2005 14:54:47 -0000	1.50
  +++ BeanParamWriter.java	21 Feb 2005 16:02:31 -0000	1.51
  @@ -146,8 +146,10 @@
   				if( soapTagName.charAt(0) == '_' )
   					soapTagName = soapTagName.substring(1, soapTagName.length() );
   				//end remove _Ref sufix and _ prefix in SOAP tag name
  -				writer.write("\tif (0 != param->"+attribs[i].getParamNameAsMember()+")\n");
  -				//writer.write("\t\tpSZ->serializeAsAttribute(\""+attribs[i].getParamName()+"\",
0, (void*)&(param->"+attribs[i].getParamName()+"), "+ CUtils.getXSDTypeForBasicType(attribs[i].getTypeName())+");\n");
			
  +				if (attribs[i].isOptional())
  +				{
  +					writer.write("\tif (0 != param->"+attribs[i].getParamNameAsMember()+")\n");
  +				}				
   				
   				if (attribs[i].getTypeName().equals("xsd__string")
    						|| attribs[i].getTypeName().equals("xsd__anyURI")
  
  
  

Mime
View raw message