Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 70310 invoked from network); 25 Apr 2006 02:47:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Apr 2006 02:47:17 -0000 Received: (qmail 49676 invoked by uid 500); 25 Apr 2006 02:47:16 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 49660 invoked by uid 500); 25 Apr 2006 02:47:16 -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 49645 invoked by uid 99); 25 Apr 2006 02:47:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Apr 2006 19:47:16 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Apr 2006 19:47:15 -0700 Received: from brutus (localhost.localdomain [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 208FA7142A6 for ; Tue, 25 Apr 2006 02:46:06 +0000 (GMT) Message-ID: <4652707.1145933166093.JavaMail.jira@brutus> Date: Tue, 25 Apr 2006 02:46:06 +0000 (GMT+00:00) From: "FX SDCC (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Commented: (AXISCPP-966) WSDL2WS generate wrong code: redundant value reference * in Wrapper In-Reply-To: <24424150.1145931665669.JavaMail.jira@brutus> 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-966?page=comments#action_12376150 ] FX SDCC commented on AXISCPP-966: --------------------------------- Sorry, the "Environment info" of this bug report is wrong, so should be corrected like the below: Platform: Linux fedora 3.0 Axis version: Server-side Axis C++ 1.6Beta XML Parser Lib: xersesc 2.6 WSDL2ws tool by using axis java 1.3 Client-side version Axis java 1.3 Http Server Version: Apache 2.0.53 Tomcat 2.0.58 > WSDL2WS generate wrong code: redundant value reference * in Wrapper > ------------------------------------------------------------------- > > Key: AXISCPP-966 > URL: http://issues.apache.org/jira/browse/AXISCPP-966 > Project: Axis-C++ > Type: Bug > Components: WSDL processing - RPC > Versions: 1.6 Beta > Environment: Platform: > Linux fedora 3.0 > Axis version: > Server-side Axis C++ 1.5 > XML Parser Lib: > xersesc 2.6 > WSDL2ws tool by using axis java 1.2RC3 jar > Client-side version Axis java 1.2RC3 > Http Server Version: > Apache 2.0.53 > Tomcat 2.0.58 > Reporter: FX SDCC > Priority: Critical > > [Error Statement]: > I have used AxisCPP1.6Beta version to generate SampleTestSoapWrapper.cpp as the below: > Function: int SampleTestSoapWrapper::GetOperation(void* pMsg) > xsd_string v0 = *(pIWSDZ->getElementAsString("ListType", 0)); > The generated code has bug: xsd_string is already indeed a "char *", so should not reference it's content by "*". > The correct code I expected is: > xsd_string v0 = pIWSDZ->getElementAsString("ListType", 0); > [solution]: > I have investigated the source code of AxisCPP/WSDL2Ws tool, and found that if I modify the following code at about line 217~234 in writeMethodInWrapper method that belongs to WrapWriter (wsdl2ws/cpp/iteral) class, the above bug can be resolved. > else > { > > writer.write( > "\t" > + paraTypeName > + " v" > + i > // + " = pIWSDZ->" > // + " = *(pIWSDZ->" > //>mxiong debug 20060425 > + CUtils.getParameterGetValueMethodName( > paraTypeName, > false) > + "(\"" > + elementName > // // + "\",0));\n"); > + "\",0);\n"); > // >mxiong debug 20060425 > } > So I think it's a bug. > [other] > I will create a patch for you and upload it later. -- 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