[ 
http://issues.apache.org/jira/browse/AXISCPP-844?page=comments#action_12332461 
] 

Dushshantha Chandradasa commented on AXISCPP-844:
-------------------------------------------------

as a fix for this, i plan to make the following changes to  the code generation.

Nillable simple type element is  treated as a pointer to a pointer of the 
particular type.

ex:
    xsd__int * * IntValue

The serialization code segment for this element will be :
Axis_Serialize_ComplexTypeName (...)
{
...
if(param->IntValue)
        {
                pSZ->serializeAsElement("IntValue", Axis_URI_ChoiceComplexType, 
(void*)(*(param->IntValue)), XSD_INT);
        }
...
}


and the deserialization will be done as follows:

Axis_DeSerialize_ComplexTypeName(...)
{
...
if(strcmp(choiceName,"IntValue")==0)
        {
                param->IntValue = (xsd__int**)(xsd__int*)new xsd__int;
                *(param->IntValue) = pIWSDZ->getElementAsInt( "IntValue",0); 
        }
...
}



> Compile problems in the WSDL2Ws generated code
> ----------------------------------------------
>
>          Key: AXISCPP-844
>          URL: http://issues.apache.org/jira/browse/AXISCPP-844
>      Project: Axis-C++
>         Type: Bug
>     Reporter: Manohar
>     Assignee: Dushshantha Chandradasa
>      Fix For: 1.6 Alpha
>  Attachments: ComplexTypeChoice1.wsdl
>
> Hi,
> I am trying to test xsd:choice schema component and as part of that  created 
> a wsdl and test client. When run the test client,  the code genrated by 
> WSDL2Ws has compile problems.  Below is the error which is reported when I 
> try to run the test client.
> [cc] 
> C:\AXISCPP\TEST\test_P\obj\test\generated\cpp\ComplexTypeAll1\aRecord.cpp(82) 
> : error C2440: '=' : cannot convert from 'axiscpp::xsd__int *' to 
> 'axiscpp::xsd__int ** '
> I've validated my wsdl and it's a valid one.  Looks like there is some 
> problem in  WSDL2Ws generating the code.  
> Regards
> Manohar 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to