ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
nusoap_client Class Reference

[nu]soapclient higher level class for easy usage. More...

+ Inheritance diagram for nusoap_client:
+ Collaboration diagram for nusoap_client:

Public Member Functions

 __construct ($endpoint, $wsdl=false, $proxyhost=false, $proxyport=false, $proxyusername=false, $proxypassword=false, $timeout=0, $response_timeout=30)
 constructor More...
 
 call ($operation, $params=array(), $namespace='http://tempuri.org', $soapAction='', $headers=false, $rpcParams=null, $style='rpc', $use='encoded')
 calls method, returns PHP native type More...
 
 checkWSDL ()
 check WSDL passed as an instance or pulled from an endpoint More...
 
 loadWSDL ()
 instantiate wsdl object and parse wsdl file More...
 
 getOperationData ($operation)
 get available data pertaining to an operation More...
 
 send ($msg, $soapaction='', $timeout=0, $response_timeout=30)
 send the SOAP message More...
 
 parseResponse ($headers, $data)
 processes SOAP message returned from server More...
 
 setCurlOption ($option, $value)
 sets user-specified cURL options More...
 
 setEndpoint ($endpoint)
 sets the SOAP endpoint, which can override WSDL More...
 
 setHeaders ($headers)
 set the SOAP headers More...
 
 getHeaders ()
 get the SOAP response headers (namespace resolution incomplete) More...
 
 getHeader ()
 get the SOAP response Header (parsed) More...
 
 setHTTPProxy ($proxyhost, $proxyport, $proxyusername='', $proxypassword='')
 set proxy info here More...
 
 setCredentials ($username, $password, $authtype='basic', $certRequest=array())
 if authenticating, set user credentials here More...
 
 setHTTPEncoding ($enc='gzip, deflate')
 use HTTP encoding More...
 
 setUseCURL ($use)
 Set whether to try to use cURL connections if possible. More...
 
 useHTTPPersistentConnection ()
 use HTTP persistent connections if possible More...
 
 getDefaultRpcParams ()
 gets the default RPC parameter setting. More...
 
 setDefaultRpcParams ($rpcParams)
 sets the default RPC parameter setting. More...
 
 getProxy ()
 dynamically creates an instance of a proxy class, allowing user to directly call methods from wsdl More...
 
 _getProxyClassCode ($r)
 dynamically creates proxy class code More...
 
 getProxyClassCode ()
 dynamically creates proxy class code More...
 
 getHTTPBody ($soapmsg)
 gets the HTTP body for the current request. More...
 
 getHTTPContentType ()
 gets the HTTP content type for the current request. More...
 
 getHTTPContentTypeCharset ()
 gets the HTTP content type charset for the current request. More...
 
 decodeUTF8 ($bool)
 
 setCookie ($name, $value)
 adds a new Cookie into $this->cookies array More...
 
 getCookies ()
 gets all Cookies More...
 
 checkCookies ()
 checks all Cookies and delete those which are expired More...
 
 UpdateCookies ($cookies)
 updates the current cookies with a new set More...
 
