aspose file tools*
The moose likes Web Services and the fly likes How to read operation parameters and return type from WSDL ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to read operation parameters and return type from WSDL ?" Watch "How to read operation parameters and return type from WSDL ?" New topic
Author

How to read operation parameters and return type from WSDL ?

Alex Parvan
Ranch Hand

Joined: Dec 10, 2009
Posts: 115
Hi, i want to read the parameter and return type of WSDL operations (signature) without knowing the WSDL location at develop time.

Axis has wsdl2java but i want to get the parameters inside a java application. And wsdl4j is ok until the point where i read the parameters, i get null there, even tho i tried examples found on the web.

What else can i use ?
Thanks.


"Quoting yourself is stupid" - Me
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Since WSDL is XML, you can use anything that reads XML, like SAX, StAX, DOM etc. etc.
Best wishes!
Andre Brito
Ranch Hand

Joined: Dec 13, 2007
Posts: 95

As you said, Axis2 can do that... You can run that bat file (with wdsl2java) using Runtime.getRuntime().exec("..."), can't you?

By the way, you don't need to run that bat file using Runtime.getRuntim().exec(). You can run theWSDL2Java (in org.apache.axis2.wsdl) directly from a java application, using a few jars (maybe only the wsdl2j) from the lib folder.
Alex Parvan
Ranch Hand

Joined: Dec 10, 2009
Posts: 115
Alright, thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to read operation parameters and return type from WSDL ?