Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How can i add multiple line comments in WSDL file ?  RSS feed

 
yakoub damak
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a WSDL file and i want to add comments to make it clearer. Apache CXF offers the following annotations to insert comments in one line: @WSDLDocumentation and @WSDLDocumentationCollection.

My question is there is a way to add multiple line comments in WSDL file ??

Please Help !
 
K. Tsang
Bartender
Posts: 3628
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

I don't know this is correct or if this is what you are asking ...



The <documentation> tag is one way, the <!-- --> is another way. Now I don't know which one you are asking for.
 
Anindya Roy
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe a Java newline character ( \n ) in the string will do the trick?
 
yakoub damak
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you K. Tsang !

My purpose is just to make the wsdl file clearer, so i didn't find a way to insert comments in WSDL generated file, so i'm asking about adding multi line documentation.
It's more efficient to insert comments, so if you know how to insert them (without editing manually the wsdl file) using java code or another tool, i will be very grateful to you :-)

 
yakoub damak
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf Dittmer,

I tried that trick and it doesn't work with "\n".
 
K. Tsang
Bartender
Posts: 3628
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yakoub damak wrote:Thank you K. Tsang !

My purpose is just to make the wsdl file clearer, so i didn't find a way to insert comments in WSDL generated file, so i'm asking about adding multi line documentation.
It's more efficient to insert comments, so if you know how to insert them (without editing manually the wsdl file) using java code or another tool, i will be very grateful to you :-)



According to the options for the wsgen command, there isn't any for including comments or the like. So adding them manually may be a way to go.
 
yakoub damak
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am asked to generate comments or documentation automatically, so editing the file manually will be not accepted.

can i get many documentation lines ??
 
K. Tsang
Bartender
Posts: 3628
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe have a look at enunciate as suggested in thread http://cxf.547215.n5.nabble.com/Generating-java-doc-from-wsdl-documentation-td568249.html

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!