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: nusoap.php,v 1.94 2005/08/04 01:27:42 snichol Exp $
  • author: Dietrich Ayala <dietrich@ganx4.com>

Located in /nusoap.php (line 2005)

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)
 string getCookiesForRequest (array $cookies, [boolean $secure = false])
 void getResponse ()
 array parseCookie (string $cookie_str)
 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 2027)
mixed $certRequest = array() (line 2029)
mixed $ch = false (line 2024)
mixed $digestRequest = array() (line 2028)
mixed $digest_uri = '' (line 2009)
mixed $encoding = '' (line 2016)
mixed $host = '' (line 2011)
mixed $incoming_cookies = array() (line 2019)
mixed $incoming_headers = array() (line 2018)
mixed $incoming_payload = '' (line 2021)
mixed $outgoing_headers = array() (line 2017)
mixed $outgoing_payload = '' (line 2020)
mixed $password = '' (line 2026)
mixed $path = '' (line 2013)
mixed $persistentConnection = false (line 2023)
mixed $port = '' (line 2012)
mixed $protocol_version = '1.0' (line 2015)
mixed $request_method = 'POST' (line 2014)
mixed $scheme = '' (line 2010)
mixed $uri = '' (line 2008)
mixed $url = '' (line 2007)
mixed $username = '' (line 2025)
mixed $useSOAPAction = true (line 2022)

Inherited Variables

Inherited from nusoap_base

nusoap_base::$charencoding
nusoap_base::$debugLevel
nusoap_base::$debug_str
nusoap_base::$error_str
nusoap_base::$namespaces
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_transport_http (line 2040)

constructor

soap_transport_http soap_transport_http (mixed $url)
buildPayload (line 2472)
void buildPayload (mixed $data, [mixed $cookie_str = ''])
connect (line 2087)
void connect (mixed $connection_timeout, [mixed $response_timeout = 30])
decodeChunked (line 2420)

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
getCookiesForRequest (line 2988)

sort out cookies for the current request

  • return: for Cookie-HTTP-Header
  • access: private
string getCookiesForRequest (array $cookies, [boolean $secure = false])
  • array $cookies: array with all cookies
  • boolean $secure: is the send-content secure or not?
getResponse (line 2542)
void getResponse ()
parseCookie (line 2924)

parse an incoming Cookie into it's parts

  • return: with data of that cookie
  • access: private
array parseCookie (string $cookie_str)
  • string $cookie_str: content of cookie
send (line 2242)

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

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 2503)
void sendRequest (mixed $data, [mixed $cookies = NULL])
setContentType (line 2898)
void setContentType (mixed $type, [mixed $charset = false])
setCredentials (line 2296)

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

use http encoding

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

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

set the soapaction value

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

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:39 -0400 by phpDocumentor 1.3.0RC3