描述于 W3C 工作草案的完整 WSDL 1.2 语法已列在下面:

  1. <wsdl:definitions name="nmtoken"? targetNamespace="uri">
  2.  
  3. <import namespace="uri" location="uri"/> *
  4. <wsdl:documentation .... /> ?
  5.  
  6. <wsdl:types> ?
  7. <wsdl:documentation .... /> ?
  8. <xsd:schema .... /> *
  9. </wsdl:types>
  10.  
  11. <wsdl:message name="ncname"> *
  12. <wsdl:documentation .... /> ?
  13. <part name="ncname" element="qname"? type="qname"?/> *
  14. </wsdl:message>
  15.  
  16. <wsdl:portType name="ncname"> *
  17. <wsdl:documentation .... /> ?
  18. <wsdl:operation name="ncname"> *
  19. <wsdl:documentation .... /> ?
  20. <wsdl:input message="qname"> ?
  21. <wsdl:documentation .... /> ?
  22. </wsdl:input>
  23. <wsdl:output message="qname"> ?
  24. <wsdl:documentation .... /> ?
  25. </wsdl:output>
  26. <wsdl:fault name="ncname" message="qname"> *
  27. <wsdl:documentation .... /> ?
  28. </wsdl:fault>
  29. </wsdl:operation>
  30. </wsdl:portType>
  31.  
  32. <wsdl:serviceType name="ncname"> *
  33. <wsdl:portType name="qname"/> +
  34. </wsdl:serviceType>
  35.  
  36. <wsdl:binding name="ncname" type="qname"> *
  37. <wsdl:documentation .... /> ?
  38. <-- binding details --> *
  39. <wsdl:operation name="ncname"> *
  40. <wsdl:documentation .... /> ?
  41. <-- binding details --> *
  42. <wsdl:input> ?
  43. <wsdl:documentation .... /> ?
  44. <-- binding details -->
  45. </wsdl:input>
  46. <wsdl:output> ?
  47. <wsdl:documentation .... /> ?
  48. <-- binding details --> *
  49. </wsdl:output>
  50. <wsdl:fault name="ncname"> *
  51. <wsdl:documentation .... /> ?
  52. <-- binding details --> *
  53. </wsdl:fault>
  54. </wsdl:operation>
  55. </wsdl:binding>
  56.  
  57. <wsdl:service name="ncname" serviceType="qname"> *
  58. <wsdl:documentation .... /> ?
  59. <wsdl:port name="ncname" binding="qname"> *
  60. <wsdl:documentation .... /> ?
  61. <-- address details -->
  62. </wsdl:port>
  63. </wsdl:service>
  64.  
  65. </wsdl:definitions>