ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 7076 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 7147 of file nusoap.php.

7147 {
7149 $this->endpoint = $endpoint;
7150 $this->proxyhost = $proxyhost;
7151 $this->proxyport = $proxyport;
7152 $this->proxyusername = $proxyusername;
7153 $this->proxypassword = $proxypassword;
7154 $this->timeout = $timeout;
7155 $this->response_timeout = $response_timeout;
7156
7157 $this->debug("ctor wsdl=$wsdl timeout=$timeout response_timeout=$response_timeout");
7158 $this->appendDebug('endpoint=' . $this->varDump($endpoint));
7159
7160 // make values
7161 if($wsdl){
7162 if (is_object($endpoint) && (get_class($endpoint) == 'wsdl')) {
7163 $this->wsdl = $endpoint;
7164 $this->endpoint = $this->wsdl->wsdl;
7165 $this->wsdlFile = $this->endpoint;
7166 $this->debug('existing wsdl instance created from ' . $this->endpoint);
7167 $this->checkWSDL();
7168 } else {
7169 $this->wsdlFile = $this->endpoint;
7170 $this->wsdl = null;
7171 $this->debug('will use lazy evaluation of wsdl from ' . $this->endpoint);
7172 }
7173 $this->endpointType = 'wsdl';
7174 } else {
7175 $this->debug("instantiate SOAP with endpoint at $endpoint");
7176 $this->endpointType = 'soap';
7177 }
7178 }
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:298
checkWSDL()
check WSDL passed as an instance or pulled from an endpoint
Definition: nusoap.php:7387
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
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References $endpoint, $proxyhost, $proxypassword, $proxyport, $proxyusername, $response_timeout, $timeout, ILIAS\GlobalScreen\Provider\__construct(), 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 7785 of file nusoap.php.

7785 {
7786 $this->debug("in getProxy endpointType=$this->endpointType");
7787 $this->appendDebug("wsdl=" . $this->varDump($this->wsdl));
7788 if ($this->endpointType != 'wsdl') {
7789 $evalStr = 'A proxy can only be created for a WSDL client';
7790 $this->setError($evalStr);
7791 $evalStr = "echo \"$evalStr\";";
7792 return $evalStr;
7793 }
7794 if ($this->endpointType == 'wsdl' && is_null($this->wsdl)) {
7795 $this->loadWSDL();
7796 if ($this->getError()) {
7797 return "echo \"" . $this->getError() . "\";";
7798 }
7799 }
7800 $evalStr = '';
7801 foreach ($this->operations as $operation => $opData) {
7802 if ($operation != '') {
7803 // create param string and param comment string
7804 if (sizeof($opData['input']['parts']) > 0) {
7805 $paramStr = '';
7806 $paramArrayStr = '';
7807 $paramCommentStr = '';
7808 foreach ($opData['input']['parts'] as $name => $type) {
7809 $paramStr .= "\$$name, ";
7810 $paramArrayStr .= "'$name' => \$$name, ";
7811 $paramCommentStr .= "$type \$$name, ";
7812 }
7813 $paramStr = substr($paramStr, 0, strlen($paramStr)-2);
7814 $paramArrayStr = substr($paramArrayStr, 0, strlen($paramArrayStr)-2);
7815 $paramCommentStr = substr($paramCommentStr, 0, strlen($paramCommentStr)-2);
7816 } else {
7817 $paramStr = '';
7818 $paramArrayStr = '';
7819 $paramCommentStr = 'void';
7820 }
7821 $opData['namespace'] = !isset($opData['namespace']) ? 'http://testuri.com' : $opData['namespace'];
7822 $evalStr .= "// $paramCommentStr
7823 function " . str_replace('.', '__', $operation) . "($paramStr) {
7824 \$params = array($paramArrayStr);
7825 return \$this->call('$operation', \$params, '".$opData['namespace']."', '".(isset($opData['soapAction']) ? $opData['soapAction'] : '')."');
7826 }
7827 ";
7828 unset($paramStr);
7829 unset($paramCommentStr);
7830 }
7831 }
7832 $evalStr = 'class nusoap_proxy_'.$r.' extends nusoap_client {
7833 '.$evalStr.'
7834}';
7835 return $evalStr;
7836 }
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:7413
if($format !==null) $name
Definition: metadata.php:230
$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 7205 of file nusoap.php.

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

