|
ILIAS
Release_4_0_x_branch Revision 61816
|
soap_parser class parses SOAP XML messages into native PHP values More...
Inheritance diagram for soap_parser:
Collaboration diagram for soap_parser:Public Member Functions | |
| soap_parser ($xml, $encoding='UTF-8', $method='', $decode_utf8=false) | |
| constructor | |
| start_element ($parser, $name, $attrs) | |
| start-element handler | |
| end_element ($parser, $name) | |
| end-element handler | |
| character_data ($parser, $data) | |
| element content handler | |
| get_response () | |
| get the parsed message | |
| getHeaders () | |
| get the parsed headers | |
| decode_entities ($text) | |
| decodes entities | |
| decodeSimple ($value, $type, $typens) | |
| decodes simple types into PHP variables | |
| buildVal ($pos) | |
| builds response structures for compound values (arrays/structs) | |
| soap_parser ($xml, $encoding='UTF-8', $method='', $decode_utf8=true) | |
| constructor that actually does the parsing | |
| start_element ($parser, $name, $attrs) | |
| start-element handler | |
| end_element ($parser, $name) | |
| end-element handler | |
| character_data ($parser, $data) | |
| element content handler | |
| get_response () | |
| get the parsed message | |
| getHeaders () | |
| get the parsed headers | |
| decodeSimple ($value, $type, $typens) | |
| decodes simple types into PHP variables | |
| buildVal ($pos) | |
| builds response structures for compound values (arrays/structs) and scalars | |
| soap_parser ($xml, $encoding='UTF-8', $method='', $decode_utf8=true) | |
| constructor that actually does the parsing | |
| start_element ($parser, $name, $attrs) | |
| start-element handler | |
| end_element ($parser, $name) | |
| end-element handler | |
| character_data ($parser, $data) | |
| element content handler | |
| get_response () | |
| get the parsed message | |
| getHeaders () | |
| get the parsed headers | |
| decodeSimple ($value, $type, $typens) | |
| decodes simple types into PHP variables | |
| buildVal ($pos) | |
| builds response structures for compound values (arrays/structs) and scalars | |
Public Member Functions inherited from nusoap_parser | |
| nusoap_parser ($xml, $encoding='UTF-8', $method='', $decode_utf8=true) | |
| constructor that actually does the parsing | |
| get_soapbody () | |
| get the parsed SOAP Body (NULL if there was none) | |
| get_soapheader () | |
| get the parsed SOAP Header (NULL if there was none) | |
| nusoap_parser ($xml, $encoding='UTF-8', $method='', $decode_utf8=true) | |
| constructor that actually does the parsing | |
| get_soapbody () | |
| get the parsed SOAP Body (NULL if there was none) | |
| get_soapheader () | |
| get the parsed SOAP Header (NULL if there was none) | |
Public Member Functions inherited from nusoap_base | |
| debug ($string) | |
| adds debug data to the class level debug string | |
| expandEntities ($val) | |
| expands entities, e.g. | |
| getError () | |
| returns error string if present | |
| setError ($str) | |
| sets error string | |
| isArraySimpleOrStruct ($val) | |
| detect if array is a simple array or a struct (associative array) | |
| serialize_val ($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded') | |
| serializes PHP values in accordance w/ section 5. | |
| serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded') | |
| serialize message | |
| formatDump ($str) | |
| contractQname ($qname) | |
| contracts a qualified name | |
| expandQname ($qname) | |
| expands a qualified name | |
| getLocalPart ($str) | |
| returns the local part of a prefixed string returns the original string, if not prefixed | |
| getPrefix ($str) | |
| returns the prefix part of a prefixed string returns false, if not prefixed | |
| getNamespaceFromPrefix ($prefix) | |
| pass it a prefix, it returns a namespace returns false if no namespace registered with the given prefix | |
| getPrefixFromNamespace ($ns) | |
| returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace | |
| varDump ($data) | |
| nusoap_base () | |
| constructor | |
| getGlobalDebugLevel () | |
| gets the global debug level, which applies to future instances | |
| setGlobalDebugLevel ($level) | |
| sets the global debug level, which applies to future instances | |
| getDebugLevel () | |
| gets the debug level for this instance | |
| setDebugLevel ($level) | |
| sets the debug level for this instance | |
| debug ($string) | |
| adds debug data to the instance debug string with formatting | |
| appendDebug ($string) | |
| adds debug data to the instance debug string without formatting | |
| clearDebug () | |
| clears the current debug data for this instance | |
| & | getDebug () |
| gets the current debug data for this instance | |
| & | getDebugAsXMLComment () |
| gets the current debug data for this instance as an XML comment this may change the contents of the debug data | |
| expandEntities ($val) | |
| expands entities, e.g. | |
| getError () | |
| returns error string if present | |
| setError ($str) | |
| sets error string | |
| isArraySimpleOrStruct ($val) | |
| detect if array is a simple array or a struct (associative array) | |
| serialize_val ($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded') | |
| serializes PHP values in accordance w/ section 5. | |
| serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded', $encodingStyle='http://schemas.xmlsoap.org/soap/encoding/') | |
| serializes a message | |
| formatDump ($str) | |
| formats a string to be inserted into an HTML stream | |
| contractQname ($qname) | |
| contracts (changes namespace to prefix) a qualified name | |
| expandQname ($qname) | |
| expands (changes prefix to namespace) a qualified name | |
| getLocalPart ($str) | |
| returns the local part of a prefixed string returns the original string, if not prefixed | |
| getPrefix ($str) | |
| returns the prefix part of a prefixed string returns false, if not prefixed | |
| getNamespaceFromPrefix ($prefix) | |
| pass it a prefix, it returns a namespace | |
| getPrefixFromNamespace ($ns) | |
| returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace | |
| getmicrotime () | |
| returns the time in ODBC canonical form with microseconds | |
| varDump ($data) | |
| Returns a string with the output of var_dump. | |
| nusoap_base () | |
| constructor | |
| getGlobalDebugLevel () | |
| gets the global debug level, which applies to future instances | |
| setGlobalDebugLevel ($level) | |
| sets the global debug level, which applies to future instances | |
| getDebugLevel () | |
| gets the debug level for this instance | |
| setDebugLevel ($level) | |
| sets the debug level for this instance | |
| debug ($string) | |
| adds debug data to the instance debug string with formatting | |
| appendDebug ($string) | |
| adds debug data to the instance debug string without formatting | |
| clearDebug () | |
| clears the current debug data for this instance | |
| & | getDebug () |
| gets the current debug data for this instance | |
| & | getDebugAsXMLComment () |
| gets the current debug data for this instance as an XML comment this may change the contents of the debug data | |
| expandEntities ($val) | |
| expands entities, e.g. | |
| getError () | |
| returns error string if present | |
| setError ($str) | |
| sets error string | |
| isArraySimpleOrStruct ($val) | |
| detect if array is a simple array or a struct (associative array) | |
| serialize_val ($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded') | |
| serializes PHP values in accordance w/ section 5. | |
| serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded', $encodingStyle='http://schemas.xmlsoap.org/soap/encoding/') | |
| serializes a message | |
| formatDump ($str) | |
| formats a string to be inserted into an HTML stream | |
| contractQname ($qname) | |
| contracts (changes namespace to prefix) a qualified name | |
| expandQname ($qname) | |
| expands (changes prefix to namespace) a qualified name | |
| getLocalPart ($str) | |
| returns the local part of a prefixed string returns the original string, if not prefixed | |
| getPrefix ($str) | |
| returns the prefix part of a prefixed string returns false, if not prefixed | |
| getNamespaceFromPrefix ($prefix) | |
| pass it a prefix, it returns a namespace | |
| getPrefixFromNamespace ($ns) | |
| returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace | |
| getmicrotime () | |
| returns the time in ODBC canonical form with microseconds | |
| varDump ($data) | |
| Returns a string with the output of var_dump. | |
| nusoap_base () | |
| constructor | |
| getGlobalDebugLevel () | |
| gets the global debug level, which applies to future instances | |
| setGlobalDebugLevel ($level) | |
| sets the global debug level, which applies to future instances | |
| getDebugLevel () | |
| gets the debug level for this instance | |
| setDebugLevel ($level) | |
| sets the debug level for this instance | |
| debug ($string) | |
| adds debug data to the instance debug string with formatting | |
| appendDebug ($string) | |
| adds debug data to the instance debug string without formatting | |
| clearDebug () | |
| clears the current debug data for this instance | |
| & | getDebug () |
| gets the current debug data for this instance | |
| & | getDebugAsXMLComment () |
| gets the current debug data for this instance as an XML comment this may change the contents of the debug data | |
| expandEntities ($val) | |
| expands entities, e.g. | |
| getError () | |
| returns error string if present | |
| setError ($str) | |
| sets error string | |
| isArraySimpleOrStruct ($val) | |
| detect if array is a simple array or a struct (associative array) | |
| serialize_val ($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded', $soapval=false) | |
| serializes PHP values in accordance w/ section 5. | |
| serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded', $encodingStyle='http://schemas.xmlsoap.org/soap/encoding/') | |
| serializes a message | |
| formatDump ($str) | |
| formats a string to be inserted into an HTML stream | |
| contractQname ($qname) | |
| contracts (changes namespace to prefix) a qualified name | |
| expandQname ($qname) | |
| expands (changes prefix to namespace) a qualified name | |
| getLocalPart ($str) | |
| returns the local part of a prefixed string returns the original string, if not prefixed | |
| getPrefix ($str) | |
| returns the prefix part of a prefixed string returns false, if not prefixed | |
| getNamespaceFromPrefix ($prefix) | |
| pass it a prefix, it returns a namespace | |
| getPrefixFromNamespace ($ns) | |
| returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace | |
| getmicrotime () | |
| returns the time in ODBC canonical form with microseconds | |
| varDump ($data) | |
| Returns a string with the output of var_dump. | |
| __toString () | |
| represents the object as a string | |
| nusoap_base () | |
| constructor | |
| getGlobalDebugLevel () | |
| gets the global debug level, which applies to future instances | |
| setGlobalDebugLevel ($level) | |
| sets the global debug level, which applies to future instances | |
| getDebugLevel () | |
| gets the debug level for this instance | |
| setDebugLevel ($level) | |
| sets the debug level for this instance | |
| debug ($string) | |
| adds debug data to the instance debug string with formatting | |
| appendDebug ($string) | |
| adds debug data to the instance debug string without formatting | |
| clearDebug () | |
| clears the current debug data for this instance | |
| & | getDebug () |
| gets the current debug data for this instance | |
| & | getDebugAsXMLComment () |
| gets the current debug data for this instance as an XML comment this may change the contents of the debug data | |
| expandEntities ($val) | |
| expands entities, e.g. | |
| getError () | |
| returns error string if present | |
| setError ($str) | |
| sets error string | |
| isArraySimpleOrStruct ($val) | |
| detect if array is a simple array or a struct (associative array) | |
| serialize_val ($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded', $soapval=false) | |
| serializes PHP values in accordance w/ section 5. | |
| serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded', $encodingStyle='http://schemas.xmlsoap.org/soap/encoding/') | |
| serializes a message | |
| formatDump ($str) | |
| formats a string to be inserted into an HTML stream | |
| contractQname ($qname) | |
| contracts (changes namespace to prefix) a qualified name | |
| expandQname ($qname) | |
| expands (changes prefix to namespace) a qualified name | |
| getLocalPart ($str) | |
| returns the local part of a prefixed string returns the original string, if not prefixed | |
| getPrefix ($str) | |
| returns the prefix part of a prefixed string returns false, if not prefixed | |
| getNamespaceFromPrefix ($prefix) | |
| pass it a prefix, it returns a namespace | |
| getPrefixFromNamespace ($ns) | |
| returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace | |
| getmicrotime () | |
| returns the time in ODBC canonical form with microseconds | |
| varDump ($data) | |
| Returns a string with the output of var_dump. | |
| __toString () | |
| represents the object as a string | |
soap_parser class parses SOAP XML messages into native PHP values
Backward compatibility.
public
public
Definition at line 4431 of file nusoap.php.
| soap_parser::buildVal | ( | $pos | ) |
builds response structures for compound values (arrays/structs) and scalars
| integer | $pos | position in node tree |
Reimplemented from nusoap_parser.
Definition at line 497 of file class.soap_parser.php.
References $n, $params, $parent, nusoap_base\debug(), decodeSimple(), and elseif().
Here is the call graph for this function:| soap_parser::buildVal | ( | $pos | ) |
builds response structures for compound values (arrays/structs)
| string | $pos | position in node tree private |
Reimplemented from nusoap_parser.
Definition at line 4865 of file nusoap.php.
References $params, nusoap_base\debug(), and elseif().
Referenced by end_element(), and soap_parser().
Here is the call graph for this function:
Here is the caller graph for this function:| soap_parser::buildVal | ( | $pos | ) |
builds response structures for compound values (arrays/structs) and scalars
| integer | $pos | position in node tree |
Reimplemented from nusoap_parser.
Definition at line 6294 of file nusoap.php.
References $n, $params, $parent, nusoap_base\debug(), decodeSimple(), and elseif().
Here is the call graph for this function:| soap_parser::character_data | ( | $parser, | |
| $data | |||
| ) |
element content handler
| resource | $parser | XML parser object |
| string | $data | element content private |
Reimplemented from nusoap_parser.
Definition at line 405 of file class.soap_parser.php.
| soap_parser::character_data | ( | $parser, | |
| $data | |||
| ) |
element content handler
| string | $parser | XML parser object |
| string | $data | element content private |
Reimplemented from nusoap_parser.
Definition at line 4768 of file nusoap.php.
| soap_parser::character_data | ( | $parser, | |
| $data | |||
| ) |
element content handler
| resource | $parser | XML parser object |
| string | $data | element content private |
Reimplemented from nusoap_parser.
Definition at line 6202 of file nusoap.php.
| soap_parser::decode_entities | ( | $text | ) |
decodes entities
| string | $text | string to translate private |
Definition at line 4813 of file nusoap.php.
| soap_parser::decodeSimple | ( | $value, | |
| $type, | |||
| $typens | |||
| ) |
decodes simple types into PHP variables
| string | $value | value to decode |
| string | $type | XML type to decode |
| string | $typens | XML type namespace to decode |
Reimplemented from nusoap_parser.
Definition at line 453 of file class.soap_parser.php.
References $type, and nusoap_base\debug().
Here is the call graph for this function:| soap_parser::decodeSimple | ( | $value, | |
| $type, | |||
| $typens | |||
| ) |
decodes simple types into PHP variables
| string | $value | value to decode |
| string | $type | XML type to decode |
| string | $typens | XML type namespace to decode private |
Reimplemented from nusoap_parser.
Definition at line 4828 of file nusoap.php.
References $type.
Referenced by buildVal(), and end_element().
Here is the caller graph for this function:| soap_parser::decodeSimple | ( | $value, | |
| $type, | |||
| $typens | |||
| ) |
decodes simple types into PHP variables
| string | $value | value to decode |
| string | $type | XML type to decode |
| string | $typens | XML type namespace to decode |
Reimplemented from nusoap_parser.
Definition at line 6250 of file nusoap.php.
References $type, and nusoap_base\debug().
Here is the call graph for this function:| soap_parser::end_element | ( | $parser, | |
| $name | |||
| ) |
end-element handler
| resource | $parser | XML parser object |
| string | $name | element name private |
Reimplemented from nusoap_parser.
Definition at line 301 of file class.soap_parser.php.
References $name, $parent, buildVal(), decodeSimple(), and elseif().
Here is the call graph for this function:| soap_parser::end_element | ( | $parser, | |
| $name | |||
| ) |
end-element handler
| string | $parser | XML parser object |
| string | $name | element name private |
Reimplemented from nusoap_parser.
Definition at line 4681 of file nusoap.php.
References $name, $parent, buildVal(), decodeSimple(), and elseif().
Here is the call graph for this function:| soap_parser::end_element | ( | $parser, | |
| $name | |||
| ) |
end-element handler
| resource | $parser | XML parser object |
| string | $name | element name private |
Reimplemented from nusoap_parser.
Definition at line 6098 of file nusoap.php.
References $name, $parent, buildVal(), decodeSimple(), and elseif().
Here is the call graph for this function:| soap_parser::get_response | ( | ) |
get the parsed message
Reimplemented from nusoap_parser.
Definition at line 430 of file class.soap_parser.php.
References $soapresponse.
| soap_parser::get_response | ( | ) |
get the parsed message
Reimplemented from nusoap_parser.
Definition at line 4793 of file nusoap.php.
References $soapresponse.
| soap_parser::get_response | ( | ) |
get the parsed message
Reimplemented from nusoap_parser.
Definition at line 6227 of file nusoap.php.
References $soapresponse.
| soap_parser::getHeaders | ( | ) |
get the parsed headers
Reimplemented from nusoap_parser.
Definition at line 440 of file class.soap_parser.php.
References $responseHeaders.
| soap_parser::getHeaders | ( | ) |
get the parsed headers
Reimplemented from nusoap_parser.
Definition at line 4803 of file nusoap.php.
References $responseHeaders.
| soap_parser::getHeaders | ( | ) |
get the parsed headers
Reimplemented from nusoap_parser.
Definition at line 6237 of file nusoap.php.
References $responseHeaders.
| soap_parser::soap_parser | ( | $xml, | |
$encoding = 'UTF-8', |
|||
$method = '', |
|||
$decode_utf8 = true |
|||
| ) |
constructor that actually does the parsing
| string | $xml | SOAP message |
| string | $encoding | character encoding scheme of message |
| string | $method | method for which XML is parsed (unused?) |
| string | $decode_utf8 | whether to decode UTF-8 to ISO-8859-1 public |
Definition at line 58 of file class.soap_parser.php.
References $decode_utf8, $err, $method, $res, $root_struct, $xml, $xml_encoding, buildVal(), nusoap_base\debug(), nusoap_base\nusoap_base(), and nusoap_base\setError().
Here is the call graph for this function:| soap_parser::soap_parser | ( | $xml, | |
$encoding = 'UTF-8', |
|||
$method = '', |
|||
$decode_utf8 = false |
|||
| ) |
constructor
| string | $xml | SOAP message |
| string | $encoding | character encoding scheme of message |
| string | $method | |
| string | $decode_utf8 | whether to decode UTF-8 to ISO-8859-1 public |
Definition at line 4475 of file nusoap.php.
References $decode_utf8, $err, $method, $root_struct, $xml, buildVal(), nusoap_base\debug(), and nusoap_base\setError().
Here is the call graph for this function:| soap_parser::soap_parser | ( | $xml, | |
$encoding = 'UTF-8', |
|||
$method = '', |
|||
$decode_utf8 = true |
|||
| ) |
constructor that actually does the parsing
| string | $xml | SOAP message |
| string | $encoding | character encoding scheme of message |
| string | $method | method for which XML is parsed (unused?) |
| string | $decode_utf8 | whether to decode UTF-8 to ISO-8859-1 public |
Definition at line 5855 of file nusoap.php.
References $decode_utf8, $err, $method, $res, $root_struct, $xml, $xml_encoding, buildVal(), nusoap_base\debug(), nusoap_base\nusoap_base(), and nusoap_base\setError().
Here is the call graph for this function:| soap_parser::start_element | ( | $parser, | |
| $name, | |||
| $attrs | |||
| ) |
start-element handler
| resource | $parser | XML parser object |
| string | $name | element name |
| array | $attrs | associative array of attributes private |
Reimplemented from nusoap_parser.
Definition at line 150 of file class.soap_parser.php.
References $default_namespace, $depth, $key, $name, $parent, $status, nusoap_base\$XMLSchemaVersion, nusoap_base\debug(), elseif(), nusoap_base\getLocalPart(), and nusoap_base\getPrefix().
Here is the call graph for this function:| soap_parser::start_element | ( | $parser, | |
| $name, | |||
| $attrs | |||
| ) |
start-element handler
| string | $parser | XML parser object |
| string | $name | element name |
| string | $attrs | associative array of attributes private |
Reimplemented from nusoap_parser.
Definition at line 4540 of file nusoap.php.
References $default_namespace, $depth, $key, $name, $parent, $status, nusoap_base\$XMLSchemaVersion, nusoap_base\debug(), elseif(), nusoap_base\getLocalPart(), and nusoap_base\getPrefix().
Here is the call graph for this function:| soap_parser::start_element | ( | $parser, | |
| $name, | |||
| $attrs | |||
| ) |
start-element handler
| resource | $parser | XML parser object |
| string | $name | element name |
| array | $attrs | associative array of attributes private |
Reimplemented from nusoap_parser.
Definition at line 5947 of file nusoap.php.
References $default_namespace, $depth, $key, $name, $parent, $status, nusoap_base\$XMLSchemaVersion, nusoap_base\debug(), elseif(), nusoap_base\getLocalPart(), and nusoap_base\getPrefix().
Here is the call graph for this function:| soap_parser::$body_position = 0 |
Definition at line 4457 of file nusoap.php.
| soap_parser::$debug_flag = true |
Definition at line 4454 of file nusoap.php.
| soap_parser::$decode_utf8 = false |
Definition at line 4464 of file nusoap.php.
Referenced by soap_parser().
| soap_parser::$default_namespace = '' |
Definition at line 4445 of file nusoap.php.
Referenced by start_element().
| soap_parser::$depth = 0 |
Definition at line 4444 of file nusoap.php.
Referenced by character_data(), and start_element().
| soap_parser::$depth_array = array() |
Definition at line 4453 of file nusoap.php.
| soap_parser::$document = '' |
Definition at line 4440 of file nusoap.php.
| soap_parser::$fault = false |
Definition at line 4449 of file nusoap.php.
| soap_parser::$fault_code = '' |
Definition at line 4450 of file nusoap.php.
| soap_parser::$fault_detail = '' |
Definition at line 4452 of file nusoap.php.
| soap_parser::$fault_str = '' |
Definition at line 4451 of file nusoap.php.
| soap_parser::$ids = array() |
Definition at line 4460 of file nusoap.php.
| soap_parser::$message = array() |
Definition at line 4447 of file nusoap.php.
| soap_parser::$method = '' |
Definition at line 4435 of file nusoap.php.
Referenced by soap_parser().
| soap_parser::$multirefs = array() |
Definition at line 4462 of file nusoap.php.
| soap_parser::$namespaces = array() |
Definition at line 4446 of file nusoap.php.
| soap_parser::$parent = '' |
Definition at line 4448 of file nusoap.php.
Referenced by buildVal(), end_element(), and start_element().
| soap_parser::$position = 0 |
Definition at line 4443 of file nusoap.php.
| soap_parser::$responseHeaders = '' |
Definition at line 4456 of file nusoap.php.
Referenced by getHeaders().
| soap_parser::$root_header = '' |
Definition at line 4439 of file nusoap.php.
| soap_parser::$root_struct = '' |
Definition at line 4436 of file nusoap.php.
Referenced by soap_parser().
| soap_parser::$root_struct_name = '' |
Definition at line 4437 of file nusoap.php.
| soap_parser::$root_struct_namespace = '' |
Definition at line 4438 of file nusoap.php.
| soap_parser::$soapresponse = NULL |
Definition at line 4455 of file nusoap.php.
Referenced by get_response().
| soap_parser::$status = '' |
Definition at line 4442 of file nusoap.php.
Referenced by start_element().
| soap_parser::$xml = '' |
Definition at line 4433 of file nusoap.php.
Referenced by soap_parser().
| soap_parser::$xml_encoding = '' |
Definition at line 4434 of file nusoap.php.
Referenced by soap_parser().