Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 41087
    
  43
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Generate WSDL at runtime
 
Similar Threads
About Overridden II (a Mock Question question...)
Static method overriding
static
Dynamic polymorphism and Overriding
clarification on why the modifier private changes output..