References $forceEndpoint, $namespace, 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 7928 of file nusoap.php.

7928 {
7929 if (sizeof($this->cookies) == 0) {
7930 return true;
7931 }
7932 $this->debug('checkCookie: check ' . sizeof($this->cookies) . ' cookies');
7933 $curr_cookies = $this->cookies;
7934 $this->cookies = array();
7935 foreach ($curr_cookies as $cookie) {
7936 if (! is_array($cookie)) {
7937 $this->debug('Remove cookie that is not an array');
7938 continue;
7939 }
7940 if ((isset($cookie['expires'])) && (! empty($cookie['expires']))) {
7941 if (strtotime($cookie['expires']) > time()) {
7942 $this->cookies[] = $cookie;
7943 } else {
7944 $this->debug('Remove expired cookie ' . $cookie['name']);
7945 }
7946 } else {
7947 $this->cookies[] = $cookie;
7948 }
7949 }
7950 $this->debug('checkCookie: '.sizeof($this->cookies).' cookies left in array');
7951 return true;
7952 }

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 7387 of file nusoap.php.

7387 {
7388 $this->appendDebug($this->wsdl->getDebug());
7389 $this->wsdl->clearDebug();
7390 $this->debug('checkWSDL');
7391 // catch errors
7392 if ($errstr = $this->wsdl->getError()) {
7393 $this->debug('got wsdl error: '.$errstr);
7394 $this->setError('wsdl error: '.$errstr);
7395 } elseif ($this->operations = $this->wsdl->getOperations('soap')) {
7396 $this->bindingType = 'soap';
7397 $this->debug('got '.count($this->operations).' operations from wsdl '.$this->wsdlFile.' for binding type '.$this->bindingType);
7398 } elseif ($this->operations = $this->wsdl->getOperations('soap12')) {
7399 $this->bindingType = 'soap12';
7400 $this->debug('got '.count($this->operations).' operations from wsdl '.$this->wsdlFile.' for binding type '.$this->bindingType);
7401 $this->debug('**************** WARNING: SOAP 1.2 BINDING *****************');
7402 } else {
7403 $this->debug('getOperations returned false');
7404 $this->setError('no operations defined in the WSDL document!');
7405 }
7406 }
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 7891 of file nusoap.php.

7891 {
7892 $this->decode_utf8 = $bool;
7893 return true;
7894 }

◆ getCookies()

nusoap_client::getCookies ( )

gets all Cookies

Returns
array with all internal cookies @access public

Definition at line 7918 of file nusoap.php.

7918 {
7919 return $this->cookies;
7920 }

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 7711 of file nusoap.php.

7711 {
7713 }

References $defaultRpcParams.

◆ getHeader()

nusoap_client::getHeader ( )

get the SOAP response Header (parsed)

Returns
mixed @access public

Definition at line 7630 of file nusoap.php.

7630 {
7631 return $this->responseHeader;
7632 }

References $responseHeader.

◆ getHeaders()

nusoap_client::getHeaders ( )

get the SOAP response headers (namespace resolution incomplete)

Returns
string @access public

Definition at line 7620 of file nusoap.php.

7620 {
7622 }

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 7856 of file nusoap.php.

7856 {
7857 return $soapmsg;
7858 }

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 7868 of file nusoap.php.

7868 {
7869 return 'text/xml';
7870 }

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 7881 of file nusoap.php.

7881 {
7883 }
$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 7428 of file nusoap.php.

7428 {
7429 if ($this->endpointType == 'wsdl' && is_null($this->wsdl)) {
7430 $this->loadWSDL();
7431 if ($this->getError())
7432 return false;
7433 }
7434 if(isset($this->operations[$operation])){
7435 return $this->operations[$operation];
7436 }
7437 $this->debug("No data for operation: $operation");
7438 }

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 7737 of file nusoap.php.

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

References $authtype, $bindingType, $certRequest, $curl_options, $decode_utf8, $defaultRpcParams, $endpoint, $forceEndpoint, $http_encoding, $operations, $password, $persistentConnection, $proxyhost, $proxypassword, $proxyport, $proxyusername, $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 7844 of file nusoap.php.

7844 {
7845 $r = rand();
7846 return $this->_getProxyClassCode($r);
7847 }

References _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 7413 of file nusoap.php.

