jQuery in Action, 3rd edition
The moose likes Web Services and the fly likes How to find the WSDL URL location ? 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 find the WSDL URL location ?" Watch "How to find the WSDL URL location ?" New topic

How to find the WSDL URL location ?

love saiju

Joined: Mar 29, 2010
Posts: 1
I have developed Java Web Service using Top-Down approach.
Steps :
1) created required wsdl/xsd files
2) generated the java stubs using the wsimport command from the command prompt.
3) Implemented all the operations listed in the WSDL file.
4) successfully tested the module running as the stand alone java program.

1) to consume the web service from other application like BPEL, OSB, etc. I need the wsdl url location.
2) how can i get this WSDL URL location, which is temporarily deployed in the tomcat server for testing purpose.
3) I have tried with the url specified at the soap:address from service element in the WSDL file.

please suggest solution ??
Tim Moores

Joined: Sep 21, 2011
Posts: 2413
That depends on the SOAP implementation you're using. For example, Axis2 sends the WSDL if you append a "?wsdl" to the service URL. So for the standard Axis2 Version service -for which the service URL is something like http://localhost:8080/axis2/services/Version- the WSDL URL would be http://localhost:8080/axis2/services/Version?wsdl

Check the documentation of the SOAP implementation you're using.
P Ram

Joined: Aug 07, 2012
Posts: 1
Hi there,

I need to frame a URL with parameters to consume the webservice from another mobile application. But I am not able to fetch the URL part from the WSDL file. Help me if anyone could.
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859

Look for references to endpoint!!

BE WARNED! This may be local, where ever the Java was generated from.

Why not put the endpoint in a property or something else.

It's a catch 22! You are looking to get the wsdl to get the endpoint by which the wsdl (?wsdl) is served by the endpoint.

I can generate clients from manchine/host A,
yet host the webservice(s) on host B, C etc.

I agree. Here's the link: http://aspose.com/file-tools
subject: How to find the WSDL URL location ?
jQuery in Action, 3rd edition