SOAP Message Construction with WSMan::WSBasic

You can use the WSMan::WSBasic class to construct SOAP messages for communicating with the WS-Management server.

The Perl module is located in Perl/lib/WSMan/WSBasic.pm. All operations in this class return deserialized SOAP::SOM objects from which you can extract the fault code or the SOAP replies.

You usually do not use this module directly. Instead, you use the GenericOps module built on top of WSBasic. GenericOps supports generic operations as defined by the DMTF standards. See Generic CIM Operations with WSMan::GenericOps. If you want to use the SOAP::SOM library directly, see the CPAN documentation for SOAP::SOM.

The WSMan::WSBasic module requires the following Perl modules.

  • SOAP::LiteWSMan::WSBasic requires Version 0.65 or later to form SOAP messages and to parse XML replies that are received from the WS-Management server.
  • UUID – Generates UUIDs for the SOAP messages.

Methods in WSMan::WSBasic lists the methods the WSBasic class provides, which are discussed in more detail below.

Table 1. Methods in WSMan::WSBasic
Method Description
WSMan::WSBasic->new Constructor.
register_xml_ns Registers extra XML namespaces that might be required for proprietary tags in the SOAP message
register_class_ns Registers extra CIM namespaces that the WS-Management server might require.
Identify Performs the wsmid:Identify operation, which causes the WS-Management server to identify itself.
Enumerate Filters results differently depending on the arguments you pass in.
PullRelease Performs a Pull or a Release operation (overloaded method).
Get Retrieves an instance of a class.