From axis-c-dev-return-8846-apmail-ws-axis-c-dev-archive=ws.apache.org@ws.apache.org Tue Dec 20 08:43:11 2005 Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 32321 invoked from network); 20 Dec 2005 08:43:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Dec 2005 08:43:11 -0000 Received: (qmail 34403 invoked by uid 500); 20 Dec 2005 08:43:11 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 34282 invoked by uid 500); 20 Dec 2005 08:43:10 -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 34271 invoked by uid 99); 20 Dec 2005 08:43:10 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Dec 2005 00:43:10 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [12.40.51.197] (HELO mailhost.virtusa.com) (12.40.51.197) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Dec 2005 00:43:07 -0800 Received: from cs-mailsvr.Virtusa.com ([10.2.1.11]unverified) by mailhost.virtusa.com with InterScan Messaging Security Suite; Tue, 20 Dec 2005 03:39:45 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: compile failure of test CombinedChoice.xml Date: Tue, 20 Dec 2005 14:42:22 +0600 Message-ID: <785A212E11918F449D1318C61B7A9B0E0247594A@cs-mailsvr.Virtusa.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: compile failure of test CombinedChoice.xml Thread-Index: AcYEg4T188hfMxdfTrijInIxQUlLdAAADY6QAC8cqaA= From: "Dushshantha Chandradasa" To: "Apache AXIS C Developers List" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I have fixed the problem. CombinedChoice test is casing in Windows properly now.=20 Regards, Dushshantha -----Original Message----- From: Dushshantha Chandradasa [mailto:dchandradasa@virtusa.com]=20 Sent: Monday, December 19, 2005 4:14 PM To: Apache AXIS C Developers List Subject: RE: compile failure of test CombinedChoice.xml Yes, that is true. I handled choice elements earlier as a pointer-to-value. Now the code generation is messed up. I changed the generated code manually to have a pointer-to-value and tried but serialization is still wrong.=20 The edited files are attached here.=20 =20 -----Original Message----- From: Adrian Dick [mailto:adrian.dick@uk.ibm.com]=20 Sent: Monday, December 19, 2005 3:59 PM To: Apache AXIS C Developers List Subject: RE: compile failure of test CombinedChoice.xml Hi, Looking at the CombinedChoice testcase, I would say the test client code is correct. However, WSDL2Ws is generating pointer-to-pointer for xsd:choice, where I believe it should simply be pointer-to-value. Regards, Adrian _______________________________________ Adrian Dick (adrian.dick@uk.ibm.com) "Dushshantha Chandradasa" wrote on 19/12/2005 09:48:55: > Hi Nadir, > > I too noticed this in Windows platform. I tried to fix it from the > client code by doing following changes. Then the client is compiling and > able to run. But the serialization and deserialization is wrong. > > Changes in the client file: > > int * * a; > int* aa =3D new int; > *aa =3D 5; > a =3D &aa; > Value0->IntValue =3D a; > > The client request and server response lokk like the following. > > Request: > > POST /axis/CombinedChoice HTTP/1.1 > Host: localhost:8080 > Content-Type: text/xml; charset=3DUTF-8 > SOAPAction: "SimpleChoiceTest#echoChoice" > Content-Length: 579 > > > xmlns:SOAP-ENV=3D"http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"> > > > xmlns:ns2=3D"http://soapinterop.org/xsd">5 ChoiceIntValue> > 3353928 = <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D wrong serialization > NonChoiceStringValue > > > > > > > Response: > > HTTP/1.1 200 OK > Date: Mon, 19 Dec 2005 09:38:35 GMT > Server: Apache/2.0.54 (Win32) > Content-Length: 579 > Content-Type: text/xml > > > xmlns:SOAP-ENV=3D"http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"> > > > <_return > xmlns:ns2=3D"http://soapinterop.org/xsd">5 ChoiceIntValue> > 9176872 > NonChoiceStringValue > > > > > > > > Thanks > Dushshantha > > -----Original Message----- > From: Nadir Amra [mailto:amra@us.ibm.com] > Sent: Monday, December 19, 2005 7:30 AM > To: Apache AXIS C Developers List > Subject: compile failure of test CombinedChoice.xml > > Kicking the tires on the new memory management fixes. > > While attempting to run test > c/tests/auto_build/testcases/tests/CombinedChoice.xml, I get a compile > error when compiling CombinedChoiceClient.cpp. Here are the errors: > > [cc] > "/home/amra/axis/L051218/obj/test/generated/cpp/UnitTest_CombinedChoice/ > CombinedChoiceClient.cpp", > line 15.36: CZP021 > 6(30) An expression of type "int *" cannot be converted to type "int > **". > > [cc] > "/home/amra/axis/L051218/obj/test/generated/cpp/UnitTest_CombinedChoice/ > CombinedChoiceClient.cpp", > line 16.39: CZP02 > 16(30) An expression of type "int" cannot be converted to type "int *". > > > > The offending lines in the code are the two lines after the > instantiation > of the object: > ChoiceComplexType* Value0=3Dnew ChoiceComplexType(); > > Value0->IntValue =3D new int; > *(Value0->IntValue) =3D 5; > > The header file defines the field as: > > xsd__int* * IntValue; > > So my question is what is it suppose to be and how is it working on > other > platforms? > > Nadir K. Amra >