• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How can i add multiple line comments in WSDL file ?

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 !
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ulf Dittmer,

I tried that trick and it doesn't work with "\n".
 
K. Tsang
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Do you pee on your compost? Does this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic