I have to write documentation for an existing WSDL file and would prefer to do so inside the document. The problem is, that I cannot find anything about whether wsdl:documentation allows the usage of xml:lang as an attribute or if any documentation generator would use it.
So far I have not found anything on the web and I simply cannot believe that I’m the only one who would like to do a dual language documentation. Any hints?
From the WSDL 1.1 specification:
From the WSDL 2.0 specification (emphasis mine):
It seems that this was somehow forgotten in V1 and fixed in V2. Basically, you are on your own.
But even if the specification would mandate the use of xml:lang for documentation, you can never know what your clients will use to process the WSDL you provide them and never know if they can properly extract the documentation out of it.
I hope you don’t mind me saying this, but I think you are approaching this the wrong way. Documentation for a web service doesn’t resume itself to the WSDL. Yes, providing a WSDL is mandatory for your clients to be able to easily generate the plumbing code needed to call you web service, but it only details the technicalities of the calls. It says nothing about how your web service should be used.
YMMV but beyond the WSDL you might want to:
Adding all those details in the WSDL would be restrictive. So how about making your documentation composed of the WSDL and a nicely formatted (language specific) PDF file with details like the ones I mentioned above?