aspose file tools
The moose likes Web Services and the fly likes From where the WSDL come from? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "From where the WSDL come from?" Watch "From where the WSDL come from?" New topic
Author

From where the WSDL come from?

Sajith Hasanka
Greenhorn

Joined: Aug 20, 2009
Posts: 17
Hi,

I created a sample web service, as in Axis2 quickstart guide, http://ws.apache.org/axis2/1_5_1/quickstartguide.html
Its a very simple service, i deployed in Tomcat, and when i requested its WSDL, its shown in the web browser. What i need to know is, even though i didnt explicitly generate the WSDL file, how it showed up in the browser when a request is made? Is the WSDL generate automatically in a client's request?

If it will be auto generated, where it would be located in the server (path) thereafter ?

thanks in advance

- SCJP 6.0
Ivan Krizsan
Bartender

Joined: Oct 04, 2006
Posts: 2194
Hi!
Usually, the WSDL for a web service developed using the code-first approach is generated when the web service is developed.
It may also be generated lazily, that is, when requested.
You can check for yourself if the WSDL is present in the appropriate subdirectory of the "webapps" directory in your Tomcat installation.
Best wishes!
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1129
Good Day,

Avoiding Mistakes Made Using Axis2 explains it -

When Axis2 finds a service what it does is first it check whether there are any WSDL files in META-INF directory. If there is give the priority to the WSDL files and using those Axis2 web service will be created. If no WSDL files are found then it goes through services.xml file to find the service implementation class. Using that class, it generates a WSDL file using a process called Java2WSDL. This will only taken place if the service class was implemented using Java. Bottom line, when some one ask for ?wsdl for that particular service it will show the generated WSDL.


Regards,
Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: From where the WSDL come from?
 
Similar Threads
How to get type="xs:dateTime" instead of type="xs:date"
Axis2 wizard problems in eclipse
Websphere WSDL2java - how to connect to webservice
Webservice client code generation using axis2 and eclipse galilio
Axis2 web service from WSDL - What is a good Eclipse project type for this