Where to place version information in a wsdl?

∥☆過路亽.° 提交于 2019-12-22 08:36:02

问题


I have a web service where the definitions are located in the wsdl-file and the schema in an external xsd-file.

In the xsd file, there is the schema tag, which provides an attribute 'version' that I can use to document the current version. Is there something similar in the wsdl format (WSDL 1.1)? If not, what is the best place to store a general version attribute for documentation purposes?

Please keep in mind that I do not want to achieve backward compatibility, like it is described in http://blogs.iona.com/sos/20070410-WSDL-Versioning-Best-Practise.pdf. I just want to document the version in the wsdl.


回答1:


I'm not aware of a dedicated WSDL construct for specifying the version. Instead you could use the documentation element for this, maybe in a structured form like this:

<wsdl:service name="MyService1" ...>
  <wsdl:documentation>
    A service for ...

    Author: John Doe

    Version: 1.2

    History: 1.2 2011-07-07 Added operation foo()
             1.1 2011-15-04 Added optional attribute bar
             1.0 2011-10-02 Initial release

  </wsdl:documentation>
  ...
</wsdl:service>


来源:https://stackoverflow.com/questions/6607425/where-to-place-version-information-in-a-wsdl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!