Mike
Mike

Reputation: 919

Provide wsdl url and get all the requests in that wsdl url

Is there a way in Java, If I provide the wsdl url, I can get all the requests that is available in that service?

Here is a sample service. http://www.webservicemart.com/uszip.asmx?WSDL. Please help.

It looks like there is a way to do this - Please see. Not able to find maven dependency or jar for it.

Thanks, Mike

Upvotes: 0

Views: 1047

Answers (1)

Chris Hinshaw
Chris Hinshaw

Reputation: 7285

You can use wsdlimport and it will build you a soap client. This would be the way I would do it. The @WebClient class that is generated will list all the possible operations you can call.

See this link http://docs.oracle.com/javase/6/docs/technotes/tools/share/wsimport.html

Otherwise you would have to parse the wsdl file looking for bindings along with their name.

Upvotes: 1

Related Questions