axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nadir Amra <a...@us.ibm.com>
Subject RE: No answers?
Date Tue, 27 May 2008 20:09:05 GMT
Ryan,

I believe all three problems are resolved and have been put into SVN. 
Please try the latest code in SVN and let me know the results. 

Thanks.

Nadir Amra


"McCullough, Ryan" <rmccullough@rightnow.com> wrote on 05/23/2008 11:22:37 
AM:

> Here are a list of issues I encountered with the generated soap objects.
> 
> 
> 1) I found a bug in BeanParamWriter.java.
> 
> In writeRestrictionCheckerFunction(), the opening brace '{' was not 
being
> commented out.
> 
> writer.write( "//)\n\t{\n");
> 
> should be
> 
> writer.write( "//)\n");
> writer.write( "//\t{\n");
> 
> Notice how there was a newline, then a tab and the open brace with no
> comment. This caused compilation errors.
> 
> 
> 
> 2) I also think I found a problem with XSD_DOUBLE and XSD_DATETIME.
> 
> I have this in my schema xsd:
> <xs:complexType name="ac_value">
>     <xs:choice>
>         <xs:element name="cval"      minOccurs="0" nillable="true"
> type="currency" />
>         <xs:element name="dval"      minOccurs="0" nillable="true"
> type="xs:double" />
>         <xs:element name="ival"      minOccurs="0" nillable="true"
> type="xs:long" />
>         <xs:element name="sval"      minOccurs="0" nillable="true"
> type="xs:string" />
>         <xs:element name="tval"      minOccurs="0" nillable="true"
> type="dttm" />
>     </xs:choice>
> </xs:complexType>
> 
> It was generating this code in the "Serialize sub-elements." section:
> else if(param->dval)
> {
>    if (param->dval != NULL)
>    pSZ->serializeAsElement("dval", Axis_URI_Ac_value,
> (void*)(*(param->dval)), XSD_DOUBLE);
> }
> // snipped irrelevant code
> else if(param->tval)
> {
>    if (param->tval != NULL)
>    pSZ->serializeAsElement("tval", Axis_URI_Ac_value,
> (void*)(*(param->tval)), XSD_DATETIME);
> }
> 
> When I tried to compile this file, I received these 2 errors:
> error C2440: 'type cast' : cannot convert from 'double' to 'void *'
> error C2440: 'type cast' : cannot convert from 'struct tm' to 'void *'
> 
> If I removed the de-reference * from param, the compile errors went 
away.
> pSZ->serializeAsElement("dval", Axis_URI_Ac_value, (void*)(param->dval),
> XSD_DOUBLE);
> pSZ->serializeAsElement("tval", Axis_URI_Ac_value, (void*)(param->tval),
> XSD_DATETIME);
> 
> 
> 
> 3) I received warnings all over the place about peekedElementName not 
being
> used (unreferenced). 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Mime
View raw message