Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 74938 invoked from network); 6 Apr 2006 12:58:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Apr 2006 12:58:08 -0000 Received: (qmail 11110 invoked by uid 500); 6 Apr 2006 12:58:07 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 11093 invoked by uid 500); 6 Apr 2006 12:58:07 -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 11080 invoked by uid 99); 6 Apr 2006 12:58:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Apr 2006 05:58:07 -0700 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 [195.68.92.104] (HELO EXCHSRV2K3.dictao.com) (195.68.92.104) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Apr 2006 05:58:05 -0700 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [AXIS C++ 1.6b] : Deserialization problems Date: Thu, 6 Apr 2006 14:57:42 +0200 Message-ID: <9CD54A64495D9A4681A5B9B185E847AD4E06E6@EXCHSRV2K3.dictao.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [AXIS C++ 1.6b] : Deserialization problems thread-index: AcZZZutt50ApzZdNTjqFFI1Qxt6jPgAD08lQ From: "Damien Bouchet" 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 Hello, thanks for the anwser. In fact, with more research, we have found the problem has been = partially fixed in the 1.6 revision with this check-in in revision = 369808 : http://svn.apache.org/viewcvs.cgi?rev=3D369808&view=3Drev But that fix is only partial and doesn't solve our problem, because it = fixes only the DOC_LITERAL case, and not the RPC_ENCODED case. Proposed patch based on the latest SoapDeSerializer.cpp version = available from this URL (adding a required check on m_pNode too): http://svn.apache.org/viewcvs.cgi/webservices/axis/trunk/c/src/soap/SoapD= eSerializer.cpp --- SoapDeSerializer.cpp 2006-04-06 13:40:41.000000000 +0200 +++ SoapDeSerializerFix.cpp 2006-04-06 02:50:55.096619672 +0200 @@ -1598,20 +1598,20 @@ } else if (m_pNode && (END_ELEMENT =3D=3D m_pNode->m_type) && = bNillFound ) //xsi:nil=3D"true" { pSimpleType->deserialize(NULL); m_pNode =3D NULL; return; } - else if (END_ELEMENT =3D=3D m_pNode->m_type) // We have = an empty string - Jira AXISCPP-93 + else if (m_pNode && (END_ELEMENT =3D=3D m_pNode->m_type) ) = // We have an empty string - Jira AXISCPP-93 { pSimpleType->deserialize(""); - m_pNode =3D m_pParser->next(); + m_pNode =3D NULL; return; } else { // simpleType may have xsi:nill=3D"true" */ //m_pNode =3D NULL; // this is important when deserializing // arrays We also seem to have a problem with non US-ASCII requests, even when = they apparently are properly UTF-8 declared and encoded.=20 We have not been able yet to understand what happens. ee=C3=A9ee TEXT2 Text1 seems to be handled just like if it were empty in our test.=20 Our treatment gets the right value for text2. Best regards -------------------------------------------------------------------------= -------------------------------------- Ce message et tous les fichiers qui y sont attach=E9s contiennent des = informations confidentielles ou appartenant =E0 Dictao. Ils sont destin=E9s =E0 = l'intention exclusive de son (ses) destinataire(s). Toute divulgation, utilisation, = diffusion ou reproduction (totale ou partielle) de ce message, ou des informations qu'il contient, doit =EAtre pr=E9alablement autoris=E9e. Tout message = =E9lectronique est susceptible d'alt=E9ration et son int=E9grit=E9 ne peut =EAtre = assur=E9e. Dictao d=E9cline toute responsabilit=E9 au titre de ce message s'il a =E9t=E9 modifi=E9 = ou falsifi=E9. Si vous n'=EAtes pas destinataire de ce message, merci de le d=E9truire = imm=E9diatement=20 et d'avertir l'exp=E9diteur de l'erreur de distribution et de la = destruction du message. Dictao - RCS Paris B 429 383 979 - 42, avenue de la Grande Arm=E9e - = 75017 Paris This e-mail and all the attached files contain confidential information = or information=20 belonging to Dictao. They are intended solely for the addressee(s). The = unauthorized=20 disclosure, use, dissemination or copying (either whole or partial) of = this e-mail, or=20 any information it contains, is prohibited. E-mails are susceptible to = alteration and=20 their integrity cannot be guaranteed. Dictao shall not be liable for = this e-mail if modified or falsified. If you are not the intended recipient of this = e-mail, please=20 delete it immediately from your system and notify the sender of the = wrong=20 delivery and the mail deletion. Dictao - Registered Office : Paris B 429 383 979 - 42, avenue de la = Grande Arm=E9e - 75017 Paris - France