bug47049.wsdl 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.example.org/reporter/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="reporter" targetNamespace="http://www.example.org/reporter/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
  3. <wsdl:types><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.org/reporter/">
  4. <xsd:complexType name="host">
  5. <xsd:sequence>
  6. <xsd:element name="uuid" type="xsd:string"></xsd:element>
  7. </xsd:sequence>
  8. </xsd:complexType>
  9. <xsd:complexType name="software_list">
  10. <xsd:sequence>
  11. <xsd:element name="software" type="tns:software"
  12. maxOccurs="unbounded" minOccurs="1">
  13. </xsd:element>
  14. </xsd:sequence>
  15. </xsd:complexType>
  16. <xsd:complexType name="software">
  17. <xsd:sequence>
  18. <xsd:element name="name" type="xsd:string" maxOccurs="1" minOccurs="1"></xsd:element>
  19. <xsd:element name="version" type="xsd:string" maxOccurs="1" minOccurs="1"></xsd:element>
  20. <xsd:element name="state" type="xsd:string" maxOccurs="1" minOccurs="1"></xsd:element>
  21. </xsd:sequence>
  22. </xsd:complexType>
  23. <xsd:complexType name="updates">
  24. <xsd:sequence>
  25. <xsd:element name="update" type="tns:update"
  26. maxOccurs="unbounded" minOccurs="0">
  27. </xsd:element>
  28. </xsd:sequence>
  29. </xsd:complexType>
  30. <xsd:complexType name="update">
  31. <xsd:sequence>
  32. <xsd:element name="software" type="xsd:string"></xsd:element>
  33. <xsd:element name="old_version" type="xsd:string"></xsd:element>
  34. <xsd:element name="new_version" type="xsd:string"></xsd:element>
  35. </xsd:sequence>
  36. </xsd:complexType>
  37. </xsd:schema></wsdl:types>
  38. <wsdl:message name="reportSoftwareStatusRequest">
  39. <wsdl:part name="host" type="tns:host"/>
  40. <wsdl:part name="software_list" type="tns:software_list"></wsdl:part>
  41. <wsdl:part name="updates" type="tns:updates"></wsdl:part>
  42. </wsdl:message>
  43. <wsdl:message name="reportSoftwareStatusResponse">
  44. <wsdl:part name="report_id" type="xsd:int"/>
  45. </wsdl:message>
  46. <wsdl:portType name="reporter">
  47. <wsdl:operation name="reportSoftwareStatus">
  48. <wsdl:input message="tns:reportSoftwareStatusRequest"/>
  49. <wsdl:output message="tns:reportSoftwareStatusResponse"/>
  50. </wsdl:operation>
  51. </wsdl:portType>
  52. <wsdl:binding name="reporterHTTP" type="tns:reporter">
  53. <soap:binding style="document"
  54. transport="http://schemas.xmlsoap.org/soap/http" />
  55. <wsdl:operation name="reportSoftwareStatus">
  56. <soap:operation
  57. soapAction="http://www.example.org/reporter/reportSoftwareStatus" />
  58. <wsdl:input>
  59. <soap:body use="literal" />
  60. </wsdl:input>
  61. <wsdl:output>
  62. <soap:body use="literal" />
  63. </wsdl:output>
  64. </wsdl:operation>
  65. </wsdl:binding>
  66. <wsdl:service name="reporter">
  67. <wsdl:port binding="tns:reporterHTTP" name="reporterHTTP">
  68. <http:address location="test://"/>
  69. </wsdl:port>
  70. </wsdl:service>
  71. </wsdl:definitions>