This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Steps to reproduce: 1) Create an EJB module project 2) Create WS with same operation(method) name but with single parameter 3) The Create another WS with same operation name but with two parameters 4) Now deploy the web service project 5) Create a new Java Application project and in the main class call the first WS that you created with a single parameter 6) Then call the second WS that you created with a two parameters 7) Now build the project and you will get some errors 8) Now goto files explorer tab and open java application projects build directory> generated>client>... package path .. > and you will find the generated classes BUT it only contains one class with the WS method where their should be two classes Their is no workaround for this. I am attaching my project for you to have a look. Also i have attached a screen shot displaying step 8 Dev Build 200809181401 JDK 6 Update 10
Created attachment 70169 [details] screen shot
Created attachment 70170 [details] webservices are created in this project
Created attachment 70171 [details] java application project which called the webservices
The overloaded operations was not the problem. The problem was in the build script where an ant property named "wsdl" was being applied to two wsimport invocations. Once an ant property is set, it is frozen to that value and any subsequent resetting of the property fails. Because of this, the second wsimport invocation was using the wsdl from the first invocation. Fixed by making the property name unique per invocation. Changed the Summary text to reflect true cause of the problem. Here is the diff: http://hg.netbeans.org/main?cmd=changeset;node=65741b870098
Integrated into 'main-golden', will be available in build *200809200201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/65741b870098 User: rcruz@netbeans.org Log: #147760 WSClient with two operations from different Services does not compile
One another fix: http://hg.netbeans.org/main?cmd=changeset;node=9c9c5a174886 (see the issue 143809)
v.