7413 {
7414 $this->debug('instantiating wsdl class with doc: '.$this->wsdlFile);
7415 $this->wsdl = new wsdl('',$this->proxyhost,$this->proxyport,$this->proxyusername,$this->proxypassword,$this->timeout,$this->response_timeout,$this->curl_options,$this->use_curl);
7416 $this->wsdl->setCredentials($this->username, $this->password, $this->authtype, $this->certRequest);
7417 $this->wsdl->fetchWSDL($this->wsdlFile);
7418 $this->checkWSDL();
7419 }
setCredentials($username, $password, $authtype='basic', $certRequest=array())
if authenticating, set user credentials here
Definition: nusoap.php:5062
fetchWSDL($wsdl)
fetches the WSDL document and parses it
Definition: nusoap.php:4592

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 7533 of file nusoap.php.

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

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 7454 of file nusoap.php.

7454 {
7455 $this->checkCookies();
7456 // detect transport
7457 switch(true){
7458 // http(s)
7459 case preg_match('/^http/',$this->endpoint):
7460 $this->debug('transporting via HTTP');
7461 if($this->persistentConnection == true && is_object($this->persistentConnection)){
7463 } else {
7464 $http = new soap_transport_http($this->endpoint, $this->curl_options, $this->use_curl);
7465 if ($this->persistentConnection) {
7466 $http->usePersistentConnection();
7467 }
7468 }
7469 $http->setContentType($this->getHTTPContentType(), $this->getHTTPContentTypeCharset());
7470 $http->setSOAPAction($soapaction);
7471 if($this->proxyhost && $this->proxyport){
7472 $http->setProxy($this->proxyhost,$this->proxyport,$this->proxyusername,$this->proxypassword);
7473 }
7474 if($this->authtype != '') {
7475 $http->setCredentials($this->username, $this->password, $this->authtype, array(), $this->certRequest);
7476 }
7477 if($this->http_encoding != ''){
7478 $http->setEncoding($this->http_encoding);
7479 }
7480 $this->debug('sending message, length='.strlen($msg));
7481 if(preg_match('/^http:/',$this->endpoint)){
7482 //if(strpos($this->endpoint,'http:')){
7483 $this->responseData = $http->send($msg,$timeout,$response_timeout,$this->cookies);
7484 } elseif(preg_match('/^https/',$this->endpoint)){
7485 //} elseif(strpos($this->endpoint,'https:')){
7486 //if(phpversion() == '4.3.0-dev'){
7487 //$response = $http->send($msg,$timeout,$response_timeout);
7488 //$this->request = $http->outgoing_payload;
7489 //$this->response = $http->incoming_payload;
7490 //} else
7491 $this->responseData = $http->sendHTTPS($msg,$timeout,$response_timeout,$this->cookies);
7492 } else {
7493 $this->setError('no http/s in endpoint url');
7494 }
7495 $this->request = $http->outgoing_payload;
7496 $this->response = $http->incoming_payload;
7497 $this->appendDebug($http->getDebug());
7498 $this->UpdateCookies($http->incoming_cookies);
7499
7500 // save transport object if using persistent connections
7501 if ($this->persistentConnection) {
7502 $http->clearDebug();
7503 if (!is_object($this->persistentConnection)) {
7504 $this->persistentConnection = $http;
7505 }
7506 }
7507
7508 if($err = $http->getError()){
7509 $this->setError('HTTP Error: '.$err);
7510 return false;
7511 } elseif($this->getError()){
7512 return false;
7513 } else {
7514 $this->debug('got response, length='. strlen($this->responseData).' type='.$http->incoming_headers['content-type']);
7515 return $this->parseResponse($http->incoming_headers, $this->responseData);
7516 }
7517 break;
7518 default:
7519 $this->setError('no transport found, or selected transport is not yet supported!');
7520 return false;
7521 break;
7522 }
7523 }
checkCookies()
checks all Cookies and delete those which are expired
Definition: nusoap.php:7928
getHTTPContentType()
gets the HTTP content type for the current request.
Definition: nusoap.php:7868
getHTTPContentTypeCharset()
gets the HTTP content type charset for the current request.
Definition: nusoap.php:7881
UpdateCookies($cookies)
updates the current cookies with a new set
Definition: nusoap.php:7961
parseResponse($headers, $data)
processes SOAP message returned from server
Definition: nusoap.php:7533
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 7904 of file nusoap.php.

