constructor
soapclient
soapclient
(mixed $endpoint, [bool $wsdl = false], [string $proxyhost = false], [string $proxyport = false], [string $proxyusername = false], [string $proxypassword = false], integer $timeout, [integer $response_timeout = 30], int $portName)
-
mixed
$endpoint: SOAP server or WSDL URL (string), or wsdl instance (object)
-
bool
$wsdl: optional, set to true if using WSDL
-
int
$portName: optional portName in WSDL document
-
string
$proxyhost
-
string
$proxyport
-
string
$proxyusername
-
string
$proxypassword
-
integer
$timeout: set the connection timeout
-
integer
$response_timeout: set the response timeout
calls method, returns PHP native type
mixed
call
(mixed $operation, [mixed $params = array()], [string $namespace = 'http://tempuri.org'], [string $soapAction = ''], [mixed $headers = false], [boolean $rpcParams = null], [string $style = 'rpc'], [string $use = 'encoded'], string $method)
-
string
$method: SOAP server URL or path
-
mixed
$params: An array, associative or simple, of the parameters for the method call, or a string that is the XML for the call. For rpc style, this call will wrap the XML in a tag named after the method, as well as the SOAP Envelope and Body. For document style, this will only wrap with the Envelope and Body. IMPORTANT: when using an array with document style, in which case there is really one parameter, the root of the fragment used in the call, which encloses what programmers normally think of parameters. A parameter array *must* include the wrapper.
-
string
$namespace: optional method namespace (WSDL can override)
-
string
$soapAction: optional SOAPAction value (WSDL can override)
-
mixed
$headers: optional string of XML with SOAP header content, or array of soapval objects for SOAP headers
-
boolean
$rpcParams: optional (no longer used)
-
string
$style: optional (rpc|document) the style to use when serializing parameters (WSDL can override)
-
string
$use: optional (encoded|literal) the use when serializing parameters (WSDL can override)
void
decodeUTF8
(mixed $bool)
gets all Cookies
array
getCookies
()
gets the default RPC parameter setting.
If true, default is that call params are like RPC even for document style. Each call() can override this value.
This is no longer used.
boolean
getDefaultRpcParams
()
get the SOAP response headers (namespace resolution incomplete)
string
getHeaders
()
get available data pertaining to an operation
array
getOperationData
(string $operation)
-
string
$operation: operation name
dynamically creates an instance of a proxy class, allowing user to directly call methods from wsdl
object soap_proxy
getProxy
()
dynamically creates proxy class code
string
getProxyClassCode
()
adds a new Cookie into $this->cookies array
if
setCookie
(string $name, string $value)
-
string
$name: Cookie Name
-
string
$value: Cookie Value
if authenticating, set user credentials here
void
setCredentials
(string $username, string $password, [string $authtype = 'basic'], [array $certRequest = array()])
-
string
$username
-
string
$password
-
string
$authtype: (basic|digest|certificate)
-
array
$certRequest: (keys must be cainfofile (optional), sslcertfile, sslkeyfile, passphrase, verifypeer (optional), verifyhost (optional): see corresponding options in cURL docs)
sets the default RPC parameter setting.
If true, default is that call params are like RPC even for document style Each call() can override this value.
This is no longer used.
void
setDefaultRpcParams
(boolean $rpcParams)
sets the SOAP endpoint, which can override WSDL
void
setEndpoint
($endpoint $endpoint)
-
$endpoint
$endpoint: string The endpoint URL to use, or empty string or false to prevent override
set the SOAP headers
void
setHeaders
($headers $headers)
-
$headers
$headers: mixed String of XML with SOAP header content, or array of soapval objects for SOAP headers
use HTTP encoding
void
setHTTPEncoding
([string $enc = 'gzip, deflate'])
set proxy info here
void
setHTTPProxy
(string $proxyhost, string $proxyport, [string $proxyusername = ''], [string $proxypassword = ''])
-
string
$proxyhost
-
string
$proxyport
-
string
$proxyusername
-
string
$proxypassword
use HTTP persistent connections if possible
void
useHTTPPersistentConnection
()