This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX-WS java proxy classes" Watch "JAX-WS java proxy classes" New topic
Author

JAX-WS java proxy classes

Maheshwari Kirthi
Greenhorn

Joined: Jan 24, 2011
Posts: 18
Hi,
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,
Mahesh.
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
    
    1
Hi!
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: http://www.slideshare.net/krizsan
Maheshwari Kirthi
Greenhorn

Joined: Jan 24, 2011
Posts: 18
Hi,
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

Regards,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAX-WS java proxy classes
 
Similar Threads
Generating a service by JAX-WS with Java6
Any feedback for SCDJWS Beta?
can't generate java from wsdl file please help!
Total newby question
Failed IBM 288