Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 46720 invoked from network); 17 Jan 2007 05:31:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jan 2007 05:31:46 -0000 Received: (qmail 32310 invoked by uid 500); 17 Jan 2007 05:31:43 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 32302 invoked by uid 500); 17 Jan 2007 05:31:43 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 32291 invoked by uid 99); 17 Jan 2007 05:31:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jan 2007 21:31:43 -0800 X-ASF-Spam-Status: No, hits=2.3 required=10.0 tests=HTML_MESSAGE,MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of amilasuriarachchi@gmail.com designates 66.249.92.173 as permitted sender) Received: from [66.249.92.173] (HELO ug-out-1314.google.com) (66.249.92.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jan 2007 21:31:34 -0800 Received: by ug-out-1314.google.com with SMTP id j40so1808232ugd for ; Tue, 16 Jan 2007 21:31:12 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=lBnhdPRR1bSxta9dqtODu60O2VCQ6vJ+ktzHUbRdDl6WtC823iAmMXlGSKr463ZwpDMEKUJ+PuFbUEUBoovx2IMLEaB/dFRUgFbjzNEppnq+yEL00BqflXD6nUkK8JnFsHixstkO6kIgkCLj2rkoQx/F+KOV6TsDGeYmBDkzttk= Received: by 10.82.169.4 with SMTP id r4mr1431993bue.1169011872448; Tue, 16 Jan 2007 21:31:12 -0800 (PST) Received: by 10.82.188.6 with HTTP; Tue, 16 Jan 2007 21:31:12 -0800 (PST) Message-ID: <60708f4b0701162131j340e117bg92865cd42faef73b@mail.gmail.com> Date: Wed, 17 Jan 2007 11:01:12 +0530 From: "Amila Suriarachchi" To: axis-user@ws.apache.org Subject: Re: package issue of WSDL2Java and Eclipse In-Reply-To: <1168962049.95e84c5cS3075163@student.rmit.edu.au> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_107313_30678867.1169011872182" References: <1168962049.95e84c5cS3075163@student.rmit.edu.au> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_107313_30678867.1169011872182 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I can't realy understand your problem. but I can tell you that you can use the ns2p option to set a package name for any url in the wsdl. eg -ns2p http://xml.org=test.com Try to use the eclipse plugin for axis2 codegeneration. http://ws.apache.org/axis2/tools/1_1/eclipse/wsdl2java-plugin.html On 1/16/07, Jiang Liu wrote: > > Hi all > I found that, well it actually could not be called as a > problem, WSDL2Java generates all source files and put them into a folder > called "...\src\". But the problem is most client files keep the original > package from WSDL's definition, so when integrating all sources with > Eclipse, there is always package error. > > For this error, i can do nothing but just hand code my Client "easily". > Any suggestions that i could keep the "original" file structure when using > WSDL2Java so at least there is no problem when integrating with Eclipse? I > tried '-p' when different defined package name, but it seems like only stub > file changed, others not. > > cheers!! > ----------------------------- > Jiang Liu > Student Number: 3075163 > CS/Yallara Name: ljiang > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > -- Amila Suriarachchi, WSO2 Inc. ------=_Part_107313_30678867.1169011872182 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I can't realy understand your problem. but I can tell you that you can use the ns2p option to set a package name for any url in the wsdl.
eg -ns2p http://xml.org=test.com

Try to use the eclipse plugin for axis2 codegeneration.
http://ws.apache.org/axis2/tools/1_1/eclipse/wsdl2java-plugin.html

On 1/16/07, Jiang Liu <S3075163@student.rmit.edu.au> wrote:
Hi all
I found that, well it actually could not be called as a problem,  WSDL2Java generates all source files and put them into a folder called "...\src\". But the problem is most client files keep the original package from WSDL's definition, so when integrating all sources with Eclipse, there is always package error.

For this error, i can do nothing but just hand code my Client "easily". Any suggestions that i could keep the "original" file structure when using WSDL2Java so at least there is no problem when integrating with Eclipse? I tried '-p' when different defined package name, but it seems like only stub file changed, others not.

cheers!!
-----------------------------
Jiang Liu
Student Number: 3075163
CS/Yallara Name: ljiang

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org




--
Amila Suriarachchi,
WSO2 Inc. ------=_Part_107313_30678867.1169011872182--