Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 25847 invoked from network); 29 Nov 2005 09:59:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Nov 2005 09:59:10 -0000 Received: (qmail 11070 invoked by uid 500); 29 Nov 2005 09:58:54 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 11039 invoked by uid 500); 29 Nov 2005 09:58:53 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 11026 invoked by uid 99); 29 Nov 2005 09:58:53 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2005 01:58:51 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 2A1DBC9 for ; Tue, 29 Nov 2005 10:58:30 +0100 (CET) Message-ID: <1548550182.1133258310149.JavaMail.jira@ajax.apache.org> Date: Tue, 29 Nov 2005 10:58:30 +0100 (CET) From: "Dushshantha Chandradasa (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Closed: (AXISCPP-873) When received from Server "result" object containing xsd:choice elements is NULL In-Reply-To: <1240178672.1132296521362.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ 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. > > > > > > > > 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