File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Adding comments in WSDL file

Jyotika Kapoor
Greenhorn

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
--Jyotika
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Not at all a dumb question!
Check the following links:
http://www.w3.org/TR/wsdl#_documentation
http://www.ws-i.org/Profiles/BasicProfile-1.1.html#WSDL_documentation_Element

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!
 
Don't get me started about those stupid light bulbs.
 
subject: Adding comments in WSDL file
 
Similar Threads
How to remove the comment in wsdl
WSDL2Java Question
create skeleton with WSDL
AXIS Generated WSDL file looks wrong.
how to call web services.