Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 53948 invoked from network); 5 Jun 2006 07:51:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jun 2006 07:51:30 -0000 Received: (qmail 57664 invoked by uid 500); 5 Jun 2006 07:51:29 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 57525 invoked by uid 500); 5 Jun 2006 07:51:29 -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 57514 invoked by uid 99); 5 Jun 2006 07:51:29 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jun 2006 00:51:29 -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, 05 Jun 2006 00:51:28 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2F77A71428E for ; Mon, 5 Jun 2006 07:50:30 +0000 (GMT) Message-ID: <26906854.1149493830163.JavaMail.jira@brutus> Date: Mon, 5 Jun 2006 07:50:30 +0000 (GMT+00:00) From: "Michael Xiong (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Commented: (AXISCPP-931) WSDL2WS generates wrong Class Name In-Reply-To: <481293987.1140590677972.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-931?page=comments#action_12414705 ] Michael Xiong commented on AXISCPP-931: --------------------------------------- Hello Adrian, I've verified this problem: AXISCPP-931 on axis-c-1.6beta version, It's OK there. Thanks. Best regards. Michael Xiong > WSDL2WS generates wrong Class Name > ---------------------------------- > > Key: AXISCPP-931 > URL: http://issues.apache.org/jira/browse/AXISCPP-931 > Project: Axis-C++ > Type: Bug > Components: WSDL processing - Doc > Versions: 1.5 Final > 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: Michael Xiong > Priority: Critical > > [Error Statement]: > We have used AxisCPP1.5final version to generate SampleTestSoapWrapper.cpp as the below: > Function: int SampleTestSoapWrapper::GetOperation(void* pMsg) > try > { > pIWSSZ->addOutputCmplxParam(out0, (void*)Axis_Serialize_ContainerInfo, (void*) Axis_Delete_ContainerInfo, ">GetOperationResponse>Container", Axis_URI_ContainerInfo); > pIWSSZ->addOutputCmplxParam(out1, (void*)Axis_Serialize_PropertyList, (void*)Axis_Delete_PropertyList, ">GetOperationResponse>PropertyList", Axis_URI_PropertyList); > } > The generated code has bug: ">GetOperationResponse>Container" and ">GetOperationResponse>PropertyList". > In the function we need parameter "Container" other than ">GetOperationResponse>Container". > [Our solution]: > We have investigated the source code of AxisCPP/WSDL2Ws tool, and found that if we add the following code at about line 626 in writeMethodInWrapper method that belongs to WrapWriter (wsdl2ws/cpp/iteral) class, the above bug can be resolved. > //returnParamName=param.getElementName().getLocalPart(); > if(returnParamName.lastIndexOf(">")>1) > { > returnParamName= > returnParamName.substring(returnParamName.lastIndexOf(">")+1,returnParamName.length()); > } > [More suggestion]: > But we think it may be better to resolve this bug by change some code inside getElementName()(in ParameterInfo class) method or inside getLocalPart()(in QName class) -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-dev-help@ws.apache.org