55

What are your approaches to generating some sort of human-readable documentation from WSDLs? In the past I've used WSDL viewer (by Tomi Vanek) and I'm happy with the results, but I'm interested in any possible alternatives.

I've also heard of x3sp, but I haven't tried it.

Ishmaeel
  • 14,138
  • 9
  • 71
  • 83
Igor Brejc
  • 18,714
  • 13
  • 76
  • 95

10 Answers10

23

I tried several alternatives

and ended up tweaking WSDL viewer to my needs.

fglez
  • 8,422
  • 4
  • 47
  • 78
11

It's not listed here, but SoapUI has a useful wsdl documentation generator.

Right-click on your project and select "Generate Documentation."

John Slegers
  • 45,213
  • 22
  • 199
  • 169
Halfstop
  • 1,710
  • 17
  • 34
  • 1
    Seems to use the earlier mentioned wsdl-viewer.xsl (which moved to Apache Woden), the output looks the same. – Clauds Jan 20 '17 at 14:18
  • Worked great. Already had a project created in SOAPUI, and it created a nice html page for me. – MattC Jan 25 '17 at 15:28
11

Yes, there is a new one: wsdl2html. It focuses on request/response and removes info that people don't care.

Jian Chen
  • 586
  • 7
  • 20
  • I tried using this but I didn't get a full list of services. Only one of my 27 services was displayed – Lai Dec 10 '13 at 11:21
  • I like wsdl2html's simplicity, which makes it very convenient to communicate the essential information about a service without confusing the audience. In my opinion, the only important feature that's missing is getting description/comments for operations and elements. – Juanal Jan 09 '15 at 02:11
  • 2
    hi, I've updated the link. Now it is hosted on github. – Jian Chen Dec 21 '15 at 09:27
8

Use http://code.google.com/p/wsdl-viewer/ and cygwin's xsltproc

xsltproc wsdl-viewer.xsl downloaded-wsdl.xml > documetnation.html

Works like a charm

Tomáš Fejfar
  • 11,129
  • 8
  • 54
  • 82
5

Now, there is one more tool for this, called "DocFlex/XML WSDLDoc".

It is a new WSDL/XSD documentation generator that will allow you to document any number of both WSDL and XML schema (XSD) files plus any interconnections between them.

There is also an option for automatic inclusion of XSD diagrams generated by either Altova XMLSpy or Oxygen XML. Effectively, any of them can be used as dynamically linked diagramming engine.

KEY FEATURES

  • Generation of single framed (Javadoc-like) HTML documentation by any number of WSDL/XSD files together. (If you have too many input files, you can pick them all using an Ant-like pathname pattern).
  • Processing of any number of XML schemas (along with WSDL) including:
    • In the form of separate XSD files
    • XML schemas embedded in WSDL (within <wsdl:definitons>/<wsdl:types> element)
  • Processing of any referenced WSDL files and XML schemas, in particular:
    • Correct processing of all <wsdl:import>, <xs:import>, <xs:include>, <xs:redefine> elements found across all involved WSDL/XSD files.
    • Automatic loading and processing (i.e. inclusion in the documentation scope) all directly/indirectly referenced WSDL/XSD files.
  • Sophisticated documenting of XSD components (XML schema documentation):
    • Support of any XML schema design patterns.
    • Possibility of automatic inclusion of XSD diagrams generated by either XMLSpy or Oxygen XML, with the support of all diagram hyperlinks.
  • Documenting of all interconnections between WSDL definitions and XSD components:
    • Hyperlinks from WSDL messages to the details of XSD elements/types describing the message data.
    • In XSD element/type details, the list of all WSDL definitions where they are used.
    • Copy the annotations of XSD elements/types to the documentation of those WSDL messages (and even operations) where they are used.
  • Possibility of unlimited customization. WSDLDoc is actually a template set for DocFlex/XML, a software system for development and execution of high performance documentation and report generators from any data stored in XML files.

EXAMPLE

Here is a demo of such documentation (it was generated by a single source file: http://developer.ebay.com/webservices/latest/ebaySvc.wsdl):

eBay Trading API - WSDL documentation

The HTML itself: http://www.filigris.com/docflex-xml/wsdldoc/examples/html/ebaySvc/index.html

LINKS

http://www.filigris.com/docflex-xml/wsdldoc/

Leonid Rudy
  • 255
  • 4
  • 5
  • I have used the XML doc product for quite some time and I was absolutely pleased by the quality of the product.... too bad that my company didn't have the budget to buy some licenses, but I was glad to buy one for myself... – Pierluigi Vernetto Jul 10 '14 at 12:09
  • It seems commercial product, requires license for full functionality – Venkatesh Muniyandi Jan 18 '17 at 05:17
4

I just discovered that Notepad++ with the Xml Tools plugin installed can also do xsl transformations. If you provide it the wsdl-viewer.xsl mentioned earlier and the wsdl file, you'll get a nicely formatted html as a result.

Patrick Koorevaar
  • 1,219
  • 15
  • 24
  • If you use Eclipse with EE features, it allows you to process an XSLT file by simply right-clicking on it, and selecting Run. – Juanal Jan 09 '15 at 02:12
3

Altova's XMLSpy does generates HTML documentation from a WSDL ... but it isn't free ;)

Alexandre Victoor
  • 3,104
  • 2
  • 27
  • 27
1

I know this a poor man's documentation method, but I've used opening the wsdl's XSD in visual studio and doing snag-it prints of that with comments and arrows added for clarity and our customer seems to have liked it without having to use another tool. You also may not have this but could use a version from a free VPC or MSDN subscription I've also used the BizTalk schema editor to view the XSD as well and document it from there using snag-it or another screen capture app. I'd try and use what you have!

-Bryan

Bryan Corazza
  • 829
  • 1
  • 7
  • 16
0

You can use "wsimport" which is part of the JDK and run Javadoc on the generated files. Presuming you have put in the annotations it will put them as part of the documentation.

Another tool would be Rational Application Developer which allows you to right click and generate the HTML documentation with pretty hyperlinked pictures.

Archimedes Trajano
  • 35,625
  • 19
  • 175
  • 265
0

You can use iDocIt! to document a WSDL and export then the documentation to HTML. It is an open source Eclipse plugin downloadable here.

It provides a new approach of creating documentations with thematic grids and thematic roles, but you need not to use them. You can create documentations still as plain text.

Dominik Honnef
  • 17,937
  • 7
  • 41
  • 43
Dirk
  • 1
  • 3