Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 57512 invoked from network); 25 Jun 2007 07:52:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jun 2007 07:52:52 -0000 Received: (qmail 16820 invoked by uid 500); 25 Jun 2007 07:52:42 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 16803 invoked by uid 500); 25 Jun 2007 07:52:42 -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 16786 invoked by uid 99); 25 Jun 2007 07:52:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2007 00:52:42 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of desmond.whewell@ericsson.com designates 193.180.251.60 as permitted sender) Received: from [193.180.251.60] (HELO mailgw3.ericsson.se) (193.180.251.60) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2007 00:52:37 -0700 Received: from mailgw3.ericsson.se (unknown [127.0.0.1]) by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id 7E27D205B2 for ; Mon, 25 Jun 2007 09:52:15 +0200 (CEST) X-AuditID: c1b4fb3c-af67dbb0000007e1-6c-467f742fe432 Received: from esealmw126.eemea.ericsson.se (unknown [153.88.254.123]) by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id 61F75204B9 for ; Mon, 25 Jun 2007 09:52:15 +0200 (CEST) Received: from esealmw118.eemea.ericsson.se ([153.88.200.77]) by esealmw126.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Mon, 25 Jun 2007 09:52:15 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Axis2 1.1.1 WSDL2JAVA - Not generating java classes for Date: Mon, 25 Jun 2007 09:50:40 +0200 Message-ID: <94BF386B051B5849BA84A45DDFC4E60A011D51D8@esealmw118.eemea.ericsson.se> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Axis2 1.1.1 WSDL2JAVA - Not generating java classes for Thread-Index: Ace2k2d/LThdoYVbS8GMQ+KQnzI5LQAaOa4g From: "Desmond Whewell (CV/ETL)" To: X-OriginalArrivalTime: 25 Jun 2007 07:52:15.0012 (UTC) FILETIME=[BEF5F640:01C7B6FD] X-Brightmail-Tracker: AAAAAA== X-Virus-Checked: Checked by ClamAV on apache.org The multiple-run and merge option is exactly what I did. If you study the generated code, you will see that is it fairly regular and it is straightforward to merge the results of multiple runs into one implementation.=20 Despite this, it *is* error-prone and extremely tedious. Thankfully, my wsdl is pretty stable, but if you were going around this loop several times, it could send you mad! On the other hand, you may find, as I did, that the generated code is only sufficient to get you started; I had to add several bits of code to manage header faults. Therefore, you will probably end up with your own receiver code that is always used in place of the boiler-plate. YMMV Cheers, Des -----Original Message----- From: Ajith Ranabahu [mailto:ajith.ranabahu@gmail.com]=20 Sent: 24 June 2007 20:10 To: axis-user@ws.apache.org Subject: Re: Axis2 1.1.1 WSDL2JAVA - Not generating java classes for Hi, >From a glance at the WSDL I feel that you can use the code generator to generate multiple stubs for the different porttypes and still use it. I believe even if the codegen had the ability to handle multiple ports, it would have done the same thing, the difference in this case is that you have to invoke the codegen multiple times to generate the code for all ports. Ajith On 6/23/07, Alexey Zavizionov wrote: > Hi, > I really haven't time in my wsrp implementation and this impossibility > for multiple porttypes blocked my project. This leads me to seek other > soap implementations... :( > > Will be fix it soon? > When will be the next release? > > Regards, > Alexey > > On 6/22/07, Ajith Ranabahu wrote: > > Hi, > > You can use -pn, -sn options to specify the different port/service=20 > > combinations. As for the point raised by Kim, yes it is a problem=20 > > since now each port will yield a different service. Really this=20 > > becomes a issue when you have multiple bindings and multiple=20 > > porttypes. > > > > Ajith > > > > On 6/22/07, Alexey Zavizionov wrote: > > > How can I do "generate code for each port with separate WSDL2Java=20 > > > calls" if I can't modify wsdl file, because it was given by wsrp=20 > > > specification=20 > > > http://www.oasis-open.org/committees/wsrp/specifications/version1/ > > > wsrp_service.wsdl > > > ? > > > > > > Regards, > > > Alexey > > > > > > > > > On 6/22/07, Sagnwoo Kim wrote: > > > > Ajith suggested multiple wsdl files for the solution of multiple > > > > ports. I have a question for that. When you want to create=20 > > > > client from the wsdl files. with WSDL2Java and if you have multiple wsdl files for one service. > > > > Then you have to create multiple clients as well for every=20 > > > > ports? Even though they are all under the same service? > > > > > > > > Thanks > > > > Sangwoo Kim > > > > > > > > > > > > On 6/22/07, Bo Xie wrote: > > > > > Hi Ajith, > > > > > > > > > > Thanks for the comments. Look forward to your explanation.=20 > > > > > Like to know > > > > the difference between the workaround and the expected. > > > > > > > > > > Thanks, > > > > > -Bo > > > > > > > > > > > > > > > On 6/13/07, Ajith Ranabahu wrote: > > > > > > Hi, > > > > > > We will definitely look at the possibility of supporting=20 > > > > > > this during the hackathon. I will perhaps explain in a=20 > > > > > > separate mail what is the thinking behind starting from the=20 > > > > > > port but it seems that we need to rethink this when it comes to skeletons. > > > > > > > > > > > > What I can suggest as a workaround is to generate code for=20 > > > > > > each port with separate WSDL2Java calls (which will yield multiple skeletons). > > > > > > You can make this easy if you use the ant task > > > > > > > > > > > > Ajith > > > > > > > > > > > > On 6/13/07, Bo Xie wrote: > > > > > > > Hi Amila and all, > > > > > > > > > > > > > > In case this is not working yet, can you suggest any=20 > > > > > > > alternative? I > > > > have a > > > > > > > few services that shared a lot of common data among them.=20 > > > > > > > I have to > > > > move all > > > > > > > the methods in all services into one mega service and=20 > > > > > > > change method > > > > name if > > > > > > > necessary to avoid conflicts. Mixing methods of different=20 > > > > > > > purpose into > > > > one > > > > > > > service looks messy. > > > > > > > > > > > > > > Appreciate any advice. > > > > > > > > > > > > > > -Bo > > > > > > > > > > > > > > > > > > > > > On 5/24/07, Jess Fisher < d_irej@yahoo.com> wrote: > > > > > > > > I still cannot get all the portTypes generated even with Axis 1.2. > > > > Any > > > > > > > plans on fixing this ? > > > > > > > > > > > > > > > > > > > > > > > > Bo Xie < mrboxie@gmail.com> wrote: > > > > > > > > Sorry to bother you again. Just want to know if this is=20 > > > > > > > > a bug or I > > > > did not > > > > > > > set the parameter correctly. Any advice on how to make this work. > > > > > > > > > > > > > > > > Thanks, > > > > > > > > -Bo > > > > > > > > > > > > > > > > > > > > > > > > On 5/20/07, Bo Xie < mrboxie@gmail.com> wrote: > > > > > > > > > I attached the wsdls from the original email. > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > -Bo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 5/20/07, Amila Suriarachchi <=20 > > > > > > > > > amilasuriarachchi@gmail.com > > > > > wrote: > > > > > > > > > > Can you send your wsdl? do you have ports for each bining? > > > > > > > > > > Actually code is generated per port. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 5/20/07, Bo Xie < mrboxie@gmail.com> wrote: > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > > Just wondering if this is still an issue in=20 > > > > > > > > > > > Axis2 1.2 or I > > > > did not > > > > > > > put the parameters properly. > > > > > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > -Bo > > > > > > > > > > > > > > > > > > > > > > On 5/17/07, Bo Xie < mrboxie@gmail.com> wrote: > > > > > > > > > > > > Thanks, Amila. I tried your advice using no -pn=20 > > > > > > > > > > > > and -sn. It > > > > still > > > > > > > only generated last one binding out of the 4. I used asix2 > > > > > > > 1.2 > > > > release. > > > > > > > > > > > > > > > > > > > > > > > > Here is the command line. Anything I did not do right? > > > > Attached is > > > > > > > the output files and wsdl files. Sorry for the 500k size. > > > > > > > > > > > > > > > > > > > > > > > > C:\programs\work>wsdl2java -o output -p=20 > > > > > > > > > > > > com.xyz.nbi -t -ss > > > > -sd -g > > > > > > > -S src -R src -uri wsrp_service.wsdl > > > > > > > > > > > > Using AXIS2_HOME: C:\programs\axis2- 1.2 > > > > > > > > > > > > Using JAVA_HOME: C:\programs\jdk1.5.0_09 > > > > > > > > > > > > Retrieving document at 'wsrp_v1_bindings.wsdl',=20 > > > > > > > > > > > > relative to > > > > > > > 'file:/C:/programs/work/'. > > > > > > > > > > > > Retrieving document at=20 > > > > > > > > > > > > 'wsrp_v1_interfaces.wsdl', relative > > > > to > > > > > > > 'file:/C:/programs/work/wsrp_v1_bindings.wsdl'. > > > > > > > > > > > > Retrieving schema at 'wsrp_v1_types.xsd',=20 > > > > > > > > > > > > relative to > > > > > > > 'file:/C:/programs/work/wsrp_v1_interfaces.wsdl'. > > > > > > > > > > > > Retrieving schema at '=20 > > > > > > > > > > > > http://www.w3.org/2001/xml.xsd', > > > > relative > > > > > > > to 'file:/C:/programs/work/wsrp_v1_types.xsd'. > > > > > > > > > > > > Retrieving document at 'wsrp_v1_bindings.wsdl',=20 > > > > > > > > > > > > relative to > > > > > > > 'file:/C:/programs/work/'. > > > > > > > > > > > > Retrieving document at=20 > > > > > > > > > > > > 'wsrp_v1_interfaces.wsdl', relative > > > > to > > > > > > > 'file:/C:/programs/work/wsrp_v1_bindings.wsdl'. > > > > > > > > > > > > Retrieving schema at 'wsrp_v1_types.xsd',=20 > > > > > > > > > > > > relative to > > > > > > > 'file:/C:/programs/work/wsrp_v1_interfaces.wsdl'. > > > > > > > > > > > > Retrieving schema at '=20 > > > > > > > > > > > > http://www.w3.org/2001/xml.xsd', > > > > relative > > > > > > > to 'file:/C:/programs/work/wsrp_v1_types.xsd'. > > > > > > > > > > > > May 17, 2007 11:55:31 AM > > > > > > > org.apache.axis2.wsdl.codegen.writer.ClassWriter > > > > > > > createOutFile > > > > > > > > > > > > INFO: The > > > > > > > output\src\com\xyz\nbi\InvalidHandleException.java > > > > file > > > > > > > cannot be overwritten. > > > > > > > > > > > > May 17, 2007 11:55:31 AM > > > > > > > org.apache.axis2.wsdl.codegen.writer.ClassWriter > > > > > > > createOutFile > > > > > > > > > > > > INFO: The > > > > > > > output\src\com\xyz\nbi\AccessDeniedException.java > > > > file > > > > > > > cannot be overwritten. > > > > > > > > > > > > May 17, 2007 11:55:31 AM > > > > > > > org.apache.axis2.wsdl.codegen.writer.ClassWriter > > > > > > > createOutFile > > > > > > > > > > > > INFO: The > > > > > > > > > > > output\src\com\xyz\nbi\InvalidRegistrationException.java > > > > > > > file cannot be overwritten. > > > > > > > > > > > > May 17, 2007 11:55:31 AM > > > > > > > org.apache.axis2.wsdl.codegen.writer.ClassWriter > > > > > > > createOutFile > > > > > > > > > > > > INFO: The > > > > > > > > > > > output\src\com\xyz\nbi\MissingParametersException.java file > > > > > > > cannot be overwritten. > > > > > > > > > > > > May 17, 2007 11:55:31 AM > > > > > > > org.apache.axis2.wsdl.codegen.writer.ClassWriter > > > > > > > createOutFile > > > > > > > > > > > > INFO: The > > > > > > > > > > > output\src\com\xyz\nbi\InvalidUserCategoryException.java > > > > > > > file cannot be overwritten. > > > > > > > > > > > > May 17, 2007 11:55:31 AM > > > > > > > org.apache.axis2.wsdl.codegen.writer.ClassWriter > > > > > > > createOutFile > > > > > > > > > > > > INFO: The > > > > > > > output\src\com\xyz\nbi\OperationFailedException.java > > > > file > > > > > > > cannot be overwritten. > > > > > > > > > > > > May 17, 2007 11:55:31 AM > > > > > > > org.apache.axis2.wsdl.codegen.writer.ClassWriter > > > > > > > createOutFile > > > > > > > > > > > > INFO: The > > > > > > > > > > > output\src\com\xyz\nbi\InconsistentParametersException.java > > > > > > > file cannot be overwritten. > > > > > > > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > -Bo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 5/17/07, Amila Suriarachchi < > > > > amilasuriarachchi@gmail.com> > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 5/17/07, Bo Xie wrote: > > > > > > > > > > > > > > Hi > > > > > > > > > > > > > > > > > > > > > > > > > > > > I tried on Axis2 1.2 release package. I see > > > > > > > > > > > > > > there is an > > > > -pn > > > > > > > operation. Here is the command line I used. The skeleton=20 > > > > > > > file still > > > > only > > > > > > > have the operations in the last port(see attached skeleton file). > > > > > > > > > > > > > > > > > > > > > > > > > > > > My questions are: > > > > > > > > > > > > > > 1. Is "-pn WSRPRegistrationService" used=20 > > > > > > > > > > > > > > correctly, > > > > why the > > > > > > > skeleton file does not have the operations from this portType. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > pn is for port name not for port type. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 2. Is there any options to have wsdl2java=20 > > > > > > > > > > > > > > generate all > > > > the > > > > > > > portTypes in the WSDL. > > > > > > > > > > > > > > > > > > > > > > > > > > > > C:\programs\work>wsdl2java -o output -p > > > > com.cisco.csm.nbi -t > > > > > > > -ss -sd -g -S src -R src -pn WSRPRegistrationService -uri > > > > wsrp_service.wsdl > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > if you do not use the -pn and -sn parameters=20 > > > > > > > > > > > > > it will > > > > generate > > > > > > > the code for all bindings. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Using AXIS2_HOME: C:\programs\axis2- 1.2 > > > > > > > > > > > > > > Using JAVA_HOME: > > > > C:\programs\jdk1.5.0_09 > > > > > > > > > > > > > > Retrieving document at=20 > > > > > > > > > > > > > > 'wsrp_v1_bindings.wsdl', relative > > > > to > > > > > > > 'file:/C:/programs/work/'. > > > > > > > > > > > > > > Retrieving document at=20 > > > > > > > > > > > > > > 'wsrp_v1_interfaces.wsdl', > > > > relative to > > > > > > > 'file:/C:/programs/work/wsrp_v1_bindings.wsdl'. > > > > > > > > > > > > > > Retrieving schema at 'wsrp_v1_types.xsd',=20 > > > > > > > > > > > > > > relative to > > > > > > > 'file:/C:/programs/work/wsrp_v1_interfaces.wsdl'. > > > > > > > > > > > > > > Retrieving schema at '=20 > > > > > > > > > > > > > > http://www.w3.org/2001/xml.xsd ', > > > > > > > relative to > > > > 'file:/C:/programs/work/wsrp_v1_types.xsd'. > > > > > > > > > > > > > > Retrieving document at=20 > > > > > > > > > > > > > > 'wsrp_v1_bindings.wsdl', relative > > > > to > > > > > > > 'file:/C:/programs/work/'. > > > > > > > > > > > > > > Retrieving document at=20 > > > > > > > > > > > > > > 'wsrp_v1_interfaces.wsdl', > > > > relative to > > > > > > > 'file:/C:/programs/work/wsrp_v1_bindings.wsdl'. > > > > > > > > > > > > > > Retrieving schema at 'wsrp_v1_types.xsd',=20 > > > > > > > > > > > > > > relative to > > > > > > > 'file:/C:/programs/work/wsrp_v1_interfaces.wsdl'. > > > > > > > > > > > > > > Retrieving schema at '=20 > > > > > > > > > > > > > > http://www.w3.org/2001/xml.xsd ', > > > > > > > relative to > > > > 'file:/C:/programs/work/wsrp_v1_types.xsd'. > > > > > > > > > > > > > > May 16, 2007 6:05:12 PM > > > > > > > org.apache.axis2.wsdl.codegen.writer.ClassWriter > > > > > > > createOutFile > > > > > > > > > > > > > > INFO: The > > > > > > > > > > > output\src\com\cisco\csm\nbi\InvalidHandleException.java > > > > > > > file cannot be overwritten. > > > > > > > > > > > > > > May 16, 2007 6:05:12 PM > > > > > > > org.apache.axis2.wsdl.codegen.writer.ClassWriter > > > > > > > createOutFile > > > > > > > > > > > > > > INFO: The > > > > > > > > > > > output\src\com\cisco\csm\nbi\AccessDeniedException.java > > > > > > > file cannot be overwritten. > > > > > > > > > > > > > > May 16, 2007 6:05:12 PM > > > > > > > org.apache.axis2.wsdl.codegen.writer.ClassWriter > > > > > > > createOutFile > > > > > > > > > > > > > > INFO: The > > > > > > > > > > > output\src\com\cisco\csm\nbi\InvalidRegistrationException.java > > > > > > > file cannot be overwritten. > > > > > > > > > > > > > > May 16, 2007 6:05:12 PM > > > > > > > org.apache.axis2.wsdl.codegen.writer.ClassWriter > > > > > > > createOutFile > > > > > > > > > > > > > > INFO: The > > > > > > > > > > > output\src\com\cisco\csm\nbi\MissingParametersException.java > > > > > > > file cannot be overwritten. > > > > > > > > > > > > > > May 16, 2007 6:05:12 PM > > > > > > > org.apache.axis2.wsdl.codegen.writer.ClassWriter > > > > > > > createOutFile > > > > > > > > > > > > > > INFO: The > > > > > > > > > > > output\src\com\cisco\csm\nbi\InvalidUserCategoryException.java > > > > > > > file cannot be overwritten. > > > > > > > > > > > > > > May 16, 2007 6:05:12 PM > > > > > > > org.apache.axis2.wsdl.codegen.writer.ClassWriter > > > > > > > createOutFile > > > > > > > > > > > > > > INFO: The > > > > > > > > > > > output\src\com\cisco\csm\nbi\OperationFailedException.java > > > > > > > file cannot be overwritten. > > > > > > > > > > > > > > May 16, 2007 6:05:12 PM > > > > > > > org.apache.axis2.wsdl.codegen.writer.ClassWriter > > > > > > > createOutFile > > > > > > > > > > > > > > INFO: The > > > > > > > > > > > output\src\com\cisco\csm\nbi\InconsistentParametersException.jav > > > > a > > > > > > > file cannot be overwritten. > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > -Bo > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 3/14/07, Amila Suriarachchi < > > > > amilasuriarachchi@gmail.com> > > > > > > > wrote: > > > > > > > > > > > > > > > I recently added multi services support to > > > > > > > > > > > > > > > axis2. can > > > > you > > > > > > > have a look with a nighly build? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 3/7/07, Amila Suriarachchi < > > > > amilasuriarachchi@gmail.com> > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 3/7/07, Jess Fisher < d_irej@yahoo.com> wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I'm trying to understand what's=20 > > > > > > > > > > > > > > > > > happening here, so > > > > bear > > > > > > > with me... > > > > > > > > > > > > > > > > > Using Axis 1.4, I run the WSDL2Java like this: > > > > > > > > > > > > > > > > > java org.apache.axis.wsdl.WSDL2Java -s > > > > > > > > > > > > > > > > > -o > > > > > > > C:\temp\generated_source C:\temp\wsrp_service.wsdl > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > This created all the java interfaces=20 > > > > > > > > > > > > > > > > > for the > > > > defined > > > > > > > wsdl:portType. See attached java_interfaces.zip > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > This also automatically generated all=20 > > > > > > > > > > > > > > > > > the binding > > > > > > > classes for the defined in=20 > > > > > > > wsrp_v1_bindings.wsdl (see > > > > my > > > > > > > previous post where I attached this file there) > > > > > > > > > > > > > > > > > These were all defined in wsrp_v1_bindings.wsdl: > > > > > > > > > > > > > > > > > > > > > > > name=3D"WSRP_v1_Markup_Binding_SOAP" > > > > > > > type=3D"intf:WSRP_v1_Markup_PortType"> > > > > > > > > > > > > > > > > > > > > > > > name=3D"WSRP_v1_ServiceDescription_Binding_SOAP" > > > > > > > type=3D"intf:WSRP_v1_ServiceDescription_PortType"> > > > > > > > > > > > > > > > > > > > > > > > name=3D"WSRP_v1_Registration_Binding_SOAP" > > > > > > > type=3D"intf:WSRP_v1_Registration_PortType"> > > > > > > > > > > > > > > > > > > > > > > > name=3D"WSRP_v1_PortletManagement_Binding_SOAP" > > > > > > > type=3D"intf:WSRP_v1_PortletManagement_PortType"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The way I run Axis2's wsdl2java is as follows: > > > > > > > > > > > > > > > > > wsdl2java.bat -uri=20 > > > > > > > > > > > > > > > > > C:\temp\wsrp_service.wsdl -o > > > > > > > C:\temp\generated_source -ss -d adb -g -ns2p > > > > > > > > > > > urn:oasis:names:tc:wsrp:v1:types=3Doasis.names.tc.wsrp.v1.types > > > > > > > > > > > ,urn:oasis:names:tc:wsrp:v1:intf=3Doasis.names.tc.wsrp.v1.intf > > > > ,urn:oasis:names:tc:wsrp:v1:bind > > > > > > > > > > > > > > > > > > > > > > > > > > > > = =3Doasis.names.tc.wsrp.v1.bind,urn:oasis:names:tc:wsrp:v1:wsdl=3Doas > > > > is.names.tc.wsrp.v1.wsdl > > > > > > > -ssi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > However when I used Axis2's wsdl2java=20 > > > > > > > > > > > > > > > > > I did not > > > > get the > > > > > > > java interfaces for . Why does the axis 1.x > > > > > > > generate > > > > the java > > > > > > > interfaces but axis 2 doesn't? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > well Axis2 generates the interface if=20 > > > > > > > > > > > > > > > > you have > > > > specified > > > > > > > the -ssi parameter. But the difference is it has the=20 > > > > > > > service name > > > > instead of > > > > > > > the porttype name. I am not familiar with the axis 1.x but > > > > > > > actually > > > > this > > > > > > > interface method signatures are depends on the binding. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Also, I had to run wsdl2java=20 > > > > > > > > > > > > > > > > > seperately on > > > > > > > wsrp_v1_bindings.wsdl before it would read my=20 > > > > > > > defined > > > > there > > > > > > > to create my java classes for my wsdl bindings. Note that > > > > wsrp_service.wsdl > > > > > > > already imports wsrp_v1_bindings.wsdl. It also does not=20 > > > > > > > generate the > > > > java > > > > > > > classes for all my wsdl:binding (I guess due to multiple=20 > > > > > > > defined wsdl:binding in my wsdl file). I get this message=20 > > > > > > > when I run the > > > > wsdl2java > > > > > > > on wsrp_v1_bindings.wsdl: > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.axis2.description.WSDL11ToAxisServiceBuilder > > > > > > > findBinding > > > > > > > > > > > > > > > > > INFO: A service element was not found=20 > > > > > > > > > > > > > > > > > - picking a > > > > random > > > > > > > binding! > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > In Axis2 it generates the code for only=20 > > > > > > > > > > > > > > > > one binding > > > > in one > > > > > > > service. So if there is no service it creates a random > > > > service.Actually this > > > > > > > is an axis2 limitation. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > What I did to workaround this is to=20 > > > > > > > > > > > > > > > > > manually run > > > > > > > wsdl2java on each of my wsdl:binding, so I can get the=20 > > > > > > > java classes > > > > for all > > > > > > > of my bindings. Axis 1.x wsdl2java automatically generated > > > > > > > java > > > > classes for > > > > > > > all my wsdl:binding defined in wsrp_v1_bindings.wsdl. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Any thoughts? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks again! > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Amila Suriarachchi <=20 > > > > > > > > > > > > > > > > > amilasuriarachchi@gmail.com> > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 3/7/07, Jess Fisher wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From the attached wsdl > > > > > > > file:wsrp_v1_interfaces.wsdl, the following are defined: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > name=3D"WSRP_v1_Markup_PortType">=20 > > > > > > > > > > > > > > > > > > > > > > > > name=3D"WSRP_v1_ServiceDescription_PortType"> > > > > > > > > > > > > > > > > > > > > > > > > name=3D"WSRP_v1_Registration_PortType"> > > > > > > > > > > > > > > > > > > > > > > > > name=3D"WSRP_v1_PortletManagement_PortType"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > But, when running Axis2's WSDL2Java, > > > > > > > > > > > > > > > > > > the > > > > corresponding > > > > > > > java classes (for the wsdl:portType) are not created. > > > > > > > > > > > > > > > > > > Using Axis 1.4's WSDL2Java, the=20 > > > > > > > > > > > > > > > > > > corresposing > > > > java > > > > > > > classes were generated. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > using axis2 you can not generate the=20 > > > > > > > > > > > > > > > > > code for > > > > portTypes. > > > > > > > The reason for this is the skelton and and stub=20 > > > > > > > interfaces depends on > > > > the > > > > > > > binding. Why you need to generate the code for a port type? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I run the WSDL2Java against=20 > > > > > > > > > > > > > > > > > > wsrp_service.wsdl > > > > first > > > > > > > which imports wsrp_v1_bindings.wsdl which then imports=20 > > > > > > > wsrp_v1_interfaces.wsdl. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Is this a bug? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > no I believe. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > If yes, does anybody know of the bug > > > > > > > > > > > > > > > > > > ID ? I > > > > cannot > > > > > > > find it in JIRA. > > > > > > > > > > > > > > > > > > Or is there a WSDL2Java option I=20 > > > > > > > > > > > > > > > > > > need to set to > > > > > > > generate java classes for the portType, specifically? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > if you do not have specified any parts > > > > > > > > > > > > > > > > > or > > > > namespace ( in > > > > > > > rpc) in soap:body (in your binding) and generate the code > > > > > > > with > > > > parameters > > > > > > > -ss -sd -ssi and with any binding (-d adb, -d jibx, -d=20 > > > > > > > xmlbeans, -d > > > > jaxbri) > > > > > > > I think you can get what you need. It simply generates the > > > > > > > skelton, > > > > skelton > > > > > > > interface and the service.xml. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > (I've used -ss, -g, -d adb, -ssi) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ________________________________ > > > > > > > Need Mail bonding? > > > > > > > > > > > > > > > > > > Go to the Yahoo! Mail Q&A for great=20 > > > > > > > > > > > > > > > > > > tips from > > > > Yahoo! > > > > > > > Answers users. --0-1424838073-1173226094=3D:65510-- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------- > > > > ----- > > > > > > > > > > > > > > > > > > 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. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ________________________________ > > > > > > > It's here! Your new message! > > > > > > > > > > > > > > > > > Get new email alerts with the free Yahoo! Toolbar. > > > > > > > --0-1402565997-1173253433=3D:40062-- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------- > > > > ----- > > > > > > > > > > > > > > > > > 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. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > > > > Amila Suriarachchi, > > > > > > > > > > > > > > > WSO2 Inc. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------- > > > > ----- > > > > > > > > > > > > > > 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. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > Amila Suriarachchi, > > > > > > > > > > WSO2 Inc. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ________________________________ > > > > > > > Be a better Globetrotter. Get better travel answers from=20 > > > > > > > someone who > > > > knows. > > > > > > > > Yahoo! Answers - Check it out. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > Ajith Ranabahu > > > > > > > > > > > > > > > > ---------------------------------------------------------------- > > > > ----- > > > > > > To unsubscribe, e-mail: > > > > axis-user-unsubscribe@ws.apache.org > > > > > > For additional commands, e-mail:=20 > > > > > > axis-user-help@ws.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------ > > > --- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > > > For additional commands, e-mail: axis-user-help@ws.apache.org > > > > > > > > > > > > -- > > Ajith Ranabahu > > > > -------------------------------------------------------------------- > > - To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > > For additional commands, e-mail: axis-user-help@ws.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > -- Ajith Ranabahu --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org