7904 {
7905 if (strlen($name) == 0) {
7906 return false;
7907 }
7908 $this->cookies[] = array('name' => $name, 'value' => $value);
7909 return true;
7910 }

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 7659 of file nusoap.php.

7659 {
7660 $this->debug("setCredentials username=$username authtype=$authtype certRequest=");
7661 $this->appendDebug($this->varDump($certRequest));
7662 $this->username = $username;
7663 $this->password = $password;
7664 $this->authtype = $authtype;
7665 $this->certRequest = $certRequest;
7666 }

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 7585 of file nusoap.php.

7585 {
7586 $this->debug("setCurlOption option=$option, value=");
7587 $this->appendDebug($this->varDump($value));
7588 $this->curl_options[$option] = $value;
7589 }

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 7726 of file nusoap.php.

7726 {
7727 $this->defaultRpcParams = $rpcParams;
7728 }

◆ 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 7597 of file nusoap.php.

7597 {
7598 $this->debug("setEndpoint(\"$endpoint\")");
7599 $this->forceEndpoint = $endpoint;
7600 }

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 7608 of file nusoap.php.

7608 {
7609 $this->debug("setHeaders headers=");
7610 $this->appendDebug($this->varDump($headers));
7611 $this->requestHeaders = $headers;
7612 }

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 7674 of file nusoap.php.

7674 {
7675 $this->debug("setHTTPEncoding(\"$enc\")");
7676 $this->http_encoding = $enc;
7677 }

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 7643 of file nusoap.php.

7643 {
7644 $this->proxyhost = $proxyhost;
7645 $this->proxyport = $proxyport;
7646 $this->proxyusername = $proxyusername;
7647 $this->proxypassword = $proxypassword;
7648 }

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 7685 of file nusoap.php.

7685 {
7686 $this->debug("setUseCURL($use)");
7687 $this->use_curl = $use;
7688 }

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 7961 of file nusoap.php.

7961 {
7962 if (sizeof($this->cookies) == 0) {
7963 // no existing cookies: take whatever is new
7964 if (sizeof($cookies) > 0) {
7965 $this->debug('Setting new cookie(s)');
7966 $this->cookies = $cookies;
7967 }
7968 return true;
7969 }
7970 if (sizeof($cookies) == 0) {
7971 // no new cookies: keep what we've got
7972 return true;
7973 }
7974 // merge
7975 foreach ($cookies as $newCookie) {
7976 if (!is_array($newCookie)) {
7977 continue;
7978 }
7979 if ((!isset($newCookie['name'])) || (!isset($newCookie['value']))) {
7980 continue;
7981 }
7982 $newName = $newCookie['name'];
7983
7984 $found = false;
7985 for ($i = 0; $i < count($this->cookies); $i++) {
7986 $cookie = $this->cookies[$i];
7987 if (!is_array($cookie)) {
7988 continue;
7989 }
7990 if (!isset($cookie['name'])) {
7991 continue;
7992 }
7993 if ($newName != $cookie['name']) {
7994 continue;
7995 }
7996 $newDomain = isset($newCookie['domain']) ? $newCookie['domain'] : 'NODOMAIN';
7997 $domain = isset($cookie['domain']) ? $cookie['domain'] : 'NODOMAIN';
7998 if ($newDomain != $domain) {
7999 continue;
8000 }
8001 $newPath = isset($newCookie['path']) ? $newCookie['path'] : 'NOPATH';
8002 $path = isset($cookie['path']) ? $cookie['path'] : 'NOPATH';
8003 if ($newPath != $path) {
8004 continue;
8005 }
8006 $this->cookies[$i] = $newCookie;
8007 $found = true;
8008 $this->debug('Update cookie ' . $newName . '=' . $newCookie['value']);
8009 break;
8010 }
8011 if (! $found) {
8012 $this->debug('Add cookie ' . $newName . '=' . $newCookie['value']);
8013 $this->cookies[] = $newCookie;
8014 }
8015 }
8016 return true;
8017 }
$i
Definition: metadata.php:24

References $cookies, $i, 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 7695 of file nusoap.php.

7695 {
7696 $this->debug("useHTTPPersistentConnection");
7697 $this->persistentConnection = true;
7698 }

References nusoap_base\debug().

+ Here is the call graph for this function:

Field Documentation

◆ $authtype

