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.

Bug 147760 - [65cat] WSClient with two operations from different Services does not compile
Summary: [65cat] WSClient with two operations from different Services does not compile
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker with 1 vote (vote)
Assignee: Roderico Cruz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-19 20:09 UTC by rajivderas
Modified: 2010-03-31 08:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screen shot (40.68 KB, image/png)
2008-09-19 20:11 UTC, rajivderas
Details
webservices are created in this project (36.77 KB, application/x-compressed)
2008-09-19 20:12 UTC, rajivderas
Details
java application project which called the webservices (25.72 KB, application/x-compressed)
2008-09-19 20:13 UTC, rajivderas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rajivderas 2008-09-19 20:09:52 UTC
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
Comment 1 rajivderas 2008-09-19 20:11:35 UTC
Created attachment 70169 [details]
screen shot
Comment 2 rajivderas 2008-09-19 20:12:39 UTC
Created attachment 70170 [details]
webservices are created in this project
Comment 3 rajivderas 2008-09-19 20:13:37 UTC
Created attachment 70171 [details]
java application project which called the webservices
Comment 4 Roderico Cruz 2008-09-20 00:27:08 UTC
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
Comment 5 Quality Engineering 2008-09-20 05:32:52 UTC
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
Comment 6 Milan Kuchtiak 2008-10-07 11:16:36 UTC
One another fix:
http://hg.netbeans.org/main?cmd=changeset;node=9c9c5a174886

(see the issue 143809)
Comment 7 Jaroslav Pospisil 2010-03-31 08:58:11 UTC
v.