ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
nusoap_parser class parses SOAP XML messages into native PHP values More...
Public Member Functions | |
__construct ($xml, $encoding='UTF-8', $method='', $decode_utf8=true) | |
constructor that actually does the parsing More... | |
start_element ($parser, $name, $attrs) | |
start-element handler More... | |
end_element ($parser, $name) | |
end-element handler More... | |
character_data ($parser, $data) | |
element content handler More... | |
get_response () | |
get the parsed message (SOAP Body) More... | |
get_soapbody () | |
get the parsed SOAP Body (NULL if there was none) More... | |
get_soapheader () | |
get the parsed SOAP Header (NULL if there was none) More... | |
getHeaders () | |
get the unparsed SOAP Header More... | |
decodeSimple ($value, $type, $typens) | |
decodes simple types into PHP variables More... | |
buildVal ($pos) | |
builds response structures for compound values (arrays/structs) and scalars More... | |
![]() | |
__construct () | |
constructor More... | |
getGlobalDebugLevel () | |
gets the global debug level, which applies to future instances More... | |
setGlobalDebugLevel ($level) | |
sets the global debug level, which applies to future instances More... | |
getDebugLevel () | |
gets the debug level for this instance More... | |
setDebugLevel ($level) | |
sets the debug level for this instance More... | |
debug ($string) | |
adds debug data to the instance debug string with formatting More... | |
appendDebug ($string) | |
adds debug data to the instance debug string without formatting More... | |
clearDebug () | |
clears the current debug data for this instance More... | |
& | getDebug () |
gets the current debug data for this instance More... | |
& | getDebugAsXMLComment () |
gets the current debug data for this instance as an XML comment this may change the contents of the debug data More... | |
expandEntities ($val) | |
expands entities, e.g. More... | |
getError () | |
returns error string if present More... | |
setError ($str) | |
sets error string More... | |
isArraySimpleOrStruct ($val) | |
detect if array is a simple array or a struct (associative array) More... | |
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. More... | |
serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded', $encodingStyle='http://schemas.xmlsoap.org/soap/encoding/') | |
serializes a message More... | |
formatDump ($str) | |
formats a string to be inserted into an HTML stream More... | |
contractQname ($qname) | |
contracts (changes namespace to prefix) a qualified name More... | |
expandQname ($qname) | |
expands (changes prefix to namespace) a qualified name More... | |
getLocalPart ($str) | |
returns the local part of a prefixed string returns the original string, if not prefixed More... | |
getPrefix ($str) | |
returns the prefix part of a prefixed string returns false, if not prefixed More... | |
getNamespaceFromPrefix ($prefix) | |
pass it a prefix, it returns a namespace More... | |
getPrefixFromNamespace ($ns) | |
returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace More... | |
getmicrotime () | |
returns the time in ODBC canonical form with microseconds More... | |
varDump ($data) | |
Returns a string with the output of var_dump. More... | |
__toString () | |
represents the object as a string More... | |
Data Fields | |
$methodNamespace | |
$parser | |
$xml = '' | |
$xml_encoding = '' | |
$method = '' | |
$root_struct = '' | |
$root_struct_name = '' | |
$root_struct_namespace = '' | |
$root_header = '' | |
$document = '' | |
$status = '' | |
$position = 0 | |
$depth = 0 | |
$default_namespace = '' | |
$namespaces = array() | |
$message = array() | |
$parent = '' | |
$fault = false | |
$fault_code = '' | |
$fault_str = '' | |
$fault_detail = '' | |
$depth_array = array() | |
$debug_flag = true | |
$soapresponse = null | |
$soapheader = null | |
$responseHeaders = '' | |
$body_position = 0 | |
$ids = array() | |
$multirefs = array() | |
$decode_utf8 = true | |
![]() | |
$title = 'NuSOAP' | |
$version = '0.7.3' | |
$revision = '$Revision$' | |
$error_str = '' | |
$debug_str = '' | |
$charencoding = true | |
$debugLevel | |
$XMLSchemaVersion = 'http://www.w3.org/2001/XMLSchema' | |
$soap_defencoding = 'UTF-8' | |
$namespaces | |
$usedNamespaces = array() | |
$typemap | |
$xmlEntities | |
nusoap_parser class parses SOAP XML messages into native PHP values
Definition at line 6517 of file nusoap.php.
nusoap_parser::__construct | ( | $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 @access public |
Definition at line 6564 of file nusoap.php.
References $decode_utf8, $id, $method, $res, $root_header, $root_struct, $xml, $xml_encoding, ILIAS\GlobalScreen\Provider\__construct(), buildVal(), character_data(), nusoap_base\debug(), end_element(), nusoap_base\setError(), and start_element().
nusoap_parser::buildVal | ( | $pos | ) |
builds response structures for compound values (arrays/structs) and scalars
integer | $pos | position in node tree |
Definition at line 7038 of file nusoap.php.
References $c, $params, $parent, nusoap_base\appendDebug(), nusoap_base\debug(), decodeSimple(), and nusoap_base\varDump().
Referenced by __construct(), and end_element().
nusoap_parser::character_data | ( | $parser, | |
$data | |||
) |
element content handler
resource | $parser | XML parser object |
string | $data | element content @access private |
Definition at line 6919 of file nusoap.php.
Referenced by __construct().
nusoap_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 |
Definition at line 6993 of file nusoap.php.
References nusoap_base\debug().
Referenced by buildVal(), and end_element().
nusoap_parser::end_element | ( | $parser, | |
$name | |||
) |
end-element handler
resource | $parser | XML parser object |
string | $name | element name @access private |
Definition at line 6814 of file nusoap.php.
References $id, $parent, buildVal(), and decodeSimple().
Referenced by __construct().
nusoap_parser::get_response | ( | ) |
get the parsed message (SOAP Body)
Definition at line 6946 of file nusoap.php.
References $soapresponse.
nusoap_parser::get_soapbody | ( | ) |
get the parsed SOAP Body (NULL if there was none)
Definition at line 6957 of file nusoap.php.
References $soapresponse.
nusoap_parser::get_soapheader | ( | ) |
get the parsed SOAP Header (NULL if there was none)
Definition at line 6968 of file nusoap.php.
References $soapheader.
nusoap_parser::getHeaders | ( | ) |
get the unparsed SOAP Header
Definition at line 6979 of file nusoap.php.
References $responseHeaders.
nusoap_parser::start_element | ( | $parser, | |
$name, | |||
$attrs | |||
) |
start-element handler
resource | $parser | XML parser object |
string | $name | element name |
array | $attrs | associative array of attributes @access private |
Definition at line 6658 of file nusoap.php.
References $default_namespace, $depth, $parent, $status, nusoap_base\$XMLSchemaVersion, nusoap_base\debug(), nusoap_base\getLocalPart(), and nusoap_base\getPrefix().
Referenced by __construct().
nusoap_parser::$body_position = 0 |
Definition at line 6546 of file nusoap.php.
nusoap_parser::$debug_flag = true |
Definition at line 6542 of file nusoap.php.
nusoap_parser::$decode_utf8 = true |
Definition at line 6553 of file nusoap.php.
Referenced by __construct().
nusoap_parser::$default_namespace = '' |
Definition at line 6533 of file nusoap.php.
Referenced by start_element().
nusoap_parser::$depth = 0 |
Definition at line 6532 of file nusoap.php.
Referenced by character_data(), and start_element().
nusoap_parser::$depth_array = array() |
Definition at line 6541 of file nusoap.php.
nusoap_parser::$document = '' |
Definition at line 6528 of file nusoap.php.
nusoap_parser::$fault = false |
Definition at line 6537 of file nusoap.php.
nusoap_parser::$fault_code = '' |
Definition at line 6538 of file nusoap.php.
nusoap_parser::$fault_detail = '' |
Definition at line 6540 of file nusoap.php.
nusoap_parser::$fault_str = '' |
Definition at line 6539 of file nusoap.php.
nusoap_parser::$ids = array() |
Definition at line 6549 of file nusoap.php.
nusoap_parser::$message = array() |
Definition at line 6535 of file nusoap.php.
nusoap_parser::$method = '' |
Definition at line 6523 of file nusoap.php.
Referenced by __construct().
nusoap_parser::$methodNamespace |
Definition at line 6519 of file nusoap.php.
nusoap_parser::$multirefs = array() |
Definition at line 6551 of file nusoap.php.
nusoap_parser::$namespaces = array() |
Definition at line 6534 of file nusoap.php.
nusoap_parser::$parent = '' |
Definition at line 6536 of file nusoap.php.
Referenced by buildVal(), end_element(), and start_element().
nusoap_parser::$parser |
Definition at line 6520 of file nusoap.php.
nusoap_parser::$position = 0 |
Definition at line 6531 of file nusoap.php.
nusoap_parser::$responseHeaders = '' |
Definition at line 6545 of file nusoap.php.
Referenced by getHeaders().
nusoap_parser::$root_header = '' |
Definition at line 6527 of file nusoap.php.
Referenced by __construct().
nusoap_parser::$root_struct = '' |
Definition at line 6524 of file nusoap.php.
Referenced by __construct().
nusoap_parser::$root_struct_name = '' |
Definition at line 6525 of file nusoap.php.
nusoap_parser::$root_struct_namespace = '' |
Definition at line 6526 of file nusoap.php.
nusoap_parser::$soapheader = null |
Definition at line 6544 of file nusoap.php.
Referenced by get_soapheader().
nusoap_parser::$soapresponse = null |
Definition at line 6543 of file nusoap.php.
Referenced by get_response(), and get_soapbody().
nusoap_parser::$status = '' |
Definition at line 6530 of file nusoap.php.
Referenced by start_element().
nusoap_parser::$xml = '' |
Definition at line 6521 of file nusoap.php.
Referenced by __construct().
nusoap_parser::$xml_encoding = '' |
Definition at line 6522 of file nusoap.php.
Referenced by __construct().