[ Index ]
 

Code source de Cr@wltr@ck 2.2.1

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/php/ -> searchenginespositionrefresh.php (sommaire)

(pas de description)

Poids: 2174 lignes (72 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 2 fichiers
 include/configconnect.php
 include/functions.php

Définit 4 classes

nusoap_base:: (9 méthodes):
  debug()
  getError()
  setError()
  serialize_val()
  serializeEnvelope()
  formatDump()
  getLocalPart()
  getPrefix()
  varDump()

soap_transport_http:: (8 méthodes):
  soap_transport_http()
  setCredentials()
  setSOAPAction()
  setProxy()
  send()
  sendHTTPS()
  setEncoding()
  decodeChunked()

soap_parser:: (8 méthodes):
  soap_parser()
  start_element()
  end_element()
  character_data()
  get_response()
  getHeaders()
  decode_entities()
  buildVal()

soapclientct:: (13 méthodes):
  soapclientct()
  call()
  getOperationData()
  send()
  parseResponse()
  setHeaders()
  getHeaders()
  setHTTPProxy()
  setCredentials()
  setHTTPEncoding()
  getProxy()
  makeXMLTree()
  composeArray()


Classe: nusoap_base  - X-Ref

debug($string)   X-Ref
adds debug data to the class level debug string

param: string $string debug data

getError()   X-Ref
returns error string if present

return: boolean $string error string

setError($str)   X-Ref
sets error string

return: boolean $string error string

serialize_val($val,$name=false,$type=false,$name_ns=false,$type_ns=false,$attributes=false)   X-Ref
serializes PHP values in accordance w/ section 5

return: string

serializeEnvelope($body,$headers=false,$namespaces=array()   X-Ref
serialize message

param: string body
param: string headers
param: array namespaces
return: string message

formatDump($str)   X-Ref
Pas de description

getLocalPart($str)   X-Ref
returns the local part of a prefixed string
returns the original string, if not prefixed

param: string
return: string

getPrefix($str)   X-Ref
returns the prefix part of a prefixed string
returns false, if not prefixed

param: string
return: mixed

varDump($data)   X-Ref
Pas de description

Classe: soap_transport_http  - X-Ref

transport class for sending/receiving data via HTTP and HTTPS
NOTE: PHP must be compiled with the CURL extension for HTTPS support

soap_transport_http($url)   X-Ref
constructor


setCredentials($username, $password)   X-Ref
if authenticating, set user credentials here

param: string $user
param: string $pass

setSOAPAction($soapaction)   X-Ref
set the soapaction value

param: string $soapaction

setProxy($proxyhost, $proxyport)   X-Ref
set proxy info here

param: string $proxyhost
param: string $proxyport

send($data, $timeout=0)   X-Ref
send the SOAP message via HTTP

param: string $data message data
param: integer $timeout set timeout in seconds
return: string data

sendHTTPS($data, $timeout=0)   X-Ref
send the SOAP message via HTTPS 1.0 using CURL

param: string $msg message data
param: integer $timeout set timeout in seconds
return: string data

setEncoding($enc='gzip, deflate')   X-Ref
Pas de description

decodeChunked($buffer)   X-Ref
Pas de description

Classe: soap_parser  - X-Ref

soap_parser class parses SOAP XML messages into native PHP values

soap_parser($xml,$encoding='UTF-8',$method='')   X-Ref
constructor

param: string $xml SOAP message
param: string $encoding character encoding scheme of message

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

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

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

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

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

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

get_response()   X-Ref
get the parsed message

return: mixed

getHeaders()   X-Ref
get the parsed headers

return: string XML or empty if no headers

decode_entities($text)   X-Ref
decodes entities

param: string $text string to translate

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

param: string $pos position in node tree

Classe: soapclientct  - X-Ref

soapclientct higher level class for easy usage.

usage:

// instantiate client with server info
$soapclientct = new soapclientct( string path [ ,boolean wsdl] );

// call method, get results
echo $soapclientct->call( string methodname [ ,array parameters] );

// bye bye client
unset($soapclientct);

soapclientct($endpoint,$wsdl = false)   X-Ref
constructor

param: string $endpoint SOAP server or WSDL URL
param: bool $wsdl optional, set to true if using WSDL
param: int $portName optional portName in WSDL document

call($operation,$params=array()   X-Ref
calls method, returns PHP native type

param: string $method SOAP server URL or path
param: array $params array of parameters, can be associative or not
param: string $namespace optional method namespace
param: string $soapAction optional SOAPAction value
param: boolean $headers optional array of soapval objects for headers
return: mixed

getOperationData($operation)   X-Ref
get available data pertaining to an operation

param: string $operation operation name
return: array array of data pertaining to the operation

send($msg, $soapaction = '', $timeout=0)   X-Ref
send the SOAP message

Note: if the operation has multiple return values
the return value of this method will be an array
of those values.

param: string $msg a SOAPx4 soapmsg object
param: string $soapaction SOAPAction value
param: integer $timeout set timeout in seconds
return: mixed native PHP types.

parseResponse($data)   X-Ref
processes SOAP message returned from server

param: string unprocessed response data from server
return: mixed value of the message, decoded into a PHP type

setHeaders($headers)   X-Ref
set the SOAP headers

param: $headers string XML

getHeaders()   X-Ref
get the response headers

return: mixed object SOAPx4 soapval object or empty if no headers

setHTTPProxy($proxyhost, $proxyport)   X-Ref
set proxy info here

param: string $proxyhost
param: string $proxyport

setCredentials($username, $password)   X-Ref
if authenticating, set user credentials here

param: string $username
param: string $password

setHTTPEncoding($enc='gzip, deflate')   X-Ref
use HTTP encoding

param: string $enc

getProxy()   X-Ref
dynamically creates proxy class, allowing user to directly call methods from wsdl

return: object soap_proxy object

makeXMLTree($data)   X-Ref
Pas de description

composeArray($array, $elements, $value=array()   X-Ref
Pas de description



Généré le : Thu Sep 6 14:14:11 2007 par Balluche grâce à PHPXref 0.7