nusoap_client::$authtype = ''

Definition at line 7080 of file nusoap.php.

Referenced by getProxy(), and setCredentials().

◆ $bindingType

nusoap_client::$bindingType = ''

Definition at line 7106 of file nusoap.php.

Referenced by getProxy().

◆ $certRequest

nusoap_client::$certRequest = array()

Definition at line 7081 of file nusoap.php.

Referenced by getProxy(), and setCredentials().

◆ $cookies

nusoap_client::$cookies = array()

Definition at line 7102 of file nusoap.php.

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

◆ $curl_options

nusoap_client::$curl_options = array()

Definition at line 7105 of file nusoap.php.

Referenced by getProxy().

◆ $decode_utf8

nusoap_client::$decode_utf8 = true

Definition at line 7103 of file nusoap.php.

Referenced by getProxy().

◆ $defaultRpcParams

nusoap_client::$defaultRpcParams = false

Definition at line 7098 of file nusoap.php.

Referenced by getDefaultRpcParams(), and getProxy().

◆ $document

nusoap_client::$document = ''

Definition at line 7085 of file nusoap.php.

◆ $endpoint

nusoap_client::$endpoint

Definition at line 7086 of file nusoap.php.

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

◆ $endpointType

nusoap_client::$endpointType = ''

Definition at line 7096 of file nusoap.php.

◆ $fault

nusoap_client::$fault

Definition at line 7116 of file nusoap.php.

◆ $faultcode

nusoap_client::$faultcode

Definition at line 7121 of file nusoap.php.

◆ $faultdetail

nusoap_client::$faultdetail

Definition at line 7131 of file nusoap.php.

◆ $faultstring

nusoap_client::$faultstring

Definition at line 7126 of file nusoap.php.

◆ $forceEndpoint

nusoap_client::$forceEndpoint = ''

Definition at line 7087 of file nusoap.php.

Referenced by call(), and getProxy().

◆ $http_encoding

nusoap_client::$http_encoding = false

Definition at line 7093 of file nusoap.php.

Referenced by getProxy().

◆ $operations

nusoap_client::$operations = array()

Definition at line 7104 of file nusoap.php.

Referenced by getProxy().

◆ $password

nusoap_client::$password = ''

Definition at line 7079 of file nusoap.php.

Referenced by getProxy(), and setCredentials().

◆ $persistentConnection

nusoap_client::$persistentConnection = false

Definition at line 7097 of file nusoap.php.

Referenced by getProxy(), and send().

◆ $proxyhost

nusoap_client::$proxyhost = ''

Definition at line 7088 of file nusoap.php.

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

◆ $proxypassword

nusoap_client::$proxypassword = ''

Definition at line 7091 of file nusoap.php.

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

◆ $proxyport

nusoap_client::$proxyport = ''

Definition at line 7089 of file nusoap.php.

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

◆ $proxyusername

nusoap_client::$proxyusername = ''

Definition at line 7090 of file nusoap.php.

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

◆ $request

nusoap_client::$request = ''

Definition at line 7099 of file nusoap.php.

◆ $requestHeaders

nusoap_client::$requestHeaders = false

Definition at line 7082 of file nusoap.php.

Referenced by getProxy().

◆ $response

nusoap_client::$response = ''

Definition at line 7100 of file nusoap.php.

◆ $response_timeout

nusoap_client::$response_timeout = 30

Definition at line 7095 of file nusoap.php.

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

◆ $responseData

nusoap_client::$responseData = ''

Definition at line 7101 of file nusoap.php.

◆ $responseHeader

nusoap_client::$responseHeader = NULL

Definition at line 7084 of file nusoap.php.

Referenced by getHeader().

◆ $responseHeaders

nusoap_client::$responseHeaders = ''

Definition at line 7083 of file nusoap.php.

Referenced by getHeaders().

◆ $timeout

nusoap_client::$timeout = 0

Definition at line 7094 of file nusoap.php.

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

◆ $use_curl

nusoap_client::$use_curl = false

Definition at line 7107 of file nusoap.php.

Referenced by getProxy().

◆ $username

nusoap_client::$username = ''

Definition at line 7078 of file nusoap.php.

Referenced by getProxy(), and setCredentials().

◆ $xml_encoding

nusoap_client::$xml_encoding = ''

Definition at line 7092 of file nusoap.php.


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