Class soap_transport_http

Description

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

  • access: public
  • version: $Id: class.soap_transport_http.php,v 1.57 2005/07/27 19:24:42 snichol Exp $
  • author: Dietrich Ayala <dietrich@ganx4.com>

Located in /core/nusoap/lib/class.soap_transport_http.php (line 14)

nusoap_base
   |
   --soap_transport_http
Variable Summary
Method Summary
soap_transport_http soap_transport_http (mixed $url)
void buildPayload (mixed $data, [mixed $cookie_str = ''])
void connect (mixed $connection_timeout, [mixed $response_timeout = 30])
string decodeChunked (string $buffer, string $lb)
void getResponse ()
string send (string $data, integer $timeout, [integer $response_timeout = 30], [array $cookies = NULL])
string sendHTTPS (mixed $data, integer $timeout, [integer $response_timeout = 30], array $cookies, string $msg)
void sendRequest (mixed $data, [mixed $cookies = NULL])
void setContentType (mixed $type, [mixed $charset = false])
void setCredentials (string $username, string $password, [string $authtype = 'basic'], [array $digestRequest = array()], [array $certRequest = array()])
void setEncoding ([string $enc = 'gzip, deflate'])
void setProxy (string $proxyhost, string $proxyport, [string $proxyusername = ''], [string $proxypassword = ''])
void setSOAPAction (string $soapaction)
void setURL (mixed $url)
Variables
mixed $authtype = '' (line 36)
mixed $certRequest = array() (line 38)
mixed $ch = false (line 33)
mixed $digestRequest = array() (line 37)
mixed $digest_uri = '' (line 18)
mixed $encoding = '' (line 25)
mixed $host = '' (line 20)
mixed $incoming_cookies = array() (line 28)
mixed $incoming_headers = array() (line 27)
mixed $incoming_payload = '' (line 30)
mixed $outgoing_headers = array() (line 26)
mixed $outgoing_payload = '' (line 29)
mixed $password = '' (line 35)
mixed $path = '' (line 22)
mixed $persistentConnection = false (line 32)
mixed $port = '' (line 21)
mixed $protocol_version = '1.0' (line 24)
mixed $request_method = 'POST' (line 23)
mixed $scheme = '' (line 19)
mixed $uri = '' (line 17)
mixed $url = '' (line 16)
mixed $username = '' (line 34)
mixed $useSOAPAction = true (line 31)
Methods
Constructor soap_transport_http (line 49)

constructor

soap_transport_http soap_transport_http (mixed $url)
buildPayload (line 481)
void buildPayload (mixed $data, [mixed $cookie_str = ''])
connect (line 96)
void connect (mixed $connection_timeout, [mixed $response_timeout = 30])
decodeChunked (line 429)

decode a string that is encoded w/ "chunked' transfer encoding as defined in RFC2068 19.4.6

  • deprecated:
  • access: public
string decodeChunked (string $buffer, string $lb)
  • string $buffer
  • string $lb
getResponse (line 551)
void getResponse ()
send (line 251)

send the SOAP message via HTTP

  • return: data
  • access: public
string send (string $data, integer $timeout, [integer $response_timeout = 30], [array $cookies = NULL])
  • string $data: message data
  • integer $timeout: set connection timeout in seconds
  • integer $response_timeout: set response timeout in seconds
  • array $cookies: cookies to send
sendHTTPS (line 291)

send the SOAP message via HTTPS 1.0 using CURL

  • return: data
  • access: public
string sendHTTPS (mixed $data, integer $timeout, [integer $response_timeout = 30], array $cookies, string $msg)
  • string $msg: message data
  • integer $timeout: set connection timeout in seconds
  • integer $response_timeout: set response timeout in seconds
  • array $cookies: cookies to send
sendRequest (line 512)
void sendRequest (mixed $data, [mixed $cookies = NULL])
setContentType (line 907)
void setContentType (mixed $type, [mixed $charset = false])
setCredentials (line 305)

if authenticating, set user credentials here

  • access: public
void setCredentials (string $username, string $password, [string $authtype = 'basic'], [array $digestRequest = array()], [array $certRequest = array()])
  • string $username
  • string $password
  • string $authtype: (basic, digest, certificate)
  • array $digestRequest: (keys must be nonce, nc, realm, qop)
  • array $certRequest: (keys must be cainfofile (optional), sslcertfile, sslkeyfile, passphrase, verifypeer (optional), verifyhost (optional): see corresponding options in cURL docs)
setEncoding (line 384)

use http encoding

  • access: public
void setEncoding ([string $enc = 'gzip, deflate'])
  • string $enc: encoding style. supported values: gzip, deflate, or both
setProxy (line 409)

set proxy info here

  • access: public
void setProxy (string $proxyhost, string $proxyport, [string $proxyusername = ''], [string $proxypassword = ''])
  • string $proxyhost
  • string $proxyport
  • string $proxyusername
  • string $proxypassword
setSOAPAction (line 373)

set the soapaction value

  • access: public
void setSOAPAction (string $soapaction)
  • string $soapaction
setURL (line 57)
void setURL (mixed $url)
usePersistentConnection (line 912)
void usePersistentConnection ()

Documentation generated on Tue, 4 Oct 2005 21:58:57 -0700 by phpDocumentor 1.3.0RC3