It's not a secret anymore!
The moose likes Web Services and the fly likes JAX-WS java proxy classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX-WS java proxy classes" Watch "JAX-WS java proxy classes" New topic

JAX-WS java proxy classes

Maheshwari Kirthi

Joined: Jan 24, 2011
Posts: 18
I use JAX-WS web services in my project - WSDL to JAVA approach.
I generate Java Client Proxy classes from the WSDL using the IRAD(7.5) web services client.

Each time I get a new WSDL file I generate the proxy classes by specifying a different package for each(use the bind.xml to specify the package name) and for each there are the Request, Response, ObjectFactory and Programming interface classes.

My question is there any other simpler way of generating these client classes?
Can I select the same existing client classes with update option instead of overwriting?

Thanks in advance,
Lingan Rajan
Ranch Hand

Joined: Jan 26, 2011
Posts: 30
I cant understand what you mean by "I generate the proxy classes by specifying a different package" .

Apart from this JAX-WS dynamic client model generates these classes on the fly and eliminates the need to generate classes from wsdl on the client side. This ofcourse is slower and not sure how difficult it is on the developer side to code for this.

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
It is possible to invoke wsimport from both Ant and Maven, both of which can be automated.
In Eclipse, you can configure a Builder for a project which can run a selected Ant task during a build of the project - this way it becomes integrated with the development environment.
There are probably similar features in other IDEs, but I am not familiar with the details.

As far as I know, there is no option to update existing classes. They are always overwritten.
Best wishes!

My free books and tutorials:
Maheshwari Kirthi

Joined: Jan 24, 2011
Posts: 18
Lingam and Ivan, thanks for the reply, it helped.
Lingam while generating the Java Client Proxy classes I add the bind.xml which has the directory(package name) where the client classes needs to be created, I have a bind.xml for each of the WSDL , that's what I meant specifying a different package name.

Thanks again

I agree. Here's the link:
subject: JAX-WS java proxy classes
It's not a secret anymore!