• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to read operation parameters and return type from WSDL ?

 
Alex Parvan
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Since WSDL is XML, you can use anything that reads XML, like SAX, StAX, DOM etc. etc.
Best wishes!
 
Andre Brito
Ranch Hand
Posts: 95
Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alright, thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic