HP WBEM Services for HP-UX and Linux System Administrator's Guide
Example of a Client Request
Example Request
Chapter 436
Example Request
• Lines 1-3: This is checked when the request comes to the HTTP
Server. At this point, several things have to happen to continue:
Table 4-1 EnumerateInstances Request for PG_OperatingSystem Class
1 <?xml version=”1.0” ?> Begin specifying that
this is an
XML-encoded CIM
message. (See end at
line 15 and 16)
2 <CIM CIMVERSION=”2.0” DTDVERSION=”2.0”>
3 <MESSAGE ID=”51000” PROTOCOLVERSION=”1.0”>
4 <SIMPLEREQ> This is a simple
request for the
operation: method
EnumerateInstances
5 <IMETHODCALL NAME=”EnumerateInstances”>
6 <LOCALNAMESPACEPATH>
Line 6 begins (and 9
ends) specifying the
/root/cimv2
namespace for the
CIM operation
7 <NAMESPACE NAME=”root”/>
8 <NAMESPACE NAME=”cimv2”/>
9 </LOCALNAMESPACEPATH>
10 <IPARAMVALUE NAME=”ClassName”> Line 10 begins (and
12 ends) specifying
the class name
(required) for
EnumerateInstances
:
PG_OperatingSystem
11 <CLASSNAME
NAME=”PG_OperatingSystem”/>
12 </IPARAMVALUE>
13 </IMETHODCALL> Ending of the method
call and simple
request.
14 </SIMPLEREQ>
15 </MESSAGE> Ending of the CIM
operation request
message.
16 </CIM>