Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Wsgen usage with javaSE

 
Nico Rossi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I'm studying how to build and publish Jax-WS web services using only javaSE 6 or later. The book I'm reading says that, for document-style ws, you need to call the wsgen utility before publishing the ws in order to create the java classes that act as wrappers for the data in the request and response messages. However, I tried to publish the ws without calling wsgen and everything seems to work fine: Endpoint.publish publishes the ws instance and the request and response messages are wrapped as expected (I'm using SoapUI to test the WS).

The version of my jdk is 1.7 and the jax-ws version is 2.2.4. The book speaks about jax-ws 2.1. Is it possible that jax-ws 2.2 automatically calls wsgen or cretaes the wrappers on the fly?

Thanks a lot for your help.

Nico
 
Inesh Hettiarachchi
Greenhorn
Posts: 25
 
Nico Rossi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I found this note on the book when speaking about how to generate the wsdl with wsgen:

"In the current Metro release, the Endpoint publisher automatically generates the wsgen artifacts if the programmer does not..... In time this convenient feature of the Metro release will make its way into core Java so that the wsgen step in document-style services can be avoided."

I think this is what happens with current versions of Jax-WS.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic