ILIAS
eassessment Revision 61809
|
nusoap_parser class parses SOAP XML messages into native PHP values More...
Public Member Functions | |
nusoap_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 (SOAP Body) | |
get_soapbody () | |
get the parsed SOAP Body (NULL if there was none) | |
get_soapheader () | |
get the parsed SOAP Header (NULL if there was none) | |
getHeaders () | |
get the unparsed SOAP Header | |
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_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', $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 |
Data Fields | |
$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 | |
Data Fields inherited from nusoap_base | |
$title = 'NuSOAP' | |
$version = '0.6.7' | |
$revision = '$Revision: 11808 $' | |
$error_str = false | |
$debug_str = '' | |
$charencoding = true | |
$XMLSchemaVersion = 'http://www.w3.org/2001/XMLSchema' | |
$soap_defencoding = 'UTF-8' | |
$namespaces | |
$usedNamespaces = array() | |
$typemap | |
$xmlEntities | |
$debugLevel |
nusoap_parser class parses SOAP XML messages into native PHP values
public
Definition at line 6406 of file nusoap.php.
nusoap_parser::buildVal | ( | $pos | ) |
builds response structures for compound values (arrays/structs) and scalars
integer | $pos | position in node tree |
Reimplemented in soap_parser.
Definition at line 6915 of file nusoap.php.
References $parent, $pos, $ret, nusoap_base\appendDebug(), nusoap_base\debug(), decodeSimple(), and nusoap_base\varDump().
Referenced by end_element(), and nusoap_parser().
nusoap_parser::character_data | ( | $parser, | |
$data | |||
) |
element content handler
resource | $parser | XML parser object |
string | $data | element content private |
Reimplemented in soap_parser.
Definition at line 6802 of file nusoap.php.
References $data, $depth, and $pos.
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 |
Reimplemented in soap_parser.
Definition at line 6871 of file nusoap.php.
References $type, and 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 private |
Reimplemented in soap_parser.
Definition at line 6698 of file nusoap.php.
References $name, $parent, $pos, buildVal(), and decodeSimple().
nusoap_parser::get_response | ( | ) |
get the parsed message (SOAP Body)
Reimplemented in soap_parser.
Definition at line 6828 of file nusoap.php.
References $soapresponse.
nusoap_parser::get_soapbody | ( | ) |
get the parsed SOAP Body (NULL if there was none)
Definition at line 6838 of file nusoap.php.
References $soapresponse.
nusoap_parser::get_soapheader | ( | ) |
get the parsed SOAP Header (NULL if there was none)
Definition at line 6848 of file nusoap.php.
References $soapheader.
nusoap_parser::getHeaders | ( | ) |
get the unparsed SOAP Header
Reimplemented in soap_parser.
Definition at line 6858 of file nusoap.php.
References $responseHeaders.
nusoap_parser::nusoap_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 6451 of file nusoap.php.
References $decode_utf8, $method, $res, $root_header, $root_struct, $xml, $xml_encoding, buildVal(), nusoap_base\debug(), nusoap_base\nusoap_base(), and nusoap_base\setError().
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 private |
Reimplemented in soap_parser.
Definition at line 6543 of file nusoap.php.
References $default_namespace, $depth, $name, $parent, $pos, $status, nusoap_base\$XMLSchemaVersion, nusoap_base\debug(), nusoap_base\getLocalPart(), and nusoap_base\getPrefix().
nusoap_parser::$body_position = 0 |
Definition at line 6433 of file nusoap.php.
nusoap_parser::$debug_flag = true |
Definition at line 6429 of file nusoap.php.
nusoap_parser::$decode_utf8 = true |
Definition at line 6440 of file nusoap.php.
Referenced by nusoap_parser().
nusoap_parser::$default_namespace = '' |
Definition at line 6420 of file nusoap.php.
Referenced by start_element().
nusoap_parser::$depth = 0 |
Definition at line 6419 of file nusoap.php.
Referenced by character_data(), and start_element().
nusoap_parser::$depth_array = array() |
Definition at line 6428 of file nusoap.php.
nusoap_parser::$document = '' |
Definition at line 6415 of file nusoap.php.
nusoap_parser::$fault = false |
Definition at line 6424 of file nusoap.php.
nusoap_parser::$fault_code = '' |
Definition at line 6425 of file nusoap.php.
nusoap_parser::$fault_detail = '' |
Definition at line 6427 of file nusoap.php.
nusoap_parser::$fault_str = '' |
Definition at line 6426 of file nusoap.php.
nusoap_parser::$ids = array() |
Definition at line 6436 of file nusoap.php.
nusoap_parser::$message = array() |
Definition at line 6422 of file nusoap.php.
nusoap_parser::$method = '' |
Definition at line 6410 of file nusoap.php.
Referenced by nusoap_parser().
nusoap_parser::$multirefs = array() |
Definition at line 6438 of file nusoap.php.
nusoap_parser::$namespaces = array() |
Definition at line 6421 of file nusoap.php.
nusoap_parser::$parent = '' |
Definition at line 6423 of file nusoap.php.
Referenced by buildVal(), end_element(), and start_element().
nusoap_parser::$position = 0 |
Definition at line 6418 of file nusoap.php.
nusoap_parser::$responseHeaders = '' |
Definition at line 6432 of file nusoap.php.
Referenced by getHeaders().
nusoap_parser::$root_header = '' |
Definition at line 6414 of file nusoap.php.
Referenced by nusoap_parser().
nusoap_parser::$root_struct = '' |
Definition at line 6411 of file nusoap.php.
Referenced by nusoap_parser().
nusoap_parser::$root_struct_name = '' |
Definition at line 6412 of file nusoap.php.
nusoap_parser::$root_struct_namespace = '' |
Definition at line 6413 of file nusoap.php.
nusoap_parser::$soapheader = NULL |
Definition at line 6431 of file nusoap.php.
Referenced by get_soapheader().
nusoap_parser::$soapresponse = NULL |
Definition at line 6430 of file nusoap.php.
Referenced by get_response(), and get_soapbody().
nusoap_parser::$status = '' |
Definition at line 6417 of file nusoap.php.
Referenced by start_element().
nusoap_parser::$xml = '' |
Definition at line 6408 of file nusoap.php.
Referenced by nusoap_parser().
nusoap_parser::$xml_encoding = '' |
Definition at line 6409 of file nusoap.php.
Referenced by nusoap_parser().