arskom / spyne

A transport agnostic sync/async RPC library that focuses on exposing services with a well-defined API using popular protocols.
http://spyne.io
Other
1.13k stars 313 forks source link

Suggest to use wsdl-viewer for generated wsdl #616

Closed vbashkirtsev closed 4 years ago

vbashkirtsev commented 5 years ago

I would highly recommend to add wsdl-viewer.xsl from https://github.com/tomi-vanek/wsdl-viewer to spyne. All is needed is to add header:

<?xml-stylesheet type="text/xsl" href="wsdl-viewer.xsl"?>

to generated WSDL and supply wsdl-viewer.xsl along with WSDL say on url ending with ?wsdl-viewer.xsl . This way when WSDL is opened manually in a good browser it will be much more pleasing for a human to read. SOAP clients of course are not concerned with XSLT stylesheets and just continue to work as usual.

plq commented 5 years ago

Good idea, I will have a look at it. Thanks!