aspose file tools*
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
Author

Generate WSDL at runtime

Slavko Perevalov
Greenhorn

Joined: Dec 29, 2008
Posts: 5
Hello!

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
Marshal

Joined: Mar 22, 2005
Posts: 42291
    
  64
Maybe WSDL4J can help: http://sourceforge.net/projects/wsdl4j/ It is what Axis (and possibly other SOAP stacks) uses.


Ping & DNS - my free Android networking tools app
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
 
 
subject: Generate WSDL at runtime