wood burning stoves 2.0*
The moose likes Web Services and the fly likes How to create Stubs programmatically? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to create Stubs programmatically?" Watch "How to create Stubs programmatically?" New topic
Author

How to create Stubs programmatically?

satishkumar janakiraman
Ranch Hand

Joined: May 03, 2004
Posts: 334
Hi,

I have been developing a WebService client using Java since last week. I have a WSDL file and am able to invoke the service from the server by creating appropriate Stubs using IDE Wizard. I would like to create Stubs dynamically based on passed WSDL file using WSDL2Java or any other open source tool. I am not using any build tool such as ant etc. Can any one give me a good example on how to create stubs using java?

thanks
sat
Vinod K Singh
Ranch Hand

Joined: Sep 30, 2008
Posts: 198
Not sure what you mean by programmatically/dynamically. If you don't wan't to create stubs at all then you can use Spring for consuming web service.


My Blog
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to create Stubs programmatically?