Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

113 lines
3.4 KiB

  1. <?xml version="1.0"?>
  2. <!-- Schema For doing WMI Operations over SOAP-->
  3. <contract name="WmiSOAPService"
  4. targetNamespace="http://www.microsoft.com/wmi/soap/1.0"
  5. xmlns:tns="http://www.microsoft.com/wmi/soap/1.0/scl"
  6. xmlns:soap="http://xmlsoap.org/scl/soap"
  7. xmlns:dt="http://www.w3.org/1999/XMLSchema"
  8. xmlns:wmisoap="http://www.microsoft.com/wmi/soap/1.0/xsd"
  9. xmlns="http://xmlsoap.org/scl">
  10. <!-- The Various messages that the WMI SOAP Service handles -->
  11. <message name="ConnectServerRequest">
  12. <element ref="wmisoap:ConnectServer"/>
  13. </message>
  14. <message name="ConnectServerResponse">
  15. <element ref="wmisoap:ConnectServerResult"/>
  16. </message>
  17. <message name="GetObjectRequest">
  18. <element ref="wmisoap:GetObject"/>
  19. </message>
  20. <message name="GetObjectResponse">
  21. <element ref="wmisoap:GetObjectResult"/>
  22. </message>
  23. <!-- The WMI SOAP Service Port -->
  24. <port name="WMISOAP">
  25. <binding>
  26. <soap:service/>
  27. <soap:address location="http://localhost/cimom"/>
  28. <requestResponse name="ConnectServer">
  29. <request messageRef="tns:ConnectServerRequest">
  30. <soap:action uri="http://www.microsoft.com/soap/1.0"/>
  31. </request>
  32. <response messageRef="tns:ConnectServerRespons"/>
  33. </requestResponse>
  34. <requestResponse name="GetObject">
  35. <request messageRef="tns:GetObjectRequest">
  36. <soap:action uri="http://www.microsoft.com/soap/1.0"/>
  37. </request>
  38. <response messageRef="tns:GetObjectResponse"/>
  39. </requestResponse>
  40. </binding>
  41. </port>
  42. <!-- The Payloads for each of the messages -->
  43. <schema targetNamespace= "http://www.microsoft.com/wmi/soap/1.0/xsd"
  44. xmlns:tns="http://www.microsoft.com/wmi/soap/1.0/xsd"
  45. xmlns="http://www.w3.org/1999/XMLSchema">
  46. <!-- This represents an IWbemContext object -->
  47. <complexType name="WbemContext">
  48. <element name="value" minOccurs="0" maxOccurs="unbounded" type="string">
  49. <attribute name="name" type="string" use="required"/>
  50. <attribute name="type" use="required">
  51. <enumeration value="VT_I4"/>
  52. <enumeration value="VT_BOOL"/>
  53. <enumeration value="VT_BSTR"/>
  54. <enumeration value="VT_R8"/>
  55. <enumeration value="VT_NULL"/>
  56. </attribute>
  57. </element>
  58. </complexType>
  59. <!-- This is a metamodel mapping of an IWbemClassObject-->
  60. <complexType name="WbemObject">
  61. <group>
  62. <choice>
  63. <element name="instance">...
  64. </element>
  65. <element name="class">...
  66. </element>
  67. </choice>
  68. </group>
  69. </complexType>
  70. <!-- The ConnectServer call -->
  71. <element name="ConnectServer">
  72. <complexType>
  73. <element name="strNetworkResource " type="string"/>
  74. <element name="strLocale" type="string"/>
  75. <element name="lSecurityFlags" type="integer"/>
  76. <element name="Ctx" type="tns:WbemContext"/>
  77. </complexType>
  78. </element>
  79. <element name="ConnectServerResult">
  80. <complextype>
  81. <element name="guid" type="string"/>
  82. </complextype>
  83. </element>
  84. <!-- The GetObject call -->
  85. <element name="GetObject">
  86. <complexType>
  87. <element name="strObjectPath" type="string"/>
  88. <element name="strLocale" type="string"/>
  89. <element name="lFlags" type="integer"/>
  90. <element name="Ctx" type="tns:WbemContext"/>
  91. </complexType>
  92. </element>
  93. <element name="GetObjectResult">
  94. <complextype>
  95. <element name="object" type="tns:WbemObject"/>
  96. </complextype>
  97. </element>
  98. <!-- OTHER OPERATION PAYLOADS NEED TO BE DEFINED HERE -->
  99. </schema>
  100. </contract>