Class soap_parser

Description

soap_parser class parses SOAP XML messages into native PHP values

  • access: public
  • version: $Id: nusoap.php,v 1.94 2005/08/04 01:27:42 snichol Exp $
  • author: Dietrich Ayala <dietrich@ganx4.com>

Located in /nusoap.php (line 5715)

nusoap_base
   |
   --soap_parser
Variable Summary
Method Summary
 soap_parser soap_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 ()
 void start_element (resource $parser, string $name, array $attrs)
Variables
mixed $body_position = 0 (line 5741)
mixed $debug_flag = true (line 5738)
mixed $decode_utf8 = true (line 5748)
mixed $default_namespace = '' (line 5729)
mixed $depth = 0 (line 5728)
mixed $depth_array = array() (line 5737)
mixed $document = '' (line 5724)
mixed $fault = false (line 5733)
mixed $fault_code = '' (line 5734)
mixed $fault_detail = '' (line 5736)
mixed $fault_str = '' (line 5735)
mixed $ids = array() (line 5744)
mixed $message = array() (line 5731)
mixed $method = '' (line 5719)
mixed $multirefs = array() (line 5746)
mixed $namespaces = array() (line 5730)

Redefinition of:
nusoap_base::$namespaces
namespaces in an array of prefix => uri
mixed $parent = '' (line 5732)
mixed $position = 0 (line 5727)
mixed $responseHeaders = '' (line 5740)
mixed $root_header = '' (line 5723)
mixed $root_struct = '' (line 5720)
mixed $root_struct_name = '' (line 5721)
mixed $root_struct_namespace = '' (line 5722)
mixed $soapresponse = NULL (line 5739)
mixed $status = '' (line 5726)
mixed $xml = '' (line 5717)
mixed $xml_encoding = '' (line 5718)

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 soap_parser (line 5759)

constructor that actually does the parsing

  • access: public
soap_parser soap_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 6198)

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 6106)

element content handler

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

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 6002)

end-element handler

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

get the parsed headers

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

get the parsed message

  • access: public
mixed get_response ()
start_element (line 5851)

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()

Documentation generated on Wed, 3 Aug 2005 21:29:38 -0400 by phpDocumentor 1.3.0RC3