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 109829 - wizard for creating webservice client from existing EJB3 component
Summary: wizard for creating webservice client from existing EJB3 component
Status: NEW
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker with 1 vote (vote)
Assignee: Roderico Cruz
Depends on:
Reported: 2007-07-16 16:07 UTC by florent_garin
Modified: 2008-04-14 17:14 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description florent_garin 2007-07-16 16:07:57 UTC
when creating a webservice client with the wizard from an EJB3 SEI that is defined in another opened project, the 
wizard call the wsimport tool to create all the artifacts needed.
The problem is that, because we created the wsdl from the SEI (EJB interface) and that interface references POJO 
objects that belong to a third project, we want to use these objects also on the client side.
Thus, we don't want to use the classes generated by wsimport but the ones created by wsgen on both server and client 

I think, for the case we create the web service client from an EJB, the wizard should ask if we don't prefer to use the 
wsgen artifacts rather than directly calling wsimport.
Comment 1 Lukas Jungmann 2007-07-16 16:27:26 UTC
The contract between web service provider and its consumer is defined by WSDL file, not by anything else and it is also
not guaranteed that classes generated from java (by wsgen) will be the same as classes generated from WSDL (by wsimport)...
Comment 2 florent_garin 2007-07-16 22:16:14 UTC

I would rather say: it's almost guaranteed that classes generated from java (by wsgen) will be different than classes
generated from WSDL !
The problem is : J2EE 1.5 promise us POJO paradigm and more and more I dive into J2EE 1.5 and more and more I see that's
not true !

I have POJO domain model objects (if I can still call POJO objects classes full of JPA and xml binding
annotations...that's another story) wrapped into a jar file which is common to java swing client, ejb part and war part.
I just want to exchange these objects through webservice like I did when my session ejbs were using IIOP.

The solution I submitted work correctly, I'm just surprised to see neither netbeans nor any Sun tutorial talk about that.
And according to the number of people search the web for such solution I think that could be an improvement to have
netbeans propose this.
Comment 3 Lukas Jungmann 2007-07-17 14:52:13 UTC
I agree that this could be a good improvement (=> enhancement).

What you can try now is to create some java library project, create a ws client there, go to project properties ->
sources -> includes/excludes, set there what you don't want to be packaged in the final jar of this library and on
places from where you want to call the ws use the client from the library instead of creating the client in the ie. web
Comment 4 Lukas Jungmann 2008-04-14 17:14:48 UTC
moving opened issues where TM != dev to TM=TBD