constructor
soap_transport_http
soap_transport_http
(string $url, [array $curl_options = NULL], [boolean $use_curl = false])
-
string
$url: The URL to which to connect
-
array
$curl_options: User-specified cURL options
-
boolean
$use_curl: Whether to try to force cURL use
Writes the payload, including HTTP headers, to $this->outgoing_payload.
void
buildPayload
(string $data, [string $cookie_str = ''])
-
string
$data: HTTP body
-
string
$cookie_str: data for HTTP Cookie header
establish an HTTP connection
boolean
connect
(mixed $connection_timeout, [integer $response_timeout = 30], integer $timeout)
-
integer
$timeout: set connection timeout in seconds
-
integer
$response_timeout: set response timeout in seconds
decode a string that is encoded w/ "chunked' transfer encoding as defined in RFC2068 19.4.6
string
decodeChunked
(string $buffer, string $lb)
-
string
$buffer
-
string
$lb
sort out cookies for the current request
string
getCookiesForRequest
(array $cookies, [boolean $secure = false])
-
array
$cookies: array with all cookies
-
boolean
$secure: is the send-content secure or not?
gets the SOAP response via HTTP[S]
string
getResponse
()
gets the I/O method to use
string
io_method
()
Test if the given string starts with a header that is to be skipped.
Skippable headers result from chunked transfer and proxy requests.
boolean
isSkippableCurlHeader
(string &$data)
-
string
$data: The string to check.
parse an incoming Cookie into it's parts
array
parseCookie
(string $cookie_str)
-
string
$cookie_str: content of cookie
sends the SOAP request and gets the SOAP response via HTTP[S]
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
sends the SOAP request and gets the SOAP response via HTTPS using CURL
string
sendHTTPS
(string $data, integer $timeout, [integer $response_timeout = 30], array $cookies)
-
string
$data: message data
-
integer
$timeout: set connection timeout in seconds
-
integer
$response_timeout: set response timeout in seconds
-
array
$cookies: cookies to send
sends the SOAP request via HTTP[S]
boolean
sendRequest
(string $data, [array $cookies = NULL])
-
string
$data: message data
-
array
$cookies: cookies to send
sets the content-type for the SOAP message to be sent
void
setContentType
(string $type, [mixed $charset = false])
-
string
$type: the content type, MIME style
-
mixed
$charset: character set used for encoding (or false)
if authenticating, set user credentials here
void
setCredentials
(string $username, string $password, [string $authtype = 'basic'], [array $digestRequest = array()], [array $certRequest = array()])
-
string
$username
-
string
$password
-
string
$authtype: (basic|digest|certificate|ntlm)
-
array
$digestRequest: (keys must be nonce, nc, realm, qop)
-
array
$certRequest: (keys must be cainfofile (optional), sslcertfile, sslkeyfile, passphrase, certpassword (optional), verifypeer (optional), verifyhost (optional): see corresponding options in cURL docs)
sets a cURL option
void
setCurlOption
(mixed $option, mixed $value)
-
mixed
$option: The cURL option (always integer?)
-
mixed
$value: The cURL option value
use http encoding
void
setEncoding
([string $enc = 'gzip, deflate'])
-
string
$enc: encoding style. supported values: gzip, deflate, or both
sets an HTTP header
void
setHeader
(string $name, string $value)
-
string
$name: The name of the header
-
string
$value: The value of the header
set proxy info here
void
setProxy
(string $proxyhost, string $proxyport, [string $proxyusername = ''], [string $proxypassword = ''], [string $proxyauthtype = 'basic'])
-
string
$proxyhost: use an empty string to remove proxy
-
string
$proxyport
-
string
$proxyusername
-
string
$proxypassword
-
string
$proxyauthtype: (basic|ntlm)
set the soapaction value
void
setSOAPAction
(string $soapaction)
sets the URL to which to connect
void
setURL
(string $url)
-
string
$url: The URL to which to connect
unsets an HTTP header
void
unsetHeader
(string $name)
-
string
$name: The name of the header
specifies that an HTTP persistent connection should be used
boolean
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()
nusoap_base::__toString()