File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to create Stubs programmatically?" Watch "How to create Stubs programmatically?" New topic

How to create Stubs programmatically?

satishkumar janakiraman
Ranch Hand

Joined: May 03, 2004
Posts: 334

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?

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
I agree. Here's the link:
subject: How to create Stubs programmatically?
It's not a secret anymore!