[ Index ]
 

Code source de Mantis 1.1.0rc3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/api/soap/nusoap/ -> class.soap_parser.php (sommaire)

(pas de description)

Poids: 639 lignes (25 kb)
Inclus ou requis: 2 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 2 classes

nusoap_parser:: (10 méthodes):
  nusoap_parser()
  start_element()
  end_element()
  character_data()
  get_response()
  get_soapbody()
  get_soapheader()
  getHeaders()
  decodeSimple()
  buildVal()

soap_parser:: (0 méthodes):


Classe: nusoap_parser  - X-Ref

nusoap_parser class parses SOAP XML messages into native PHP values

nusoap_parser($xml,$encoding='UTF-8',$method='',$decode_utf8=true)   X-Ref
constructor that actually does the parsing

param: string $xml SOAP message
param: string $encoding character encoding scheme of message
param: string $method method for which XML is parsed (unused?)
param: string $decode_utf8 whether to decode UTF-8 to ISO-8859-1

start_element($parser, $name, $attrs)   X-Ref
start-element handler

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

end_element($parser, $name)   X-Ref
end-element handler

param: resource $parser XML parser object
param: string $name element name

character_data($parser, $data)   X-Ref
element content handler

param: resource $parser XML parser object
param: string $data element content

get_response()   X-Ref
get the parsed message (SOAP Body)

return: mixed

get_soapbody()   X-Ref
get the parsed SOAP Body (NULL if there was none)

return: mixed

get_soapheader()   X-Ref
get the parsed SOAP Header (NULL if there was none)

return: mixed

getHeaders()   X-Ref
get the unparsed SOAP Header

return: string XML or empty if no Header

decodeSimple($value, $type, $typens)   X-Ref
decodes simple types into PHP variables

param: string $value value to decode
param: string $type XML type to decode
param: string $typens XML type namespace to decode
return: mixed PHP value

buildVal($pos)   X-Ref
builds response structures for compound values (arrays/structs)
and scalars

param: integer $pos position in node tree
return: mixed    PHP value

Classe: soap_parser  - X-Ref

Backward compatibility



Généré le : Thu Nov 29 09:42:17 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics