class Openwsman::Context
Context
contains all information of an ongoing SOAP operation
There is no constructor for Context
, use Soap.context to get the current one.
Public Instance Methods
classname → String
click to toggle source
The class name
const char *classname() { return wsman_get_class_name($self); } /* * The method name * call-seq: * context.method -> String * */ const char *method() { return wsman_get_method_name($self); } /* * The method arguments * call-seq: * context.method -> Hash * */ hash_t *method_args(const char *resource_uri) { return wsman_get_method_args($self, resource_uri); } /* * The maximum elements of the document * call-seq: * context.max_elements -> Integer * context.max_elements(xmldoc) -> Integer * */ int max_elements(WsXmlDocH doc = NULL) { return wsman_get_max_elements($self, doc); } /* * The maximum envelope size of the document * call-seq: * context.max_envelope_size -> Integer * context.max_envelope_size(xmldoc) -> Integer * */ unsigned long max_envelope_size(WsXmlDocH doc = NULL) { return wsman_get_max_envelope_size($self, doc); } /* * The fragment of the document * call-seq: * context.fragment_string -> String * context.fragment_string(xmldoc) -> String * */ const char *fragment_string(WsXmlDocH doc = NULL) { return wsman_get_fragment_string($self, doc); } /* * The selector for an element * call-seq: * context.selector(xml_doc, "Name", 1) -> String * */ const char *selector(WsXmlDocH doc, const char *name, int index) { return wsman_get_selector($self, doc, name, index); } /* * The selectors from an endpoint reference * call-seq: * context.selectors_from_epr(epr_node_as_xml_doc) -> Hash * */ hash_t *selectors_from_epr(WsXmlNodeH epr_node) { return wsman_get_selectors_from_epr($self, epr_node); } /* * The selectors for a document * call-seq: * context.selectors -> Hash * context.selectors(xml_doc) -> Hash * */ hash_t *selectors(WsXmlDocH doc = NULL) { return wsman_get_selector_list($self, doc); } /* * The selectors from a filter * call-seq: * context.selectors_from_filter -> Hash * context.selectors_from_filter(xml_doc) -> Hash * */ hash_t *selectors_from_filter(WsXmlDocH doc = NULL) { return wsman_get_selector_list_from_filter($self, doc); } /* * The action * call-seq: * context.action -> String * context.action(xml_doc) -> String * */ const char *action(WsXmlDocH doc = NULL) { return wsman_get_action($self, doc); } /* * The resource uri * call-seq: * context.resource_uri -> String * context.resource_uri(xml_doc) -> String * */ const char *resource_uri(WsXmlDocH doc = NULL) { return wsman_get_resource_uri($self, doc); } /* * The option set * call-seq: * context.option_set(xml_doc, "op") -> String * */ const char *option_set(WsXmlDocH doc, const char *op) { return wsman_get_option_set($self, doc, op); } /* * Parse enumeration request * call-seq: * context.parse_enum_request(enumerate_info) -> Integer * */ int parse_enum_request(WsEnumerateInfo *enumInfo) { WsmanStatus status; wsman_status_init(&status); return wsman_parse_enum_request( $self, enumInfo, &status); /* FIXME: return status */ } }
enum_idle_timeout = 60
click to toggle source
Set the idle timeout for enumerations
void set_enumIdleTimeout(unsigned long timeout) { ws_set_context_enumIdleTimeout($self, timeout); } /* * The class name * call-seq: * context.classname -> String * */ const char *classname() { return wsman_get_class_name($self); } /* * The method name * call-seq: * context.method -> String * */ const char *method() { return wsman_get_method_name($self); } /* * The method arguments * call-seq: * context.method -> Hash * */ hash_t *method_args(const char *resource_uri) { return wsman_get_method_args($self, resource_uri); } /* * The maximum elements of the document * call-seq: * context.max_elements -> Integer * context.max_elements(xmldoc) -> Integer * */ int max_elements(WsXmlDocH doc = NULL) { return wsman_get_max_elements($self, doc); } /* * The maximum envelope size of the document * call-seq: * context.max_envelope_size -> Integer * context.max_envelope_size(xmldoc) -> Integer * */ unsigned long max_envelope_size(WsXmlDocH doc = NULL) { return wsman_get_max_envelope_size($self, doc); } /* * The fragment of the document * call-seq: * context.fragment_string -> String * context.fragment_string(xmldoc) -> String * */ const char *fragment_string(WsXmlDocH doc = NULL) { return wsman_get_fragment_string($self, doc); } /* * The selector for an element * call-seq: * context.selector(xml_doc, "Name", 1) -> String * */ const char *selector(WsXmlDocH doc, const char *name, int index) { return wsman_get_selector($self, doc, name, index); } /* * The selectors from an endpoint reference * call-seq: * context.selectors_from_epr(epr_node_as_xml_doc) -> Hash * */ hash_t *selectors_from_epr(WsXmlNodeH epr_node) { return wsman_get_selectors_from_epr($self, epr_node); } /* * The selectors for a document * call-seq: * context.selectors -> Hash * context.selectors(xml_doc) -> Hash * */ hash_t *selectors(WsXmlDocH doc = NULL) { return wsman_get_selector_list($self, doc); } /* * The selectors from a filter * call-seq: * context.selectors_from_filter -> Hash * context.selectors_from_filter(xml_doc) -> Hash * */ hash_t *selectors_from_filter(WsXmlDocH doc = NULL) { return wsman_get_selector_list_from_filter($self, doc); } /* * The action * call-seq: * context.action -> String * context.action(xml_doc) -> String * */ const char *action(WsXmlDocH doc = NULL) { return wsman_get_action($self, doc); } /* * The resource uri * call-seq: * context.resource_uri -> String * context.resource_uri(xml_doc) -> String * */ const char *resource_uri(WsXmlDocH doc = NULL) { return wsman_get_resource_uri($self, doc); } /* * The option set * call-seq: * context.option_set(xml_doc, "op") -> String * */ const char *option_set(WsXmlDocH doc, const char *op) { return wsman_get_option_set($self, doc, op); } /* * Parse enumeration request * call-seq: * context.parse_enum_request(enumerate_info) -> Integer * */ int parse_enum_request(WsEnumerateInfo *enumInfo) { WsmanStatus status; wsman_status_init(&status); return wsman_parse_enum_request( $self, enumInfo, &status); /* FIXME: return status */ } }
indox → Openwsman::XmlDoc
click to toggle source
The incoming XmlDoc
WsXmlDocH indoc() { return $self->indoc; } /* * Get the Soap runtime environment * call-seq: * context.runtime -> Openwsman::Soap * */ struct __Soap *runtime() { return ws_context_get_runtime($self); } %rename("enum_idle_timeout=") set_enumIdleTimeout(unsigned long timeout); /* * Set the idle timeout for enumerations * call-seq: * context.enum_idle_timeout = 60 * */ void set_enumIdleTimeout(unsigned long timeout) { ws_set_context_enumIdleTimeout($self, timeout); } /* * The class name * call-seq: * context.classname -> String * */ const char *classname() { return wsman_get_class_name($self); } /* * The method name * call-seq: * context.method -> String * */ const char *method() { return wsman_get_method_name($self); } /* * The method arguments * call-seq: * context.method -> Hash * */ hash_t *method_args(const char *resource_uri) { return wsman_get_method_args($self, resource_uri); } /* * The maximum elements of the document * call-seq: * context.max_elements -> Integer * context.max_elements(xmldoc) -> Integer * */ int max_elements(WsXmlDocH doc = NULL) { return wsman_get_max_elements($self, doc); } /* * The maximum envelope size of the document * call-seq: * context.max_envelope_size -> Integer * context.max_envelope_size(xmldoc) -> Integer * */ unsigned long max_envelope_size(WsXmlDocH doc = NULL) { return wsman_get_max_envelope_size($self, doc); } /* * The fragment of the document * call-seq: * context.fragment_string -> String * context.fragment_string(xmldoc) -> String * */ const char *fragment_string(WsXmlDocH doc = NULL) { return wsman_get_fragment_string($self, doc); } /* * The selector for an element * call-seq: * context.selector(xml_doc, "Name", 1) -> String * */ const char *selector(WsXmlDocH doc, const char *name, int index) { return wsman_get_selector($self, doc, name, index); } /* * The selectors from an endpoint reference * call-seq: * context.selectors_from_epr(epr_node_as_xml_doc) -> Hash * */ hash_t *selectors_from_epr(WsXmlNodeH epr_node) { return wsman_get_selectors_from_epr($self, epr_node); } /* * The selectors for a document * call-seq: * context.selectors -> Hash * context.selectors(xml_doc) -> Hash * */ hash_t *selectors(WsXmlDocH doc = NULL) { return wsman_get_selector_list($self, doc); } /* * The selectors from a filter * call-seq: * context.selectors_from_filter -> Hash * context.selectors_from_filter(xml_doc) -> Hash * */ hash_t *selectors_from_filter(WsXmlDocH doc = NULL) { return wsman_get_selector_list_from_filter($self, doc); } /* * The action * call-seq: * context.action -> String * context.action(xml_doc) -> String * */ const char *action(WsXmlDocH doc = NULL) { return wsman_get_action($self, doc); } /* * The resource uri * call-seq: * context.resource_uri -> String * context.resource_uri(xml_doc) -> String * */ const char *resource_uri(WsXmlDocH doc = NULL) { return wsman_get_resource_uri($self, doc); } /* * The option set * call-seq: * context.option_set(xml_doc, "op") -> String * */ const char *option_set(WsXmlDocH doc, const char *op) { return wsman_get_option_set($self, doc, op); } /* * Parse enumeration request * call-seq: * context.parse_enum_request(enumerate_info) -> Integer * */ int parse_enum_request(WsEnumerateInfo *enumInfo) { WsmanStatus status; wsman_status_init(&status); return wsman_parse_enum_request( $self, enumInfo, &status); /* FIXME: return status */ } }
method → String
click to toggle source
The method name
const char *method() { return wsman_get_method_name($self); } /* * The method arguments * call-seq: * context.method -> Hash * */ hash_t *method_args(const char *resource_uri) { return wsman_get_method_args($self, resource_uri); } /* * The maximum elements of the document * call-seq: * context.max_elements -> Integer * context.max_elements(xmldoc) -> Integer * */ int max_elements(WsXmlDocH doc = NULL) { return wsman_get_max_elements($self, doc); } /* * The maximum envelope size of the document * call-seq: * context.max_envelope_size -> Integer * context.max_envelope_size(xmldoc) -> Integer * */ unsigned long max_envelope_size(WsXmlDocH doc = NULL) { return wsman_get_max_envelope_size($self, doc); } /* * The fragment of the document * call-seq: * context.fragment_string -> String * context.fragment_string(xmldoc) -> String * */ const char *fragment_string(WsXmlDocH doc = NULL) { return wsman_get_fragment_string($self, doc); } /* * The selector for an element * call-seq: * context.selector(xml_doc, "Name", 1) -> String * */ const char *selector(WsXmlDocH doc, const char *name, int index) { return wsman_get_selector($self, doc, name, index); } /* * The selectors from an endpoint reference * call-seq: * context.selectors_from_epr(epr_node_as_xml_doc) -> Hash * */ hash_t *selectors_from_epr(WsXmlNodeH epr_node) { return wsman_get_selectors_from_epr($self, epr_node); } /* * The selectors for a document * call-seq: * context.selectors -> Hash * context.selectors(xml_doc) -> Hash * */ hash_t *selectors(WsXmlDocH doc = NULL) { return wsman_get_selector_list($self, doc); } /* * The selectors from a filter * call-seq: * context.selectors_from_filter -> Hash * context.selectors_from_filter(xml_doc) -> Hash * */ hash_t *selectors_from_filter(WsXmlDocH doc = NULL) { return wsman_get_selector_list_from_filter($self, doc); } /* * The action * call-seq: * context.action -> String * context.action(xml_doc) -> String * */ const char *action(WsXmlDocH doc = NULL) { return wsman_get_action($self, doc); } /* * The resource uri * call-seq: * context.resource_uri -> String * context.resource_uri(xml_doc) -> String * */ const char *resource_uri(WsXmlDocH doc = NULL) { return wsman_get_resource_uri($self, doc); } /* * The option set * call-seq: * context.option_set(xml_doc, "op") -> String * */ const char *option_set(WsXmlDocH doc, const char *op) { return wsman_get_option_set($self, doc, op); } /* * Parse enumeration request * call-seq: * context.parse_enum_request(enumerate_info) -> Integer * */ int parse_enum_request(WsEnumerateInfo *enumInfo) { WsmanStatus status; wsman_status_init(&status); return wsman_parse_enum_request( $self, enumInfo, &status); /* FIXME: return status */ } }
method → Hash
click to toggle source
The method arguments
hash_t *method_args(const char *resource_uri) { return wsman_get_method_args($self, resource_uri); } /* * The maximum elements of the document * call-seq: * context.max_elements -> Integer * context.max_elements(xmldoc) -> Integer * */ int max_elements(WsXmlDocH doc = NULL) { return wsman_get_max_elements($self, doc); } /* * The maximum envelope size of the document * call-seq: * context.max_envelope_size -> Integer * context.max_envelope_size(xmldoc) -> Integer * */ unsigned long max_envelope_size(WsXmlDocH doc = NULL) { return wsman_get_max_envelope_size($self, doc); } /* * The fragment of the document * call-seq: * context.fragment_string -> String * context.fragment_string(xmldoc) -> String * */ const char *fragment_string(WsXmlDocH doc = NULL) { return wsman_get_fragment_string($self, doc); } /* * The selector for an element * call-seq: * context.selector(xml_doc, "Name", 1) -> String * */ const char *selector(WsXmlDocH doc, const char *name, int index) { return wsman_get_selector($self, doc, name, index); } /* * The selectors from an endpoint reference * call-seq: * context.selectors_from_epr(epr_node_as_xml_doc) -> Hash * */ hash_t *selectors_from_epr(WsXmlNodeH epr_node) { return wsman_get_selectors_from_epr($self, epr_node); } /* * The selectors for a document * call-seq: * context.selectors -> Hash * context.selectors(xml_doc) -> Hash * */ hash_t *selectors(WsXmlDocH doc = NULL) { return wsman_get_selector_list($self, doc); } /* * The selectors from a filter * call-seq: * context.selectors_from_filter -> Hash * context.selectors_from_filter(xml_doc) -> Hash * */ hash_t *selectors_from_filter(WsXmlDocH doc = NULL) { return wsman_get_selector_list_from_filter($self, doc); } /* * The action * call-seq: * context.action -> String * context.action(xml_doc) -> String * */ const char *action(WsXmlDocH doc = NULL) { return wsman_get_action($self, doc); } /* * The resource uri * call-seq: * context.resource_uri -> String * context.resource_uri(xml_doc) -> String * */ const char *resource_uri(WsXmlDocH doc = NULL) { return wsman_get_resource_uri($self, doc); } /* * The option set * call-seq: * context.option_set(xml_doc, "op") -> String * */ const char *option_set(WsXmlDocH doc, const char *op) { return wsman_get_option_set($self, doc, op); } /* * Parse enumeration request * call-seq: * context.parse_enum_request(enumerate_info) -> Integer * */ int parse_enum_request(WsEnumerateInfo *enumInfo) { WsmanStatus status; wsman_status_init(&status); return wsman_parse_enum_request( $self, enumInfo, &status); /* FIXME: return status */ } }
option_set(xml_doc, "op") → String
click to toggle source
The option set
const char *option_set(WsXmlDocH doc, const char *op) { return wsman_get_option_set($self, doc, op); } /* * Parse enumeration request * call-seq: * context.parse_enum_request(enumerate_info) -> Integer * */ int parse_enum_request(WsEnumerateInfo *enumInfo) { WsmanStatus status; wsman_status_init(&status); return wsman_parse_enum_request( $self, enumInfo, &status); /* FIXME: return status */ } }
parse_enum_request(enumerate_info) → Integer
click to toggle source
Parse enumeration request
int parse_enum_request(WsEnumerateInfo *enumInfo) { WsmanStatus status; wsman_status_init(&status); return wsman_parse_enum_request( $self, enumInfo, &status); /* FIXME: return status */ } }
runtime → Openwsman::Soap
click to toggle source
Get the Soap runtime environment
struct __Soap *runtime() { return ws_context_get_runtime($self); } %rename("enum_idle_timeout=") set_enumIdleTimeout(unsigned long timeout); /* * Set the idle timeout for enumerations * call-seq: * context.enum_idle_timeout = 60 * */ void set_enumIdleTimeout(unsigned long timeout) { ws_set_context_enumIdleTimeout($self, timeout); } /* * The class name * call-seq: * context.classname -> String * */ const char *classname() { return wsman_get_class_name($self); } /* * The method name * call-seq: * context.method -> String * */ const char *method() { return wsman_get_method_name($self); } /* * The method arguments * call-seq: * context.method -> Hash * */ hash_t *method_args(const char *resource_uri) { return wsman_get_method_args($self, resource_uri); } /* * The maximum elements of the document * call-seq: * context.max_elements -> Integer * context.max_elements(xmldoc) -> Integer * */ int max_elements(WsXmlDocH doc = NULL) { return wsman_get_max_elements($self, doc); } /* * The maximum envelope size of the document * call-seq: * context.max_envelope_size -> Integer * context.max_envelope_size(xmldoc) -> Integer * */ unsigned long max_envelope_size(WsXmlDocH doc = NULL) { return wsman_get_max_envelope_size($self, doc); } /* * The fragment of the document * call-seq: * context.fragment_string -> String * context.fragment_string(xmldoc) -> String * */ const char *fragment_string(WsXmlDocH doc = NULL) { return wsman_get_fragment_string($self, doc); } /* * The selector for an element * call-seq: * context.selector(xml_doc, "Name", 1) -> String * */ const char *selector(WsXmlDocH doc, const char *name, int index) { return wsman_get_selector($self, doc, name, index); } /* * The selectors from an endpoint reference * call-seq: * context.selectors_from_epr(epr_node_as_xml_doc) -> Hash * */ hash_t *selectors_from_epr(WsXmlNodeH epr_node) { return wsman_get_selectors_from_epr($self, epr_node); } /* * The selectors for a document * call-seq: * context.selectors -> Hash * context.selectors(xml_doc) -> Hash * */ hash_t *selectors(WsXmlDocH doc = NULL) { return wsman_get_selector_list($self, doc); } /* * The selectors from a filter * call-seq: * context.selectors_from_filter -> Hash * context.selectors_from_filter(xml_doc) -> Hash * */ hash_t *selectors_from_filter(WsXmlDocH doc = NULL) { return wsman_get_selector_list_from_filter($self, doc); } /* * The action * call-seq: * context.action -> String * context.action(xml_doc) -> String * */ const char *action(WsXmlDocH doc = NULL) { return wsman_get_action($self, doc); } /* * The resource uri * call-seq: * context.resource_uri -> String * context.resource_uri(xml_doc) -> String * */ const char *resource_uri(WsXmlDocH doc = NULL) { return wsman_get_resource_uri($self, doc); } /* * The option set * call-seq: * context.option_set(xml_doc, "op") -> String * */ const char *option_set(WsXmlDocH doc, const char *op) { return wsman_get_option_set($self, doc, op); } /* * Parse enumeration request * call-seq: * context.parse_enum_request(enumerate_info) -> Integer * */ int parse_enum_request(WsEnumerateInfo *enumInfo) { WsmanStatus status; wsman_status_init(&status); return wsman_parse_enum_request( $self, enumInfo, &status); /* FIXME: return status */ } }
selector(xml_doc, "Name", 1) → String
click to toggle source
The selector for an element
const char *selector(WsXmlDocH doc, const char *name, int index) { return wsman_get_selector($self, doc, name, index); } /* * The selectors from an endpoint reference * call-seq: * context.selectors_from_epr(epr_node_as_xml_doc) -> Hash * */ hash_t *selectors_from_epr(WsXmlNodeH epr_node) { return wsman_get_selectors_from_epr($self, epr_node); } /* * The selectors for a document * call-seq: * context.selectors -> Hash * context.selectors(xml_doc) -> Hash * */ hash_t *selectors(WsXmlDocH doc = NULL) { return wsman_get_selector_list($self, doc); } /* * The selectors from a filter * call-seq: * context.selectors_from_filter -> Hash * context.selectors_from_filter(xml_doc) -> Hash * */ hash_t *selectors_from_filter(WsXmlDocH doc = NULL) { return wsman_get_selector_list_from_filter($self, doc); } /* * The action * call-seq: * context.action -> String * context.action(xml_doc) -> String * */ const char *action(WsXmlDocH doc = NULL) { return wsman_get_action($self, doc); } /* * The resource uri * call-seq: * context.resource_uri -> String * context.resource_uri(xml_doc) -> String * */ const char *resource_uri(WsXmlDocH doc = NULL) { return wsman_get_resource_uri($self, doc); } /* * The option set * call-seq: * context.option_set(xml_doc, "op") -> String * */ const char *option_set(WsXmlDocH doc, const char *op) { return wsman_get_option_set($self, doc, op); } /* * Parse enumeration request * call-seq: * context.parse_enum_request(enumerate_info) -> Integer * */ int parse_enum_request(WsEnumerateInfo *enumInfo) { WsmanStatus status; wsman_status_init(&status); return wsman_parse_enum_request( $self, enumInfo, &status); /* FIXME: return status */ } }
selectors_from_epr(epr_node_as_xml_doc) → Hash
click to toggle source
The selectors from an endpoint reference
hash_t *selectors_from_epr(WsXmlNodeH epr_node) { return wsman_get_selectors_from_epr($self, epr_node); } /* * The selectors for a document * call-seq: * context.selectors -> Hash * context.selectors(xml_doc) -> Hash * */ hash_t *selectors(WsXmlDocH doc = NULL) { return wsman_get_selector_list($self, doc); } /* * The selectors from a filter * call-seq: * context.selectors_from_filter -> Hash * context.selectors_from_filter(xml_doc) -> Hash * */ hash_t *selectors_from_filter(WsXmlDocH doc = NULL) { return wsman_get_selector_list_from_filter($self, doc); } /* * The action * call-seq: * context.action -> String * context.action(xml_doc) -> String * */ const char *action(WsXmlDocH doc = NULL) { return wsman_get_action($self, doc); } /* * The resource uri * call-seq: * context.resource_uri -> String * context.resource_uri(xml_doc) -> String * */ const char *resource_uri(WsXmlDocH doc = NULL) { return wsman_get_resource_uri($self, doc); } /* * The option set * call-seq: * context.option_set(xml_doc, "op") -> String * */ const char *option_set(WsXmlDocH doc, const char *op) { return wsman_get_option_set($self, doc, op); } /* * Parse enumeration request * call-seq: * context.parse_enum_request(enumerate_info) -> Integer * */ int parse_enum_request(WsEnumerateInfo *enumInfo) { WsmanStatus status; wsman_status_init(&status); return wsman_parse_enum_request( $self, enumInfo, &status); /* FIXME: return status */ } }