Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 109829 - wizard for creating webservice client from existing EJB3 component
wizard for creating webservice client from existing EJB3 component
Status: NEW
Product: webservices
Classification: Unclassified
Component: JAX-WS
5.x
All All
: P2 with 1 vote (vote)
: TBD
Assigned To: Roderico Cruz
issues@webservices
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-07-16 16:07 UTC by florent_garin
Modified: 2008-04-14 17:14 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

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 
side.

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
@jungi:

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
project. 
Comment 4 Lukas Jungmann 2008-04-14 17:14:48 UTC
moving opened issues where TM != dev to TM=TBD


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo