It's not a secret anymore!
The moose likes Web Services and the fly likes Adding comments in WSDL file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Adding comments in WSDL file " Watch "Adding comments in WSDL file " New topic

Adding comments in WSDL file

Jyotika Kapoor

Joined: Apr 25, 2009
Posts: 19

Hi all,

sorry asking a dumb question like this , i tried but couldnt figure out how to do it . I have a wsdl file through which i have generated the server stub using axis was able to deploy the webservice on tomcat and consume it .

I was just wondering if i can add some comments in my wsdl file , for example once my webservice is deployed if i type on the address bar some thing like
this http://localhost:8080/axis/ProductMgmt?wsdl it shows me the WSDL generated and on top of the wsdl it shows message like

WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)

Is there a way i can put some custom messages which gets displayed when some when access the url for example

<! -- This is Product Management webservice -->

Besides is there a way i can stop the message

WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)

from getting displayed.

Hope i make sense.

Thanks in advance
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
Not at all a dumb question!
Check the following links:

The first link will tell you that the WSDL definition has an element in which you can enter documentation. The second link will tell you where you are allowed to put such an element in a WS-I Basic Profile 1.1 conformant web service.
Best wishes!
I agree. Here's the link:
subject: Adding comments in WSDL file
jQuery in Action, 3rd edition