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 Generate WSDL at runtime Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Generate WSDL at runtime" Watch "Generate WSDL at runtime" New topic

Generate WSDL at runtime

Slavko Perevalov

Joined: Dec 29, 2008
Posts: 5

Could you help with following task: is there any way to generate WSDL from class known at runtime and choose which methods of this class should be exposed to clients.
For example service implementation class contains: method1, method2 and method3 but I want that only method1 will be present in *.wsdl file.

May be question sounds not too clear so something like

is needed.

Thank you!.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Maybe WSDL4J can help: It is what Axis (and possibly other SOAP stacks) uses.
Vinod K Singh
Ranch Hand

Joined: Sep 30, 2008
Posts: 198
JAX-WS has an annotation @WebMethod, which can be used to prevent methods from being published in WSDL. Though looks like you are not using JAX-WS.

My Blog
I agree. Here's the link:
subject: Generate WSDL at runtime
It's not a secret anymore!