Thanks for the quick response. The problem is that I don't have control over the WSDL file since it belongs to a partner company.
I will try to generate individual small files and delete unwanted ones. Thanks, Affan -----Original Message----- From: Jacques46 [mailto:[EMAIL PROTECTED] Sent: Monday, April 14, 2008 1:32 PM To: axis-user@ws.apache.org Subject: Re: [Axis2] WSDL2Java generate code for only one method in the service This is only a guess, but I'm pretty sure that you could delete all the methods you don't want from the WSDL file itself, and then use WSDL2Java on the resulting file... Of course, I'm again guessing that you couldn't remove methods or types that are referred by other parts of the WSDL file... My understanding is that the WSDL file is simply a descriptor of the methods (and objects used by those methods) of an application. Remove method descriptors from the file, and WSDL2Java should generate an application without those methods. But I'm new to this whole WSDL thing, so don't take my answer too seriously... Oh, also note that there are 2 ways to generate the result : very few BIG files, of a lot of small files... I think the param to use is '-u' to get the smaller files... AQureshi wrote: > > Hi All, > > I have a WSDL file with around 15 different methods but I want to use only > one of those in my application. I tried the WSDL2Java tool which worked > great except that the generated code is thousands of lines. Is there a way > I can limit the tool to generate only a subset or do I just have to open > the generated file and delete the unwanted code? It is fairly easy to do > that but it is just not automate-able. > > Thanks a lot. > > Affan > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Just-a-small-client-sample-would-really-be-great-%21-tp16532618p16685278.html Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]