[ http://issues.apache.org/jira/browse/AXISCPP-873?page=all ]
Dushshantha Chandradasa closed AXISCPP-873:
-------------------------------------------
Resolution: Invalid
i think we can close this issue.
> When received from Server "result" object containing xsd:choice elements is
> NULL
> ---------------------------------------------------------------------------------
>
> Key: AXISCPP-873
> URL: http://issues.apache.org/jira/browse/AXISCPP-873
> Project: Axis-C++
> Type: Bug
> Components: Client - Deserialization
> Reporter: Manohar
> Assignee: Dushshantha Chandradasa
>
> When an complextype object containing multiple simple type elements in
> xsd:choice is received from server, it is NULL. The tcp resonse message has
> the correct values for these simple types but not able to print these values
> of "result" object because it is NULL.
> Below are the wsdl and client snippets.
> <xsd:complexType name="aRecord">
> <xsd:choice>
> <xsd:element name="field1" type="xsd:int" nillable="false" />
> <xsd:element name="field2" type="xsd:string" nillable="false"
> />
> <xsd:element name="field3" type="xsd:byte" nillable="false" />
> </xsd:choice>
> </xsd:complexType>
> Client
> ---------
> aRecord* input=new aRecord();
> xsd__int* fieldone=new xsd__int();
> *fieldone=12345;
> input->field1=fieldone;
> input->field2 = "I'm still here!";
> xsd__byte* fieldthree=new xsd__byte();
> *fieldthree=65;
> input->field3=fieldthree;
> aRecord* result = NULL;
> result = ws->myOperation(input);
> if ( result == NULL )
> cout << "result object is null" << endl;
>
> cout << "Result field1 is = " << *(result->field1) << endl;
> When I run the above test "result object is null" is displayed in test output
> file.
> I've added a test by name ComplexTypeChoice2 to address this problem.
> 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