- Public Member Functions inherited from nusoap_base
 debug ($string)
 adds debug data to the class level debug string More...
 
 expandEntities ($val)
 expands entities, e.g. More...
 
 getError ()
 returns error string if present More...
 
 setError ($str)
 sets error string More...
 
 isArraySimpleOrStruct ($val)
 detect if array is a simple array or a struct (associative array) More...
 
 serialize_val ($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded')
 
 serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded')
 serialize message More...
 
 formatDump ($str)
 
 contractQname ($qname)
 contracts a qualified name More...
 
 expandQname ($qname)
 expands a qualified name More...
 
 getLocalPart ($str)
 returns the local part of a prefixed string returns the original string, if not prefixed More...
 
 getPrefix ($str)
 returns the prefix part of a prefixed string returns false, if not prefixed More...
 
 getNamespaceFromPrefix ($prefix)
 pass it a prefix, it returns a namespace returns false if no namespace registered with the given prefix More...
 
 getPrefixFromNamespace ($ns)
 returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace More...
 
 varDump ($data)
 
 __construct ()
 constructor More...
 
 getGlobalDebugLevel ()
 gets the global debug level, which applies to future instances More...
 
 setGlobalDebugLevel ($level)
 sets the global debug level, which applies to future instances More...
 
 getDebugLevel ()
 gets the debug level for this instance More...
 
 setDebugLevel ($level)
 sets the debug level for this instance More...
 
 debug ($string)
 adds debug data to the instance debug string with formatting More...
 
 appendDebug ($string)
 adds debug data to the instance debug string without formatting More...
 
 clearDebug ()
 clears the current debug data for this instance More...
 
getDebug ()
 gets the current debug data for this instance More...
 
getDebugAsXMLComment ()
 gets the current debug data for this instance as an XML comment this may change the contents of the debug data More...
 
 expandEntities ($val)
 expands entities, e.g. More...
 
 getError ()
 returns error string if present More...
 
 setError ($str)
 sets error string More...
 
 isArraySimpleOrStruct ($val)
 detect if array is a simple array or a struct (associative array) More...
 
 serialize_val ($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded', $soapval=false)
 
 serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded', $encodingStyle='http://schemas.xmlsoap.org/soap/encoding/')
 serializes a message More...
 
 formatDump ($str)
 formats a string to be inserted into an HTML stream More...
 
 contractQname ($qname)
 contracts (changes namespace to prefix) a qualified name More...
 
 expandQname ($qname)
 expands (changes prefix to namespace) a qualified name More...
 
 getLocalPart ($str)
 returns the local part of a prefixed string returns the original string, if not prefixed More...
 
 getPrefix ($str)
 returns the prefix part of a prefixed string returns false, if not prefixed More...
 
 getNamespaceFromPrefix ($prefix)
 pass it a prefix, it returns a namespace More...
 
 getPrefixFromNamespace ($ns)
 returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace More...
 
 getmicrotime ()
 returns the time in ODBC canonical form with microseconds More...
 
 varDump ($data)
 Returns a string with the output of var_dump. More...
 
 __toString ()
 represents the object as a string More...
 

Data Fields

 $username = ''
 
 $password = ''
 
 $authtype = ''
 
 $certRequest = array()
 
 $requestHeaders = false
 
 $responseHeaders = ''
 
 $responseHeader = NULL
 
 $document = ''
 
 $endpoint
 
 $forceEndpoint = ''
 
 $proxyhost = ''
 
 $proxyport = ''
 
 $proxyusername = ''
 
 $proxypassword = ''
 
 $xml_encoding = ''
 
 $http_encoding = false
 
 $timeout = 0
 
 $response_timeout = 30
 
 $endpointType = ''
 
 $persistentConnection = false
 
 $defaultRpcParams = false
 
 $request = ''
 
 $response = ''
 
 $responseData = ''
 
 $cookies = array()
 
 $decode_utf8 = true
 
 $operations = array()
 
 $curl_options = array()
 
 $bindingType = ''
 
 $use_curl = false
 
 $fault
 
 $faultcode
 
 $faultstring
 
 $faultdetail
 
- Data Fields inherited from nusoap_base
 $title = 'NuSOAP'
 
 $version = '0.6.7'
 
 $revision = '$Revision$'
 
 $error_str = false
 Current error string (manipulated by getError/setError) More...
 
 $debug_str = ''
 Current debug string (manipulated by debug/appendDebug/clearDebug/getDebug/getDebugAsXMLComment) More...
 
 $charencoding = true
 
 $XMLSchemaVersion = 'http://www.w3.org/2001/XMLSchema'
 
 $soap_defencoding = 'UTF-8'
 
 $namespaces
 
 $usedNamespaces = array()
 
 $typemap
 
 $xmlEntities
 
 $debugLevel
 

Detailed Description

[nu]soapclient higher level class for easy usage.

usage:

// instantiate client with server info $soapclient = new nusoap_client( string path [ ,mixed wsdl] );

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

// bye bye client unset($soapclient);

Author
Dietrich Ayala dietr.nosp@m.ich@.nosp@m.ganx4.nosp@m..com
Scott Nichol snich.nosp@m.ol@u.nosp@m.sers..nosp@m.sour.nosp@m.cefor.nosp@m.ge.n.nosp@m.et
Version
$Id$ @access public

Definition at line 7064 of file nusoap.php.

Constructor & Destructor Documentation

◆ __construct()

nusoap_client::__construct (   $endpoint,
  $wsdl = false,
  $proxyhost = false,
  $proxyport = false,
  $proxyusername = false,
  $proxypassword = false,
  $timeout = 0,
  $response_timeout = 30 
)

constructor

Parameters
mixed$endpointSOAP server or WSDL URL (string), or wsdl instance (object)
bool$wsdloptional, set to true if using WSDL
int$portNameoptional portName in WSDL document
string$proxyhost
string$proxyport
string$proxyusername
string$proxypassword
integer$timeoutset the connection timeout
integer$response_timeoutset the response timeout @access public

Definition at line 7135 of file nusoap.php.

7135 {
7136 parent::__construct();
7137 $this->endpoint = $endpoint;
7138 $this->proxyhost = $proxyhost;
7139 $this->proxyport = $proxyport;
7140 $this->proxyusername = $proxyusername;
7141 $this->proxypassword = $proxypassword;
7142 $this->timeout = $timeout;
7143 $this->response_timeout = $response_timeout;
7144
7145 $this->debug("ctor wsdl=$wsdl timeout=$timeout response_timeout=$response_timeout");
7146 $this->appendDebug('endpoint=' . $this->varDump($endpoint));
7147
7148 // make values
7149 if($wsdl){
7150 if (is_object($endpoint) && (get_class($endpoint) == 'wsdl')) {
7151 $this->wsdl = $endpoint;
7152 $this->endpoint = $this->wsdl->wsdl;
7153 $this->wsdlFile = $this->endpoint;
7154 $this->debug('existing wsdl instance created from ' . $this->endpoint);
7155 $this->checkWSDL();
7156 } else {
7157 $this->wsdlFile = $this->endpoint;
7158 $this->wsdl = null;
7159 $this->debug('will use lazy evaluation of wsdl from ' . $this->endpoint);
7160 }
7161 $this->endpointType = 'wsdl';
7162 } else {
7163 $this->debug("instantiate SOAP with endpoint at $endpoint");
7164 $this->endpointType = 'soap';
7165 }
7166 }
debug($string)
adds debug data to the class level debug string
Definition: nusoap.php:144
varDump($data)
Definition: nusoap.php:567
appendDebug($string)
adds debug data to the instance debug string without formatting
Definition: nusoap.php:294
checkWSDL()
check WSDL passed as an instance or pulled from an endpoint
Definition: nusoap.php:7375
parses a WSDL file, allows access to it's data, other utility methods
Definition: nusoap.php:3133
wsdl($wsdl='', $proxyhost=false, $proxyport=false, $proxyusername=false, $proxypassword=false, $timeout=0, $response_timeout=30)
constructor
Definition: nusoap.php:3181

References $endpoint, $proxyhost, $proxypassword, $proxyport, $proxyusername, $response_timeout, $timeout, nusoap_base\appendDebug(), checkWSDL(), nusoap_base\debug(), nusoap_base\varDump(), and wsdl\wsdl().

+ Here is the call graph for this function:

Member Function Documentation

◆ _getProxyClassCode()

nusoap_client::_getProxyClassCode (   $r)

dynamically creates proxy class code

Returns
string PHP/NuSOAP code for the proxy class @access private

Definition at line 7773 of file nusoap.php.

7773 {
7774 $this->debug("in getProxy endpointType=$this->endpointType");
7775 $this->appendDebug("wsdl=" . $this->varDump($this->wsdl));
7776 if ($this->endpointType != 'wsdl') {
7777 $evalStr = 'A proxy can only be created for a WSDL client';
7778 $this->setError($evalStr);
7779 $evalStr = "echo \"$evalStr\";";
7780 return $evalStr;
7781 }
7782 if ($this->endpointType == 'wsdl' && is_null($this->wsdl)) {
7783 $this->loadWSDL();
7784 if ($this->getError()) {
7785 return "echo \"" . $this->getError() . "\";";
7786 }
7787 }
7788 $evalStr = '';
7789 foreach ($this->operations as $operation => $opData) {
7790 if ($operation != '') {
7791 // create param string and param comment string
7792 if (sizeof($opData['input']['parts']) > 0) {
7793 $paramStr = '';
7794 $paramArrayStr = '';
7795 $paramCommentStr = '';
7796 foreach ($opData['input']['parts'] as $name => $type) {
7797 $paramStr .= "\$$name, ";
7798 $paramArrayStr .= "'$name' => \$$name, ";
7799 $paramCommentStr .= "$type \$$name, ";
7800 }
7801 $paramStr = substr($paramStr, 0, strlen($paramStr)-2);
7802 $paramArrayStr = substr($paramArrayStr, 0, strlen($paramArrayStr)-2);
7803 $paramCommentStr = substr($paramCommentStr, 0, strlen($paramCommentStr)-2);
7804 } else {
7805 $paramStr = '';
7806 $paramArrayStr = '';
7807 $paramCommentStr = 'void';
7808 }
7809 $opData['namespace'] = !isset($opData['namespace']) ? 'http://testuri.com' : $opData['namespace'];
7810 $evalStr .= "// $paramCommentStr
7811 function " . str_replace('.', '__', $operation) . "($paramStr) {
7812 \$params = array($paramArrayStr);
7813 return \$this->call('$operation', \$params, '".$opData['namespace']."', '".(isset($opData['soapAction']) ? $opData['soapAction'] : '')."');
7814 }
7815 ";
7816 unset($paramStr);
7817 unset($paramCommentStr);
7818 }
7819 }
7820 $evalStr = 'class nusoap_proxy_'.$r.' extends nusoap_client {
7821 '.$evalStr.'
7822}';
7823 return $evalStr;
7824 }
setError($str)
sets error string
Definition: nusoap.php:184
getError()
returns error string if present
Definition: nusoap.php:171
loadWSDL()
instantiate wsdl object and parse wsdl file
Definition: nusoap.php:7401
if($format !==null) $name
Definition: metadata.php:146
$type

References $name, $type, nusoap_base\appendDebug(), nusoap_base\debug(), nusoap_base\getError(), loadWSDL(), nusoap_base\setError(), and nusoap_base\varDump().

Referenced by getProxy(), and getProxyClassCode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ call()

nusoap_client::call (   $operation,
  $params = array(),
  $namespace = 'http://tempuri.org',
  $soapAction = '',
  $headers = false,
  $rpcParams = null,
  $style = 'rpc',
  $use = 'encoded' 
)

calls method, returns PHP native type

Parameters
string$operationSOAP server URL or path
mixed$paramsAn 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$namespaceoptional method namespace (WSDL can override)
string$soapActionoptional SOAPAction value (WSDL can override)
mixed$headersoptional string of XML with SOAP header content, or array of soapval objects for SOAP headers, or associative array
boolean$rpcParamsoptional (no longer used)
string$styleoptional (rpc|document) the style to use when serializing parameters (WSDL can override)
string$useoptional (encoded|literal) the use when serializing parameters (WSDL can override)
Returns
mixed response from SOAP call @access public

Definition at line 7193 of file nusoap.php.

7193 ://tempuri.org',$soapAction='',$headers=false,$rpcParams=null,$style='rpc',$use='encoded'){
7194 $this->operation = $operation;
7195 $this->fault = false;
7196 $this->setError('');
7197 $this->request = '';
7198 $this->response = '';
7199 $this->responseData = '';
7200 $this->faultstring = '';
7201 $this->faultcode = '';
7202 $this->opData = array();
7203
7204 $this->debug("call: operation=$operation, namespace=$namespace, soapAction=$soapAction, rpcParams=$rpcParams, style=$style, use=$use, endpointType=$this->endpointType");
7205 $this->appendDebug('params=' . $this->varDump($params));
7206 $this->appendDebug('headers=' . $this->varDump($headers));
7207 if ($headers) {
7208 $this->requestHeaders = $headers;
7209 }
7210 if ($this->endpointType == 'wsdl' && is_null($this->wsdl)) {
7211 $this->loadWSDL();
7212 if ($this->getError())
7213 return false;
7214 }
7215 // serialize parameters
7216 if($this->endpointType == 'wsdl' && $opData = $this->getOperationData($operation)){
7217 // use WSDL for operation
7218 $this->opData = $opData;
7219 $this->debug("found operation");
7220 $this->appendDebug('opData=' . $this->varDump($opData));
7221 if (isset($opData['soapAction'])) {
7222 $soapAction = $opData['soapAction'];
7223 }
7224 if (! $this->forceEndpoint) {
7225 $this->endpoint = $opData['endpoint'];
7226 } else {
7227 $this->endpoint = $this->forceEndpoint;
7228 }
7229 $namespace = isset($opData['input']['namespace']) ? $opData['input']['namespace'] : $namespace;
7230 $style = $opData['style'];
7231 $use = $opData['input']['use'];
7232 // add ns to ns array
7233 if($namespace != '' && !isset($this->wsdl->namespaces[$namespace])){
7234 $nsPrefix = 'ns' . rand(1000, 9999);
7235 $this->wsdl->namespaces[$nsPrefix] = $namespace;
7236 }
7237 $nsPrefix = $this->wsdl->getPrefixFromNamespace($namespace);
7238 // serialize payload
7239 if (is_string($params)) {
7240 $this->debug("serializing param string for WSDL operation $operation");
7241 $payload = $params;
7242 } elseif (is_array($params)) {
7243 $this->debug("serializing param array for WSDL operation $operation");
7244 $payload = $this->wsdl->serializeRPCParameters($operation,'input',$params,$this->bindingType);
7245 } else {
7246 $this->debug('params must be array or string');
7247 $this->setError('params must be array or string');
7248 return false;
7249 }
7250 $usedNamespaces = $this->wsdl->usedNamespaces;
7251 if (isset($opData['input']['encodingStyle'])) {
7252 $encodingStyle = $opData['input']['encodingStyle'];
7253 } else {
7254 $encodingStyle = '';
7255 }
7256 $this->appendDebug($this->wsdl->getDebug());
7257 $this->wsdl->clearDebug();
7258 if ($errstr = $this->wsdl->getError()) {
7259 $this->debug('got wsdl error: '.$errstr);
7260 $this->setError('wsdl error: '.$errstr);
7261 return false;
7262 }
7263 } elseif($this->endpointType == 'wsdl') {
7264 // operation not in WSDL
7265 $this->appendDebug($this->wsdl->getDebug());
7266 $this->wsdl->clearDebug();
7267 $this->setError( 'operation '.$operation.' not present.');
7268 $this->debug("operation '$operation' not present.");
7269 return false;
7270 } else {
7271 // no WSDL
7272 //$this->namespaces['ns1'] = $namespace;
7273 $nsPrefix = 'ns' . rand(1000, 9999);
7274 // serialize
7275 $payload = '';
7276 if (is_string($params)) {
7277 $this->debug("serializing param string for operation $operation");
7278 $payload = $params;
7279 } elseif (is_array($params)) {
7280 $this->debug("serializing param array for operation $operation");
7281 foreach($params as $k => $v){
7282 $payload .= $this->serialize_val($v,$k,false,false,false,false,$use);
7283 }
7284 } else {
7285 $this->debug('params must be array or string');
7286 $this->setError('params must be array or string');
7287 return false;
7288 }
7289 $usedNamespaces = array();
7290 if ($use == 'encoded') {
7291 $encodingStyle = 'http://schemas.xmlsoap.org/soap/encoding/';
7292 } else {
7293 $encodingStyle = '';
7294 }
7295 }
7296 // wrap RPC calls with method element
7297 if ($style == 'rpc') {
7298 if ($use == 'literal') {
7299 $this->debug("wrapping RPC request with literal method element");
7300 if ($namespace) {
7301 // http://www.ws-i.org/Profiles/BasicProfile-1.1-2004-08-24.html R2735 says rpc/literal accessor elements should not be in a namespace
7302 $payload = "<$nsPrefix:$operation xmlns:$nsPrefix=\"$namespace\">" .
7303 $payload .
7304 "</$nsPrefix:$operation>";
7305 } else {
7306 $payload = "<$operation>" . $payload . "</$operation>";
7307 }
7308 } else {
7309 $this->debug("wrapping RPC request with encoded method element");
7310 if ($namespace) {
7311 $payload = "<$nsPrefix:$operation xmlns:$nsPrefix=\"$namespace\">" .
7312 $payload .
7313 "</$nsPrefix:$operation>";
7314 } else {
7315 $payload = "<$operation>" .
7316 $payload .
7317 "</$operation>";
7318 }
7319 }
7320 }
7321 // serialize envelope
7322 $soapmsg = $this->serializeEnvelope($payload,$this->requestHeaders,$usedNamespaces,$style,$use,$encodingStyle);
7323 $this->debug("endpoint=$this->endpoint, soapAction=$soapAction, namespace=$namespace, style=$style, use=$use, encodingStyle=$encodingStyle");
7324 $this->debug('SOAP message length=' . strlen($soapmsg) . ' contents (max 1000 bytes)=' . substr($soapmsg, 0, 1000));
7325 // send
7326 $return = $this->send($this->getHTTPBody($soapmsg),$soapAction,$this->timeout,$this->response_timeout);
7327 if($errstr = $this->getError()){
7328 $this->debug('Error: '.$errstr);
7329 return false;
7330 } else {
7331 $this->return = $return;
7332 $this->debug('sent message successfully and got a(n) '.gettype($return));
7333 $this->appendDebug('return=' . $this->varDump($return));
7334
7335 // fault?
7336 if(is_array($return) && isset($return['faultcode'])){
7337 $this->debug('got fault');
7338 $this->setError($return['faultcode'].': '.$return['faultstring']);
7339 $this->fault = true;
7340 foreach($return as $k => $v){
7341 $this->$k = $v;
7342 $this->debug("$k = $v<br>");
7343 }
7344 return $return;
7345 } elseif ($style == 'document') {
7346 // NOTE: if the response is defined to have multiple parts (i.e. unwrapped),
7347 // we are only going to return the first part here...sorry about that
7348 return $return;
7349 } else {
7350 // array of return values
7351 if(is_array($return)){
7352 // multiple 'out' parameters, which we return wrapped up
7353 // in the array
7354 if(sizeof($return) > 1){
7355 return $return;
7356 }
7357 // single 'out' parameter (normally the return value)
7358 $return = array_shift($return);
7359 $this->debug('return shifted value: ');
7360 $this->appendDebug($this->varDump($return));
7361 return $return;
7362 // nothing returned (ie, echoVoid)
7363 } else {
7364 return "";
7365 }
7366 }
7367 }
7368 }
& getDebug()
gets the current debug data for this instance
Definition: nusoap.php:319
getPrefixFromNamespace($ns)
returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given...
Definition: nusoap.php:557
serialize_val($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded')
Definition: nusoap.php:212
clearDebug()
clears the current debug data for this instance
Definition: nusoap.php:307
serializeEnvelope($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded')
serialize message
Definition: nusoap.php:417
send($msg, $soapaction='', $timeout=0, $response_timeout=30)
send the SOAP message
Definition: nusoap.php:7442
getOperationData($operation)
get available data pertaining to an operation
Definition: nusoap.php:7416
getHTTPBody($soapmsg)
gets the HTTP body for the current request.
Definition: nusoap.php:7844
serializeRPCParameters($operation, $direction, $parameters)
serialize a PHP value according to a WSDL message definition
Definition: nusoap.php:3870
if($err=$client->getError()) $namespace
$style
Definition: example_012.php:70
$params
Definition: disable.php:11

References $forceEndpoint, $namespace, $params, $style, nusoap_base\$usedNamespaces, nusoap_base\appendDebug(), nusoap_base\clearDebug(), nusoap_base\debug(), nusoap_base\getDebug(), nusoap_base\getError(), getHTTPBody(), getOperationData(), nusoap_base\getPrefixFromNamespace(), loadWSDL(), send(), nusoap_base\serialize_val(), nusoap_base\serializeEnvelope(), wsdl\serializeRPCParameters(), nusoap_base\setError(), and nusoap_base\varDump().

+ Here is the call graph for this function:

◆ checkCookies()

nusoap_client::checkCookies ( )

checks all Cookies and delete those which are expired

Returns
boolean always return true @access private

Definition at line 7916 of file nusoap.php.

7916 {
7917 if (sizeof($this->cookies) == 0) {
7918 return true;
7919 }
7920 $this->debug('checkCookie: check ' . sizeof($this->cookies) . ' cookies');
7921 $curr_cookies = $this->cookies;
7922 $this->cookies = array();
7923 foreach ($curr_cookies as $cookie) {
7924 if (! is_array($cookie)) {
7925 $this->debug('Remove cookie that is not an array');
7926 continue;
7927 }
7928 if ((isset($cookie['expires'])) && (! empty($cookie['expires']))) {
7929 if (strtotime($cookie['expires']) > time()) {
7930 $this->cookies[] = $cookie;
7931 } else {
7932 $this->debug('Remove expired cookie ' . $cookie['name']);
7933 }
7934 } else {
7935 $this->cookies[] = $cookie;
7936 }
7937 }
7938 $this->debug('checkCookie: '.sizeof($this->cookies).' cookies left in array');
7939 return true;
7940 }

References $cookies, and nusoap_base\debug().

Referenced by send().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ checkWSDL()

nusoap_client::checkWSDL ( )

check WSDL passed as an instance or pulled from an endpoint

@access private

Definition at line 7375 of file nusoap.php.

7375 {
7376 $this->appendDebug($this->wsdl->getDebug());
7377 $this->wsdl->clearDebug();
7378 $this->debug('checkWSDL');
7379 // catch errors
7380 if ($errstr = $this->wsdl->getError()) {
7381 $this->debug('got wsdl error: '.$errstr);
7382 $this->setError('wsdl error: '.$errstr);
7383 } elseif ($this->operations = $this->wsdl->getOperations('soap')) {
7384 $this->bindingType = 'soap';
7385 $this->debug('got '.count($this->operations).' operations from wsdl '.$this->wsdlFile.' for binding type '.$this->bindingType);
7386 } elseif ($this->operations = $this->wsdl->getOperations('soap12')) {
7387 $this->bindingType = 'soap12';
7388 $this->debug('got '.count($this->operations).' operations from wsdl '.$this->wsdlFile.' for binding type '.$this->bindingType);
7389 $this->debug('**************** WARNING: SOAP 1.2 BINDING *****************');
7390 } else {
7391 $this->debug('getOperations returned false');
7392 $this->setError('no operations defined in the WSDL document!');
7393 }
7394 }
getOperations($bindingType='soap')
returns an assoc array of operation names => operation data
Definition: nusoap.php:3649

References nusoap_base\appendDebug(), nusoap_base\clearDebug(), nusoap_base\debug(), nusoap_base\getDebug(), nusoap_base\getError(), wsdl\getOperations(), and nusoap_base\setError().

Referenced by __construct(), and loadWSDL().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ decodeUTF8()

nusoap_client::decodeUTF8 (   $bool)

Definition at line 7879 of file nusoap.php.

7879 {
7880 $this->decode_utf8 = $bool;
7881 return true;
7882 }

◆ getCookies()

nusoap_client::getCookies ( )

gets all Cookies

Returns
array with all internal cookies @access public

Definition at line 7906 of file nusoap.php.

7906 {
7907 return $this->cookies;
7908 }

References $cookies.

◆ getDefaultRpcParams()

nusoap_client::getDefaultRpcParams ( )

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.

Returns
boolean @access public
Deprecated:

Definition at line 7699 of file nusoap.php.

7699 {
7701 }

References $defaultRpcParams.

◆ getHeader()

nusoap_client::getHeader ( )

get the SOAP response Header (parsed)

Returns
mixed @access public

Definition at line 7618 of file nusoap.php.

7618 {
7619 return $this->responseHeader;
7620 }

References $responseHeader.

◆ getHeaders()

nusoap_client::getHeaders ( )

get the SOAP response headers (namespace resolution incomplete)

Returns
string @access public

Definition at line 7608 of file nusoap.php.

7608 {
7610 }

References $responseHeaders.

◆ getHTTPBody()

nusoap_client::getHTTPBody (   $soapmsg)

gets the HTTP body for the current request.

Parameters
string$soapmsgThe SOAP payload
Returns
string The HTTP body, which includes the SOAP payload @access private

Definition at line 7844 of file nusoap.php.

7844 {
7845 return $soapmsg;
7846 }

Referenced by call().

+ Here is the caller graph for this function:

◆ getHTTPContentType()

nusoap_client::getHTTPContentType ( )

gets the HTTP content type for the current request.

Note: getHTTPBody must be called before this.

Returns
string the HTTP content type for the current request. @access private

Definition at line 7856 of file nusoap.php.

7856 {
7857 return 'text/xml';
7858 }

Referenced by send().

+ Here is the caller graph for this function:

◆ getHTTPContentTypeCharset()

nusoap_client::getHTTPContentTypeCharset ( )

gets the HTTP content type charset for the current request.

returns false for non-text content types.

Note: getHTTPBody must be called before this.

Returns
string the HTTP content type charset for the current request. @access private

Definition at line 7869 of file nusoap.php.

7869 {
7871 }
$soap_defencoding
Definition: nusoap.php:86

References nusoap_base\$soap_defencoding.

Referenced by send().

+ Here is the caller graph for this function:

◆ getOperationData()

nusoap_client::getOperationData (   $operation)

get available data pertaining to an operation

Parameters
string$operationoperation name
Returns
array array of data pertaining to the operation @access public

Definition at line 7416 of file nusoap.php.

7416 {
7417 if ($this->endpointType == 'wsdl' && is_null($this->wsdl)) {
7418 $this->loadWSDL();
7419 if ($this->getError())
7420 return false;
7421 }
7422 if(isset($this->operations[$operation])){
7423 return $this->operations[$operation];
7424 }
7425 $this->debug("No data for operation: $operation");
7426 }

References nusoap_base\debug(), nusoap_base\getError(), and loadWSDL().

Referenced by call().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getProxy()

nusoap_client::getProxy ( )

dynamically creates an instance of a proxy class, allowing user to directly call methods from wsdl

Returns
object soap_proxy object @access public

Definition at line 7725 of file nusoap.php.

7725 {
7726 $r = rand();
7727 $evalStr = $this->_getProxyClassCode($r);
7728 //$this->debug("proxy class: $evalStr");
7729 if ($this->getError()) {
7730 $this->debug("Error from _getProxyClassCode, so return NULL");
7731 return null;
7732 }
7733 // eval the class
7734 eval($evalStr);
7735 // instantiate proxy object
7736 eval("\$proxy = new nusoap_proxy_$r('');");
7737 // transfer current wsdl data to the proxy thereby avoiding parsing the wsdl twice
7738 $proxy->endpointType = 'wsdl';
7739 $proxy->wsdlFile = $this->wsdlFile;
7740 $proxy->wsdl = $this->wsdl;
7741 $proxy->operations = $this->operations;
7742 $proxy->defaultRpcParams = $this->defaultRpcParams;
7743 // transfer other state
7744 $proxy->soap_defencoding = $this->soap_defencoding;
7745 $proxy->username = $this->username;
7746 $proxy->password = $this->password;
7747 $proxy->authtype = $this->authtype;
7748 $proxy->certRequest = $this->certRequest;
7749 $proxy->requestHeaders = $this->requestHeaders;
7750 $proxy->endpoint = $this->endpoint;
7751 $proxy->forceEndpoint = $this->forceEndpoint;
7752 $proxy->proxyhost = $this->proxyhost;
7753 $proxy->proxyport = $this->proxyport;
7754 $proxy->proxyusername = $this->proxyusername;
7755 $proxy->proxypassword = $this->proxypassword;
7756 $proxy->http_encoding = $this->http_encoding;
7757 $proxy->timeout = $this->timeout;
7758 $proxy->response_timeout = $this->response_timeout;
7759 $proxy->persistentConnection = &$this->persistentConnection;
7760 $proxy->decode_utf8 = $this->decode_utf8;
7761 $proxy->curl_options = $this->curl_options;
7762 $proxy->bindingType = $this->bindingType;
7763 $proxy->use_curl = $this->use_curl;
7764 return $proxy;
7765 }
_getProxyClassCode($r)
dynamically creates proxy class code
Definition: nusoap.php:7773
$r
Definition: example_031.php:79

References $authtype, $bindingType, $certRequest, $curl_options, $decode_utf8, $defaultRpcParams, $endpoint, $forceEndpoint, $http_encoding, $operations, $password, $persistentConnection, $proxyhost, $proxypassword, $proxyport, $proxyusername, $r, $requestHeaders, $response_timeout, nusoap_base\$soap_defencoding, $timeout, $use_curl, $username, _getProxyClassCode(), nusoap_base\debug(), and nusoap_base\getError().

+ Here is the call graph for this function:

◆ getProxyClassCode()

nusoap_client::getProxyClassCode ( )

dynamically creates proxy class code

Returns
string PHP/NuSOAP code for the proxy class @access public

Definition at line 7832 of file nusoap.php.

7832 {
7833 $r = rand();
7834 return $this->_getProxyClassCode($r);
7835 }

References $r, and _getProxyClassCode().

+ Here is the call graph for this function:

◆ loadWSDL()

nusoap_client::loadWSDL ( )

instantiate wsdl object and parse wsdl file

@access public

Definition at line 7401 of file nusoap.php.

7401 {
7402 $this->debug('instantiating wsdl class with doc: '.$this->wsdlFile);
7403 $this->wsdl = new wsdl('',$this->proxyhost,$this->proxyport,$this->proxyusername,$this->proxypassword,$this->timeout,$this->response_timeout,$this->curl_options,$this->use_curl);
7404 $this->wsdl->setCredentials($this->username, $this->password, $this->authtype, $this->certRequest);
7405 $this->wsdl->fetchWSDL($this->wsdlFile);
7406 $this->checkWSDL();
7407 }
setCredentials($username, $password, $authtype='basic', $certRequest=array())
if authenticating, set user credentials here
Definition: nusoap.php:5058
fetchWSDL($wsdl)
fetches the WSDL document and parses it
Definition: nusoap.php:4588

References checkWSDL(), nusoap_base\debug(), wsdl\fetchWSDL(), and wsdl\setCredentials().

Referenced by _getProxyClassCode(), call(), and getOperationData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseResponse()

nusoap_client::parseResponse (   $headers,
  $data 
)

processes SOAP message returned from server

Parameters
array$headersThe HTTP headers
string$dataunprocessed response data from server
Returns
mixed value of the message, decoded into a PHP type @access private

Definition at line 7521 of file nusoap.php.

7521 {
7522 $this->debug('Entering parseResponse() for data of length ' . strlen($data) . ' headers:');
7523 $this->appendDebug($this->varDump($headers));
7524 if (!strstr($headers['content-type'], 'text/xml')) {
7525 $this->setError('Response not of type text/xml: ' . $headers['content-type']);
7526 return false;
7527 }
7528 if (strpos($headers['content-type'], '=')) {
7529 $enc = str_replace('"', '', substr(strstr($headers["content-type"], '='), 1));
7530 $this->debug('Got response encoding: ' . $enc);
7531 if(preg_match('/^(ISO-8859-1|US-ASCII|UTF-8)$/i',$enc)){
7532 $this->xml_encoding = strtoupper($enc);
7533 } else {
7534 $this->xml_encoding = 'US-ASCII';
7535 }
7536 } else {
7537 // should be US-ASCII for HTTP 1.0 or ISO-8859-1 for HTTP 1.1
7538 $this->xml_encoding = 'ISO-8859-1';
7539 }
7540 $this->debug('Use encoding: ' . $this->xml_encoding . ' when creating nusoap_parser');
7541 $parser = new nusoap_parser($data,$this->xml_encoding,$this->operation,$this->decode_utf8);
7542 // add parser debug data to our debug
7543 $this->appendDebug($parser->getDebug());
7544 // if parse errors
7545 if($errstr = $parser->getError()){
7546 $this->setError( $errstr);
7547 // destroy the parser object
7548 unset($parser);
7549 return false;
7550 } else {
7551 // get SOAP headers
7552 $this->responseHeaders = $parser->getHeaders();
7553 // get SOAP headers
7554 $this->responseHeader = $parser->get_soapheader();
7555 // get decoded message
7556 $return = $parser->get_soapbody();
7557 // add document for doclit support
7558 $this->document = $parser->document;
7559 // destroy the parser object
7560 unset($parser);
7561 // return decode message
7562 return $return;
7563 }
7564 }
$parser
Definition: BPMN2Parser.php:23
nusoap_parser class parses SOAP XML messages into native PHP values
Definition: nusoap.php:6417

References $data, $parser, nusoap_base\appendDebug(), nusoap_base\debug(), nusoap_base\setError(), and nusoap_base\varDump().

Referenced by send().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ send()

nusoap_client::send (   $msg,
  $soapaction = '',
  $timeout = 0,
  $response_timeout = 30 
)

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 connection timeout in seconds
@param      integer $response_timeout set response timeout in seconds
@return     mixed native PHP types.
@access   private

Definition at line 7442 of file nusoap.php.

7442 {
7443 $this->checkCookies();
7444 // detect transport
7445 switch(true){
7446 // http(s)
7447 case preg_match('/^http/',$this->endpoint):
7448 $this->debug('transporting via HTTP');
7449 if($this->persistentConnection == true && is_object($this->persistentConnection)){
7451 } else {
7452 $http = new soap_transport_http($this->endpoint, $this->curl_options, $this->use_curl);
7453 if ($this->persistentConnection) {
7454 $http->usePersistentConnection();
7455 }
7456 }
7457 $http->setContentType($this->getHTTPContentType(), $this->getHTTPContentTypeCharset());
7458 $http->setSOAPAction($soapaction);
7459 if($this->proxyhost && $this->proxyport){
7460 $http->setProxy($this->proxyhost,$this->proxyport,$this->proxyusername,$this->proxypassword);
7461 }
7462 if($this->authtype != '') {
7463 $http->setCredentials($this->username, $this->password, $this->authtype, array(), $this->certRequest);
7464 }
7465 if($this->http_encoding != ''){
7466 $http->setEncoding($this->http_encoding);
7467 }
7468 $this->debug('sending message, length='.strlen($msg));
7469 if(preg_match('/^http:/',$this->endpoint)){
7470 //if(strpos($this->endpoint,'http:')){
7471 $this->responseData = $http->send($msg,$timeout,$response_timeout,$this->cookies);
7472 } elseif(preg_match('/^https/',$this->endpoint)){
7473 //} elseif(strpos($this->endpoint,'https:')){
7474 //if(phpversion() == '4.3.0-dev'){
7475 //$response = $http->send($msg,$timeout,$response_timeout);
7476 //$this->request = $http->outgoing_payload;
7477 //$this->response = $http->incoming_payload;
7478 //} else
7479 $this->responseData = $http->sendHTTPS($msg,$timeout,$response_timeout,$this->cookies);
7480 } else {
7481 $this->setError('no http/s in endpoint url');
7482 }
7483 $this->request = $http->outgoing_payload;
7484 $this->response = $http->incoming_payload;
7485 $this->appendDebug($http->getDebug());
7486 $this->UpdateCookies($http->incoming_cookies);
7487
7488 // save transport object if using persistent connections
7489 if ($this->persistentConnection) {
7490 $http->clearDebug();
7491 if (!is_object($this->persistentConnection)) {
7492 $this->persistentConnection = $http;
7493 }
7494 }
7495
7496 if($err = $http->getError()){
7497 $this->setError('HTTP Error: '.$err);
7498 return false;
7499 } elseif($this->getError()){
7500 return false;
7501 } else {
7502 $this->debug('got response, length='. strlen($this->responseData).' type='.$http->incoming_headers['content-type']);
7503 return $this->parseResponse($http->incoming_headers, $this->responseData);
7504 }
7505 break;
7506 default:
7507 $this->setError('no transport found, or selected transport is not yet supported!');
7508 return false;
7509 break;
7510 }
7511 }
checkCookies()
checks all Cookies and delete those which are expired
Definition: nusoap.php:7916
getHTTPContentType()
gets the HTTP content type for the current request.
Definition: nusoap.php:7856
getHTTPContentTypeCharset()
gets the HTTP content type charset for the current request.
Definition: nusoap.php:7869
UpdateCookies($cookies)
updates the current cookies with a new set
Definition: nusoap.php:7949
parseResponse($headers, $data)
processes SOAP message returned from server
Definition: nusoap.php:7521
transport class for sending/receiving data via HTTP and HTTPS NOTE: PHP must be compiled with the CUR...
Definition: nusoap.php:1552
$http
Definition: raiseError.php:7

References $http, $persistentConnection, $response_timeout, $timeout, nusoap_base\appendDebug(), checkCookies(), nusoap_base\debug(), nusoap_base\getError(), getHTTPContentType(), getHTTPContentTypeCharset(), parseResponse(), nusoap_base\setError(), and UpdateCookies().

Referenced by call().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setCookie()

nusoap_client::setCookie (   $name,
  $value 
)

adds a new Cookie into $this->cookies array

Parameters
string$nameCookie Name
string$valueCookie Value
Returns
boolean if cookie-set was successful returns true, else false @access public

Definition at line 7892 of file nusoap.php.

7892 {
7893 if (strlen($name) == 0) {
7894 return false;
7895 }
7896 $this->cookies[] = array('name' => $name, 'value' => $value);
7897 return true;
7898 }

References $name.

◆ setCredentials()

nusoap_client::setCredentials (   $username,
  $password,
  $authtype = 'basic',
  $certRequest = array() 
)

if authenticating, set user credentials here

Parameters
string$username
string$password
string$authtype(basic|digest|certificate|ntlm)
array$certRequest(keys must be cainfofile (optional), sslcertfile, sslkeyfile, passphrase, verifypeer (optional), verifyhost (optional): see corresponding options in cURL docs) @access public

Definition at line 7647 of file nusoap.php.

7647 {
7648 $this->debug("setCredentials username=$username authtype=$authtype certRequest=");
7649 $this->appendDebug($this->varDump($certRequest));
7650 $this->username = $username;
7651 $this->password = $password;
7652 $this->authtype = $authtype;
7653 $this->certRequest = $certRequest;
7654 }

References $authtype, $certRequest, $password, $username, nusoap_base\appendDebug(), nusoap_base\debug(), and nusoap_base\varDump().

+ Here is the call graph for this function:

◆ setCurlOption()

nusoap_client::setCurlOption (   $option,
  $value 
)

sets user-specified cURL options

Parameters
mixed$optionThe cURL option (always integer?)
mixed$valueThe cURL option value @access public

Definition at line 7573 of file nusoap.php.

7573 {
7574 $this->debug("setCurlOption option=$option, value=");
7575 $this->appendDebug($this->varDump($value));
7576 $this->curl_options[$option] = $value;
7577 }

References nusoap_base\appendDebug(), nusoap_base\debug(), and nusoap_base\varDump().

+ Here is the call graph for this function:

◆ setDefaultRpcParams()

nusoap_client::setDefaultRpcParams (   $rpcParams)

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.

Parameters
boolean$rpcParams@access public
Deprecated:

Definition at line 7714 of file nusoap.php.

7714 {
7715 $this->defaultRpcParams = $rpcParams;
7716 }

◆ setEndpoint()

nusoap_client::setEndpoint (   $endpoint)

sets the SOAP endpoint, which can override WSDL

Parameters
string$endpointThe endpoint URL to use, or empty string or false to prevent override @access public

Definition at line 7585 of file nusoap.php.

7585 {
7586 $this->debug("setEndpoint(\"$endpoint\")");
7587 $this->forceEndpoint = $endpoint;
7588 }

References $endpoint, and nusoap_base\debug().

+ Here is the call graph for this function:

◆ setHeaders()

nusoap_client::setHeaders (   $headers)

set the SOAP headers

Parameters
mixed$headersString of XML with SOAP header content, or array of soapval objects for SOAP headers @access public

Definition at line 7596 of file nusoap.php.

7596 {
7597 $this->debug("setHeaders headers=");
7598 $this->appendDebug($this->varDump($headers));
7599 $this->requestHeaders = $headers;
7600 }

References nusoap_base\appendDebug(), nusoap_base\debug(), and nusoap_base\varDump().

+ Here is the call graph for this function:

◆ setHTTPEncoding()

nusoap_client::setHTTPEncoding (   $enc = 'gzip,
deflate'   
)

use HTTP encoding

Parameters
string$encHTTP encoding @access public

Definition at line 7662 of file nusoap.php.

7662 {
7663 $this->debug("setHTTPEncoding(\"$enc\")");
7664 $this->http_encoding = $enc;
7665 }

References nusoap_base\debug().

+ Here is the call graph for this function:

◆ setHTTPProxy()

nusoap_client::setHTTPProxy (   $proxyhost,
  $proxyport,
  $proxyusername = '',
  $proxypassword = '' 
)

set proxy info here

Parameters
string$proxyhost
string$proxyport
string$proxyusername
string$proxypassword@access public

Definition at line 7631 of file nusoap.php.

7631 {
7632 $this->proxyhost = $proxyhost;
7633 $this->proxyport = $proxyport;
7634 $this->proxyusername = $proxyusername;
7635 $this->proxypassword = $proxypassword;
7636 }

References $proxyhost, $proxypassword, $proxyport, and $proxyusername.

◆ setUseCURL()

nusoap_client::setUseCURL (   $use)

Set whether to try to use cURL connections if possible.

Parameters
boolean$useWhether to try to use cURL @access public

Definition at line 7673 of file nusoap.php.

7673 {
7674 $this->debug("setUseCURL($use)");
7675 $this->use_curl = $use;
7676 }

References nusoap_base\debug().

+ Here is the call graph for this function:

◆ UpdateCookies()

nusoap_client::UpdateCookies (   $cookies)

updates the current cookies with a new set

Parameters
array$cookiesnew cookies with which to update current ones
Returns
boolean always return true @access private

Definition at line 7949 of file nusoap.php.

7949 {
7950 if (sizeof($this->cookies) == 0) {
7951 // no existing cookies: take whatever is new
7952 if (sizeof($cookies) > 0) {
7953 $this->debug('Setting new cookie(s)');
7954 $this->cookies = $cookies;
7955 }
7956 return true;
7957 }
7958 if (sizeof($cookies) == 0) {
7959 // no new cookies: keep what we've got
7960 return true;
7961 }
7962 // merge
7963 foreach ($cookies as $newCookie) {
7964 if (!is_array($newCookie)) {
7965 continue;
7966 }
7967 if ((!isset($newCookie['name'])) || (!isset($newCookie['value']))) {
7968 continue;
7969 }
7970 $newName = $newCookie['name'];
7971
7972 $found = false;
7973 for ($i = 0; $i < count($this->cookies); $i++) {
7974 $cookie = $this->cookies[$i];
7975 if (!is_array($cookie)) {
7976 continue;
7977 }
7978 if (!isset($cookie['name'])) {
7979 continue;
7980 }
7981 if ($newName != $cookie['name']) {
7982 continue;
7983 }
7984 $newDomain = isset($newCookie['domain']) ? $newCookie['domain'] : 'NODOMAIN';
7985 $domain = isset($cookie['domain']) ? $cookie['domain'] : 'NODOMAIN';
7986 if ($newDomain != $domain) {
7987 continue;
7988 }
7989 $newPath = isset($newCookie['path']) ? $newCookie['path'] : 'NOPATH';
7990 $path = isset($cookie['path']) ? $cookie['path'] : 'NOPATH';
7991 if ($newPath != $path) {
7992 continue;
7993 }
7994 $this->cookies[$i] = $newCookie;
7995 $found = true;
7996 $this->debug('Update cookie ' . $newName . '=' . $newCookie['value']);
7997 break;
7998 }
7999 if (! $found) {
8000 $this->debug('Add cookie ' . $newName . '=' . $newCookie['value']);
8001 $this->cookies[] = $newCookie;
8002 }
8003 }
8004 return true;
8005 }
if(!array_key_exists('domain', $_REQUEST)) $domain
Definition: resume.php:8
$i
Definition: disco.tpl.php:19

References $cookies, $domain, $i, $path, and nusoap_base\debug().

Referenced by send().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ useHTTPPersistentConnection()

nusoap_client::useHTTPPersistentConnection ( )

use HTTP persistent connections if possible

@access public

Definition at line 7683 of file nusoap.php.

7683 {
7684 $this->debug("useHTTPPersistentConnection");
7685 $this->persistentConnection = true;
7686 }

References nusoap_base\debug().

+ Here is the call graph for this function:

Field Documentation

◆ $authtype

nusoap_client::$authtype = ''

Definition at line 7068 of file nusoap.php.

Referenced by getProxy(), and setCredentials().

◆ $bindingType

nusoap_client::$bindingType = ''

Definition at line 7094 of file nusoap.php.

Referenced by getProxy().

◆ $certRequest

nusoap_client::$certRequest = array()

Definition at line 7069 of file nusoap.php.

Referenced by getProxy(), and setCredentials().

◆ $cookies

nusoap_client::$cookies = array()

Definition at line 7090 of file nusoap.php.

Referenced by checkCookies(), getCookies(), and UpdateCookies().

◆ $curl_options

nusoap_client::$curl_options = array()

Definition at line 7093 of file nusoap.php.

Referenced by getProxy().

◆ $decode_utf8

nusoap_client::$decode_utf8 = true

Definition at line 7091 of file nusoap.php.

Referenced by getProxy().

◆ $defaultRpcParams

nusoap_client::$defaultRpcParams = false

Definition at line 7086 of file nusoap.php.

Referenced by getDefaultRpcParams(), and getProxy().

◆ $document

nusoap_client::$document = ''

Definition at line 7073 of file nusoap.php.

◆ $endpoint

nusoap_client::$endpoint

Definition at line 7074 of file nusoap.php.

Referenced by __construct(), getProxy(), and setEndpoint().

◆ $endpointType

nusoap_client::$endpointType = ''

Definition at line 7084 of file nusoap.php.

◆ $fault

nusoap_client::$fault

Definition at line 7104 of file nusoap.php.

◆ $faultcode

nusoap_client::$faultcode

Definition at line 7109 of file nusoap.php.

◆ $faultdetail

nusoap_client::$faultdetail

Definition at line 7119 of file nusoap.php.

◆ $faultstring

nusoap_client::$faultstring

Definition at line 7114 of file nusoap.php.

◆ $forceEndpoint

nusoap_client::$forceEndpoint = ''

Definition at line 7075 of file nusoap.php.

Referenced by call(), and getProxy().

◆ $http_encoding

nusoap_client::$http_encoding = false

Definition at line 7081 of file nusoap.php.

Referenced by getProxy().

◆ $operations

nusoap_client::$operations = array()

Definition at line 7092 of file nusoap.php.

Referenced by getProxy().

◆ $password

nusoap_client::$password = ''

Definition at line 7067 of file nusoap.php.

Referenced by getProxy(), and setCredentials().

◆ $persistentConnection

nusoap_client::$persistentConnection = false

Definition at line 7085 of file nusoap.php.

Referenced by getProxy(), and send().

◆ $proxyhost

nusoap_client::$proxyhost = ''

Definition at line 7076 of file nusoap.php.

Referenced by __construct(), getProxy(), and setHTTPProxy().

◆ $proxypassword

nusoap_client::$proxypassword = ''

Definition at line 7079 of file nusoap.php.

Referenced by __construct(), getProxy(), and setHTTPProxy().

◆ $proxyport

nusoap_client::$proxyport = ''

Definition at line 7077 of file nusoap.php.

Referenced by __construct(), getProxy(), and setHTTPProxy().

◆ $proxyusername

nusoap_client::$proxyusername = ''

Definition at line 7078 of file nusoap.php.

Referenced by __construct(), getProxy(), and setHTTPProxy().

◆ $request

nusoap_client::$request = ''

Definition at line 7087 of file nusoap.php.

◆ $requestHeaders

nusoap_client::$requestHeaders = false

Definition at line 7070 of file nusoap.php.

Referenced by getProxy().

◆ $response

nusoap_client::$response = ''

Definition at line 7088 of file nusoap.php.

◆ $response_timeout

nusoap_client::$response_timeout = 30

Definition at line 7083 of file nusoap.php.

Referenced by __construct(), getProxy(), and send().

◆ $responseData

nusoap_client::$responseData = ''

Definition at line 7089 of file nusoap.php.

◆ $responseHeader

nusoap_client::$responseHeader = NULL

Definition at line 7072 of file nusoap.php.

Referenced by getHeader().

◆ $responseHeaders

nusoap_client::$responseHeaders = ''

Definition at line 7071 of file nusoap.php.

Referenced by getHeaders().

◆ $timeout

nusoap_client::$timeout = 0

Definition at line 7082 of file nusoap.php.

Referenced by __construct(), getProxy(), and send().

◆ $use_curl

nusoap_client::$use_curl = false

Definition at line 7095 of file nusoap.php.

Referenced by getProxy().

◆ $username

nusoap_client::$username = ''

Definition at line 7066 of file nusoap.php.

Referenced by getProxy(), and setCredentials().

◆ $xml_encoding

nusoap_client::$xml_encoding = ''

Definition at line 7080 of file nusoap.php.


The documentation for this class was generated from the following file: