Documentation TYPO3 par Ameos

soap_parser Class Reference

Inheritance diagram for soap_parser:
[legend]
Collaboration diagram for soap_parser:
[legend]
List of all members.

Public Member Functions

 soap_parser ($xml, $encoding='UTF-8', $method='', $decode_utf8=true)
 start_element ($parser, $name, $attrs)
 end_element ($parser, $name)
 character_data ($parser, $data)
 get_response ()
 getHeaders ()
 decodeSimple ($value, $type, $typens)
 buildVal ($pos)

Public Attributes

 $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
 $responseHeaders = ''
 $body_position = 0
 $ids = array()
 $multirefs = array()
 $decode_utf8 = true

Detailed Description

soap_parser class parses SOAP XML messages into native PHP values

Author:
Dietrich Ayala <dietrich@ganx4.com>
Version:
Id
class.nusoap.php 1421 2006-04-10 09:27:15Z mundaun
public

Definition at line 4745 of file class.nusoap.php.


Member Function Documentation

soap_parser::soap_parser ( xml,
encoding = 'UTF-8',
method = '',
decode_utf8 = true 
)

constructor that actually does the parsing

Parameters:
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 4789 of file class.nusoap.php.

References $decode_utf8, $method, $xml, $xml_encoding, buildVal(), character_data(), nusoap_base::debug(), end_element(), nusoap_base::setError(), and start_element().

soap_parser::start_element ( parser,
name,
attrs 
)

start-element handler

Parameters:
resource $parser XML parser object
string $name element name
array $attrs associative array of attributes private

Definition at line 4881 of file class.nusoap.php.

References nusoap_base::debug(), nusoap_base::getLocalPart(), and nusoap_base::getPrefix().

Referenced by soap_parser().

soap_parser::end_element ( parser,
name 
)

end-element handler

Parameters:
resource $parser XML parser object
string $name element name private

Definition at line 5032 of file class.nusoap.php.

Referenced by soap_parser().

soap_parser::character_data ( parser,
data 
)

element content handler

Parameters:
resource $parser XML parser object
string $data element content private

Definition at line 5136 of file class.nusoap.php.

Referenced by soap_parser().

soap_parser::get_response (  ) 

get the parsed message

Returns:
mixed public

Definition at line 5161 of file class.nusoap.php.

soap_parser::getHeaders (  ) 

get the parsed headers

Returns:
string XML or empty if no headers public

Definition at line 5171 of file class.nusoap.php.

soap_parser::decodeSimple ( value,
type,
typens 
)

decodes simple types into PHP variables

Parameters:
string $value value to decode
string $type XML type to decode
string $typens XML type namespace to decode
Returns:
mixed PHP value private

Definition at line 5184 of file class.nusoap.php.

soap_parser::buildVal ( pos  ) 

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

Parameters:
integer $pos position in node tree
Returns:
mixed PHP value private

Definition at line 5228 of file class.nusoap.php.

Referenced by soap_parser().


The documentation for this class was generated from the following file:


Généré par L'expert TYPO3 avec  doxygen 1.4.6