Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 24243 invoked from network); 20 Aug 2004 14:41:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 20 Aug 2004 14:41:21 -0000 Received: (qmail 56274 invoked by uid 500); 20 Aug 2004 14:41:22 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 56134 invoked by uid 500); 20 Aug 2004 14:41:20 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 56120 invoked by uid 99); 20 Aug 2004 14:41:20 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received: from [195.212.29.135] (HELO mtagate2.uk.ibm.com) (195.212.29.135) by apache.org (qpsmtpd/0.27.1) with ESMTP; Fri, 20 Aug 2004 07:41:17 -0700 Received: from d06nrmr1307.portsmouth.uk.ibm.com (d06nrmr1307.portsmouth.uk.ibm.com [9.149.38.129]) by mtagate2.uk.ibm.com (8.12.10/8.12.10) with ESMTP id i7KEfE6J128368 for ; Fri, 20 Aug 2004 14:41:14 GMT Received: from d06ml068.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by d06nrmr1307.portsmouth.uk.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i7KEfCP4083862 for ; Fri, 20 Aug 2004 15:41:13 +0100 In-Reply-To: <000501c486b6$961c3f60$0a65a8c0@SusanthaNB> Subject: RE: Supporting complexType with simpleContent - FYI To: "Apache AXIS C User List" X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003 Message-ID: From: John Hawkins Date: Fri, 20 Aug 2004 15:40:38 +0100 X-MIMETrack: Serialize by Router on D06ML068/06/M/IBM(Release 6.0.2CF2HF259 | March 11, 2004) at 20/08/2004 15:43:58 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N fyi: the alpha code drop appears not to creatae a valid stub e.g. if(AXIS_SUCCESS == m_pCall->checkMessage("getInputResponse", "http://www.sample.com/Enumeration.wsdl")) { pReturn = (Type1*)m_pCall->getCmplxObject((void*) Axis_DeSerialize_Type1, (void*) Axis_Create_Type1, (void*) Axis_Delete_Type1,">getInputResponse>type", 0); } being produced in the client code (note the ">getInputResponse>type", ) there are other errors like this in the created stubs. We also found another example that was fixed by a previous patch that has been overwritten/removed since 1.2. Something has regressed - any clues? These errors do not show up in compilation only when running tests because the SOAP across the wire is screwed up. Was any testing done on this code before shipping? Things like this just re-emphasise the need for daily builds with tests running off the build :-( John "Susantha Kumara" To 20/08/2004 14:06 cc "'Apache AXIS C User List'" Please respond to Subject "Apache AXIS C RE: Supporting complexType with User List" simpleContent - FYI Hi all, I have added the support for complexTypes with simpleContent. Now the code generates fine for such complexTypes. But I did not have much time to test any server/client code generated. I have committed the code because it has no affect on the rest of the code. Please have a try with wsdls with complexTypes with simpleContent (Ex: uddi wsdl ) and let me know if it works fine. Susantha --- -----Original Message----- From: Susantha Kumara [mailto:susantha@opensource.lk] Sent: Wednesday, August 18, 2004 5:27 PM To: 'Apache AXIS C Developers List' Subject: Supporting complexType with simpleContent - FYI Hi all, I am working on Supporting complexType s with simpleContent and need to add new functions to Serializer and Deserializer. serializeAsChardata to the serialzer and getChardataAsString to the deserializer Then the corresponding code generated for will be class name { public: xsd__string name_value; /*extension base type*/ xsd__string lang; /*attribute*/ name(); ~name(); }; /* Serialized stream of the name object some string in english */ /* * This static method serialize a name type of object */ int Axis_Serialize_name(name* param, IWrapperSoapSerializer* pSZ) { if ( param == NULL ) { /* TODO : may need to check nillable value*/ pSZ->serializeAsAttribute("xsi:nil", 0, (void*)&(xsd_boolean_true), XSD_BOOLEAN); pSZ->serialize(">", NULL); return AXIS_SUCCESS; } /* first serialize attributes if any*/ pSZ->serializeAsAttribute("lang", 0, (void*)&(param->lang), XSD_STRING); pSZ->serialize(">", 0); pSZ->serializeAsChardata((void*)&(param->name_value), XSD_STRING); return AXIS_SUCCESS; } /* * This static method deserialize a name type of object */ int Axis_DeSerialize_name(name* param, IWrapperSoapDeSerializer* pIWSDZ) { param->lang = pIWSDZ->getAttributeAsString("lang",0); param->name_value = pIWSDZ->getChardataAsString(); } I am doing the improvements to serializer/deserializer code as well as WSDL2Ws code. Susantha ---