bug27722.wsdl 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?xml version="1.0" ?>
  2. <definitions
  3. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  4. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  5. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  6. xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
  7. xmlns:si="http://soapinterop.org/xsd"
  8. xmlns:tns="http://linuxsrv.home/~dmitry/soap/test.wsdl"
  9. xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  10. xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  11. xmlns="http://schemas.xmlsoap.org/wsdl/"
  12. targetNamespace="http://linuxsrv.home/~dmitry/soap/test.wsdl">
  13. <types>
  14. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  15. <xsd:annotation>
  16. <xsd:documentation xml:lang="en">
  17. Purchase order schema for Example.com.
  18. Copyright 2000 Example.com. All rights reserved.
  19. </xsd:documentation>
  20. </xsd:annotation>
  21. <xsd:element name="purchaseOrder" type="PurchaseOrderType"/>
  22. <xsd:element name="comment" type="xsd:string"/>
  23. <xsd:complexType name="PurchaseOrderType">
  24. <xsd:sequence>
  25. <xsd:element name="shipTo" type="USAddress"/>
  26. <xsd:element name="billTo" type="USAddress"/>
  27. <xsd:element ref="comment" minOccurs="0"/>
  28. <xsd:element name="items" type="Items"/>
  29. </xsd:sequence>
  30. <xsd:attribute name="orderDate" type="xsd:date"/>
  31. </xsd:complexType>
  32. <xsd:complexType name="USAddress">
  33. <xsd:sequence>
  34. <xsd:element name="name" type="xsd:string"/>
  35. <xsd:element name="street" type="xsd:string"/>
  36. <xsd:element name="city" type="xsd:string"/>
  37. <xsd:element name="state" type="xsd:string"/>
  38. <xsd:element name="zip" type="xsd:decimal"/>
  39. </xsd:sequence>
  40. <xsd:attribute name="country" type="xsd:NMTOKEN"
  41. fixed="US"/>
  42. </xsd:complexType>
  43. <xsd:complexType name="Items">
  44. <xsd:sequence>
  45. <xsd:element name="item" minOccurs="0" maxOccurs="unbounded">
  46. <xsd:complexType>
  47. <xsd:sequence>
  48. <xsd:element name="productName" type="xsd:string"/>
  49. <xsd:element name="quantity">
  50. <xsd:simpleType>
  51. <xsd:restriction base="xsd:positiveInteger">
  52. <xsd:maxExclusive value="100"/>
  53. </xsd:restriction>
  54. </xsd:simpleType>
  55. </xsd:element>
  56. <xsd:element name="USPrice" type="xsd:decimal"/>
  57. <xsd:element ref="comment" minOccurs="0"/>
  58. <xsd:element name="shipDate" type="xsd:date" minOccurs="0"/>
  59. </xsd:sequence>
  60. <xsd:attribute name="partNum" type="SKU" use="required"/>
  61. </xsd:complexType>
  62. </xsd:element>
  63. </xsd:sequence>
  64. </xsd:complexType>
  65. <!-- Stock Keeping Unit, a code for identifying products -->
  66. <simpleType name="SKU">
  67. <restriction base="xsd:string">
  68. <pattern value="\d{3}-[A-Z]{2}"/>
  69. </restriction>
  70. </simpleType>
  71. </xsd:schema>
  72. </types>
  73. <portType name="TestServicePortType">
  74. </portType>
  75. <binding name="TestServiceBinding" type="tns:TestServicePortType">
  76. <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
  77. </binding>
  78. <service name="TestService">
  79. <port name="TestServicePort" binding="tns:TestServiceBinding">
  80. <soap:address location="test://" />
  81. </port>
  82. </service>
  83. </definitions>