HP WBEM Services for HP-UX System Administrator Guide (5900-1624, April 2011)

Lines 6 - 9: Two criteria must be met to continue:
This namespace must be valid.
If enableNamespaceAuthorization property is enabled, this user must be authorized
to access this namespace
Lines 10 - 12: The classname must exist, and it must have a provider registered. The provider
must respond to the request. Here, the OS Provider is registered for the PG_OperatingSystem
class. Checking the provider documentation, you can see that it supports the
EnumerateInstancesmethod.
Now it is up to the provider to process the request and send a response. If the resource does not
respond, HP WBEM Services will send a message to the client. If the resource sends its own error,
HP WBEM Services will pass this on to the client in its response. Often, these messages will be
appended to a standard CIM error.
Example response
The table shows the response to the request to EnumerateInstances for PG_Operating
System.
The return value is a named instance. Named instances include both INSTANCENAME (the instance
with its key properties) and INSTANCE (all the properties). Because this instance has so many
properties, some of them have been omitted from the example text.
Table 6 EnumerateInstances Response for PG_OperatingSystem Class
Lines 1 - 3 indicate this
is an XML-encoded
message. (See end at
lines 171 and 172.)
<?xml version =1.0 encoding=utf-8?>1
<CIM CIMVERSION=2.0 DTDVERSION=2.0>2
<MESSAGE ID=51000 PROTOCOLVERSION=1.03
This is simple response
to Enumerate Instances
method
<SIMPLERSP>4
<IMETHODRESPONSE NAME=EnumerateInstances>5
Return value is named
instance (all
properties)
<IRETURNVALUE>6
<VALUE.NAMEDINSTANCE>7
Begin keys of class
name
<INSTANCENAME CLASSNAME=PG_OperatingSystem>8
One key for this
instance. It is
CreationClassName,
a string, and its value
is “CIM_Operating
System
<KEYBINDING NAME=CreationClassName9
<KEYVALUE VALUETYPE=string>10
CIM_OperatingSystem11
</KEYVALUE>12
</KEYBINDING>13
Next key is
CSCreationClassName,
a string, with value
“CIM_UnitaryComput
erSystem
<KEYBINDING NAME=CSCreationClassName14
<KEYVALUE VALUETYPE=string>15
CIM_UnitaryComputerSystem16
</KEYVALUE>17
</KEYBINDING>18
Example response 55