Class nusoap_parser

Description

nusoap_parser class parses SOAP XML messages into native PHP values

Located in /nusoap.php (line 6310)

nusoap_base
   |
   --nusoap_parser
Direct descendents
Class Description
 class soap_parser Backward compatibility
Variable Summary
Method Summary
 nusoap_parser nusoap_parser (string $xml, [string $encoding = 'UTF-8'], [string $method = ''], [string $decode_utf8 = true])
 mixed buildVal (integer $pos)
 void character_data (resource $parser, string $data)
 mixed decodeSimple (string $value, string $type, string $typens)
 void end_element (resource $parser, string $name)
 string getHeaders ()
 mixed get_response ()
 mixed get_soapbody ()
 mixed get_soapheader ()
 void start_element (resource $parser, string $name, array $attrs)
Variables
mixed $body_position = 0 (line 6337)
mixed $debug_flag = true (line 6333)
mixed $decode_utf8 = true (line 6344)
mixed $default_namespace = '' (line 6324)
mixed $depth = 0 (line 6323)
mixed $depth_array = array() (line 6332)
mixed $document = '' (line 6319)
mixed $fault = false (line 6328)
mixed $fault_code = '' (line 6329)
mixed $fault_detail = '' (line 6331)
mixed $fault_str = '' (line 6330)
mixed $ids = array() (line 6340)
mixed $message = array() (line 6326)
mixed $method = '' (line 6314)
mixed $multirefs = array() (line 6342)
mixed $namespaces = array() (line 6325)

Redefinition of:
nusoap_base::$namespaces
namespaces in an array of prefix => uri
mixed $parent = '' (line 6327)
mixed $position = 0 (line 6322)
mixed $responseHeaders = '' (line 6336)
mixed $root_header = '' (line 6318)
mixed $root_struct = '' (line 6315)
mixed $root_struct_name = '' (line 6316)
mixed $root_struct_namespace = '' (line 6317)
mixed $soapheader = NULL (line 6335)
mixed $soapresponse = NULL (line 6334)
mixed $status = '' (line 6321)
mixed $xml = '' (line 6312)
mixed $xml_encoding = '' (line 6313)

Inherited Variables

Inherited from nusoap_base

nusoap_base::$charencoding
nusoap_base::$debugLevel
nusoap_base::$debug_str
nusoap_base::$error_str
nusoap_base::$revision
nusoap_base::$soap_defencoding
nusoap_base::$title
nusoap_base::$typemap
nusoap_base::$usedNamespaces
nusoap_base::$version
nusoap_base::$xmlEntities
nusoap_base::$XMLSchemaVersion
Methods
Constructor nusoap_parser (line 6355)

constructor that actually does the parsing

  • access: public
nusoap_parser nusoap_parser (string $xml, [string $encoding = 'UTF-8'], [string $method = ''], [string $decode_utf8 = true])
  • 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
buildVal (line 6819)

builds response structures for compound values (arrays/structs) and scalars

  • return: PHP value
  • access: private
mixed buildVal (integer $pos)
  • integer $pos: position in node tree
character_data (line 6706)

element content handler

  • access: private
void character_data (resource $parser, string $data)
  • resource $parser: XML parser object
  • string $data: element content
decodeSimple (line 6775)

decodes simple types into PHP variables

  • return: PHP value
  • access: private
mixed decodeSimple (string $value, string $type, string $typens)
  • string $value: value to decode
  • string $type: XML type to decode
  • string $typens: XML type namespace to decode
end_element (line 6602)

end-element handler

  • access: private
void end_element (resource $parser, string $name)
  • resource $parser: XML parser object
  • string $name: element name
getHeaders (line 6762)

get the unparsed SOAP Header

  • return: XML or empty if no Header
  • access: public
string getHeaders ()
get_response (line 6732)

get the parsed message (SOAP Body)

  • deprecated: use get_soapbody instead
  • access: public
mixed get_response ()
get_soapbody (line 6742)

get the parsed SOAP Body (NULL if there was none)

  • access: public
mixed get_soapbody ()
get_soapheader (line 6752)

get the parsed SOAP Header (NULL if there was none)

  • access: public
mixed get_soapheader ()
start_element (line 6447)

start-element handler

  • access: private
void start_element (resource $parser, string $name, array $attrs)
  • resource $parser: XML parser object
  • string $name: element name
  • array $attrs: associative array of attributes

Inherited Methods

Inherited From nusoap_base

 nusoap_base::nusoap_base()
 nusoap_base::appendDebug()
 nusoap_base::clearDebug()
 nusoap_base::contractQname()
 nusoap_base::debug()
 nusoap_base::expandEntities()
 nusoap_base::expandQname()
 nusoap_base::formatDump()
 nusoap_base::getDebug()
 nusoap_base::getDebugAsXMLComment()
 nusoap_base::getDebugLevel()
 nusoap_base::getError()
 nusoap_base::getGlobalDebugLevel()
 nusoap_base::getLocalPart()
 nusoap_base::getmicrotime()
 nusoap_base::getNamespaceFromPrefix()
 nusoap_base::getPrefix()
 nusoap_base::getPrefixFromNamespace()
 nusoap_base::isArraySimpleOrStruct()
 nusoap_base::serializeEnvelope()
 nusoap_base::serialize_val()
 nusoap_base::setDebugLevel()
 nusoap_base::setError()
 nusoap_base::setGlobalDebugLevel()
 nusoap_base::varDump()
 nusoap_base::__toString()

Documentation generated on Tue, 06 Nov 2007 10:36:32 -0500 by phpDocumentor 1.3.0RC3