ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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
 __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)
 serializes PHP values in accordance w/ section 5. More...
 
 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

 $return
 
 $wsdl
 
 $wsdlFile
 
 $opData
 
 $operation
 
 $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.7.3'
 
 $revision = '$Revision$'
 
 $error_str = ''
 
 $debug_str = ''
 
 $charencoding = true
 
 $debugLevel
 
 $XMLSchemaVersion = 'http://www.w3.org/2001/XMLSchema'
 
 $soap_defencoding = 'UTF-8'
 
 $namespaces
 
 $usedNamespaces = array()
 
 $typemap
 
 $xmlEntities
 

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

7255 {
7257 $this->endpoint = $endpoint;
7258 $this->proxyhost = $proxyhost;
7259 $this->proxyport = $proxyport;
7260 $this->proxyusername = $proxyusername;
7261 $this->proxypassword = $proxypassword;
7262 $this->timeout = $timeout;
7263 $this->response_timeout = $response_timeout;
7264
7265 $this->debug("ctor wsdl=$wsdl timeout=$timeout response_timeout=$response_timeout");
7266 $this->appendDebug('endpoint=' . $this->varDump($endpoint));
7267
7268 // make values
7269 if ($wsdl) {
7270 if (is_object($endpoint) && (get_class($endpoint) == 'wsdl')) {
7271 $this->wsdl = $endpoint;
7272 $this->endpoint = $this->wsdl->wsdl;
7273 $this->wsdlFile = $this->endpoint;
7274 $this->debug('existing wsdl instance created from ' . $this->endpoint);
7275 $this->checkWSDL();
7276 } else {
7277 $this->wsdlFile = $this->endpoint;
7278 $this->wsdl = null;
7279 $this->debug('will use lazy evaluation of wsdl from ' . $this->endpoint);
7280 }
7281 $this->endpointType = 'wsdl';
7282 } else {
7283 $this->debug("instantiate SOAP with endpoint at $endpoint");
7284 $this->endpointType = 'soap';
7285 }
7286 }
debug($string)
adds debug data to the instance debug string with formatting
Definition: nusoap.php:250
varDump($data)
Returns a string with the output of var_dump.
Definition: nusoap.php:867
appendDebug($string)
adds debug data to the instance debug string without formatting
Definition: nusoap.php:263
checkWSDL()
check WSDL passed as an instance or pulled from an endpoint
Definition: nusoap.php:7497
parses a WSDL file, allows access to it's data, other utility methods.
Definition: nusoap.php:4584
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

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

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

7915 {
7916 $this->debug("in getProxy endpointType=$this->endpointType");
7917 $this->appendDebug("wsdl=" . $this->varDump($this->wsdl));
7918 if ($this->endpointType != 'wsdl') {
7919 $evalStr = 'A proxy can only be created for a WSDL client';
7920 $this->setError($evalStr);
7921 $evalStr = "echo \"$evalStr\";";
7922 return $evalStr;
7923 }
7924 if ($this->endpointType == 'wsdl' && is_null($this->wsdl)) {
7925 $this->loadWSDL();
7926 if ($this->getError()) {
7927 return "echo \"" . $this->getError() . "\";";
7928 }
7929 }
7930 $evalStr = '';
7931 foreach ($this->operations as $operation => $opData) {
7932 if ($operation != '') {
7933 // create param string and param comment string
7934 if (sizeof($opData['input']['parts']) > 0) {
7935 $paramStr = '';
7936 $paramArrayStr = '';
7937 $paramCommentStr = '';
7938 foreach ($opData['input']['parts'] as $name => $type) {
7939 $paramStr .= "\$$name, ";
7940 $paramArrayStr .= "'$name' => \$$name, ";
7941 $paramCommentStr .= "$type \$$name, ";
7942 }
7943 $paramStr = substr($paramStr, 0, strlen($paramStr) - 2);
7944 $paramArrayStr = substr($paramArrayStr, 0, strlen($paramArrayStr) - 2);
7945 $paramCommentStr = substr($paramCommentStr, 0, strlen($paramCommentStr) - 2);
7946 } else {
7947 $paramStr = '';
7948 $paramArrayStr = '';
7949 $paramCommentStr = 'void';
7950 }
7951 $opData['namespace'] = !isset($opData['namespace']) ? 'http://testuri.com' : $opData['namespace'];
7952 $evalStr .= "// $paramCommentStr
7953 function " . str_replace('.', '__', $operation) . "($paramStr) {
7954 \$params = array($paramArrayStr);
7955 return \$this->call('$operation', \$params, '" . $opData['namespace'] . "', '" . (isset($opData['soapAction']) ? $opData['soapAction'] : '') . "');
7956 }
7957 ";
7958 unset($paramStr);
7959 unset($paramCommentStr);
7960 }
7961 }
7962 $evalStr = 'class nusoap_proxy_' . $r . ' extends nusoap_client {
7963 ' . $evalStr . '
7964}';
7965 return $evalStr;
7966 }
setError($str)
sets error string
Definition: nusoap.php:353
getError()
returns error string if present
Definition: nusoap.php:339
loadWSDL()
instantiate wsdl object and parse wsdl file
Definition: nusoap.php:7524

References $opData, $operation, 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 7313 of file nusoap.php.

7313 ://tempuri.org', $soapAction = '', $headers = false, $rpcParams = null, $style = 'rpc', $use = 'encoded')
7314 {
7315 $this->operation = $operation;
7316 $this->fault = false;
7317 $this->setError('');
7318 $this->request = '';
7319 $this->response = '';
7320 $this->responseData = '';
7321 $this->faultstring = '';
7322 $this->faultcode = '';
7323 $this->opData = array();
7324
7325 $this->debug("call: operation=$operation, namespace=$namespace, soapAction=$soapAction, rpcParams=$rpcParams, style=$style, use=$use, endpointType=$this->endpointType");
7326 $this->appendDebug('params=' . $this->varDump($params));
7327 $this->appendDebug('headers=' . $this->varDump($headers));
7328 if ($headers) {
7329 $this->requestHeaders = $headers;
7330 }
7331 if ($this->endpointType == 'wsdl' && is_null($this->wsdl)) {
7332 $this->loadWSDL();
7333 if ($this->getError()) {
7334 return false;
7335 }
7336 }
7337 // serialize parameters
7338 if ($this->endpointType == 'wsdl' && $opData = $this->getOperationData($operation)) {
7339 // use WSDL for operation
7340 $this->opData = $opData;
7341 $this->debug("found operation");
7342 $this->appendDebug('opData=' . $this->varDump($opData));
7343 if (isset($opData['soapAction'])) {
7344 $soapAction = $opData['soapAction'];
7345 }
7346 if (! $this->forceEndpoint) {
7347 $this->endpoint = $opData['endpoint'];
7348 } else {
7349 $this->endpoint = $this->forceEndpoint;
7350 }
7351 $namespace = isset($opData['input']['namespace']) ? $opData['input']['namespace'] : $namespace;
7352 $style = $opData['style'];
7353 $use = $opData['input']['use'];
7354 // add ns to ns array
7355 if ($namespace != '' && !isset($this->wsdl->namespaces[$namespace])) {
7356 $nsPrefix = 'ns' . rand(1000, 9999);
7357 $this->wsdl->namespaces[$nsPrefix] = $namespace;
7358 }
7359 $nsPrefix = $this->wsdl->getPrefixFromNamespace($namespace);
7360 // serialize payload
7361 if (is_string($params)) {
7362 $this->debug("serializing param string for WSDL operation $operation");
7363 $payload = $params;
7364 } elseif (is_array($params)) {
7365 $this->debug("serializing param array for WSDL operation $operation");
7366 $payload = $this->wsdl->serializeRPCParameters($operation, 'input', $params, $this->bindingType);
7367 } else {
7368 $this->debug('params must be array or string');
7369 $this->setError('params must be array or string');
7370 return false;
7371 }
7372 $usedNamespaces = $this->wsdl->usedNamespaces;
7373 if (isset($opData['input']['encodingStyle'])) {
7374 $encodingStyle = $opData['input']['encodingStyle'];
7375 } else {
7376 $encodingStyle = '';
7377 }
7378 $this->appendDebug($this->wsdl->getDebug());
7379 $this->wsdl->clearDebug();
7380 if ($errstr = $this->wsdl->getError()) {
7381 $this->debug('got wsdl error: ' . $errstr);
7382 $this->setError('wsdl error: ' . $errstr);
7383 return false;
7384 }
7385 } elseif ($this->endpointType == 'wsdl') {
7386 // operation not in WSDL
7387 $this->appendDebug($this->wsdl->getDebug());
7388 $this->wsdl->clearDebug();
7389 $this->setError('operation ' . $operation . ' not present.');
7390 $this->debug("operation '$operation' not present.");
7391 return false;
7392 } else {
7393 // no WSDL
7394 //$this->namespaces['ns1'] = $namespace;
7395 $nsPrefix = 'ns' . rand(1000, 9999);
7396 // serialize
7397 $payload = '';
7398 if (is_string($params)) {
7399 $this->debug("serializing param string for operation $operation");
7400 $payload = $params;
7401 } elseif (is_array($params)) {
7402 $this->debug("serializing param array for operation $operation");
7403 foreach ($params as $k => $v) {
7404 $payload .= $this->serialize_val($v, $k, false, false, false, false, $use);
7405 }
7406 } else {
7407 $this->debug('params must be array or string');
7408 $this->setError('params must be array or string');
7409 return false;
7410 }
7411 $usedNamespaces = array();
7412 if ($use == 'encoded') {
7413 $encodingStyle = 'http://schemas.xmlsoap.org/soap/encoding/';
7414 } else {
7415 $encodingStyle = '';
7416 }
7417 }
7418 // wrap RPC calls with method element
7419 if ($style == 'rpc') {
7420 if ($use == 'literal') {
7421 $this->debug("wrapping RPC request with literal method element");
7422 if ($namespace) {
7423 // 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
7424 $payload = "<$nsPrefix:$operation xmlns:$nsPrefix=\"$namespace\">" .
7425 $payload .
7426 "</$nsPrefix:$operation>";
7427 } else {
7428 $payload = "<$operation>" . $payload . "</$operation>";
7429 }
7430 } else {
7431 $this->debug("wrapping RPC request with encoded method element");
7432 if ($namespace) {
7433 $payload = "<$nsPrefix:$operation xmlns:$nsPrefix=\"$namespace\">" .
7434 $payload .
7435 "</$nsPrefix:$operation>";
7436 } else {
7437 $payload = "<$operation>" .
7438 $payload .
7439 "</$operation>";
7440 }
7441 }
7442 }
7443 // serialize envelope
7444 $soapmsg = $this->serializeEnvelope($payload, $this->requestHeaders, $usedNamespaces, $style, $use, $encodingStyle);
7445 $this->debug("endpoint=$this->endpoint, soapAction=$soapAction, namespace=$namespace, style=$style, use=$use, encodingStyle=$encodingStyle");
7446 $this->debug('SOAP message length=' . strlen($soapmsg) . ' contents (max 1000 bytes)=' . substr($soapmsg, 0, 1000));
7447 // send
7448 $return = $this->send($this->getHTTPBody($soapmsg), $soapAction, $this->timeout, $this->response_timeout);
7449 if ($errstr = $this->getError()) {
7450 $this->debug('Error: ' . $errstr);
7451 return false;
7452 } else {
7453 $this->return = $return;
7454 $this->debug('sent message successfully and got a(n) ' . gettype($return));
7455 $this->appendDebug('return=' . $this->varDump($return));
7456
7457 // fault?
7458 if (is_array($return) && isset($return['faultcode'])) {
7459 $this->debug('got fault');
7460 $this->setError($return['faultcode'] . ': ' . $return['faultstring']);
7461 $this->fault = true;
7462 foreach ($return as $k => $v) {
7463 $this->$k = $v;
7464 $this->debug("$k = $v<br>");
7465 }
7466 return $return;
7467 } elseif ($style == 'document') {
7468 // NOTE: if the response is defined to have multiple parts (i.e. unwrapped),
7469 // we are only going to return the first part here...sorry about that
7470 return $return;
7471 } else {
7472 // array of return values
7473 if (is_array($return)) {
7474 // multiple 'out' parameters, which we return wrapped up
7475 // in the array
7476 if (sizeof($return) > 1) {
7477 return $return;
7478 }
7479 // single 'out' parameter (normally the return value)
7480 $return = array_shift($return);
7481 $this->debug('return shifted value: ');
7482 $this->appendDebug($this->varDump($return));
7483 return $return;
7484 // nothing returned (ie, echoVoid)
7485 } else {
7486 return "";
7487 }
7488 }
7489 }
7490 }
& getDebug()
gets the current debug data for this instance
Definition: nusoap.php:290
getPrefixFromNamespace($ns)
returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given...
Definition: nusoap.php:830
serialize_val($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded', $soapval=false)
serializes PHP values in accordance w/ section 5.
Definition: nusoap.php:391
serializeEnvelope($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded', $encodingStyle='http://schemas.xmlsoap.org/soap/encoding/')
serializes a message
Definition: nusoap.php:658
clearDebug()
clears the current debug data for this instance
Definition: nusoap.php:277
send($msg, $soapaction='', $timeout=0, $response_timeout=30)
send the SOAP message
Definition: nusoap.php:7568
getOperationData($operation)
get available data pertaining to an operation
Definition: nusoap.php:7540
getHTTPBody($soapmsg)
gets the HTTP body for the current request.
Definition: nusoap.php:7987
serializeRPCParameters($operation, $direction, $parameters, $bindingType='soap')
serialize PHP values according to a WSDL message definition contrary to the method name,...
Definition: nusoap.php:5706
if($err=$client->getError()) $namespace
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
Definition: ltiregstart.php:31
if(count($parts) !=3) $payload
Definition: ltitoken.php:67

References $forceEndpoint, $namespace, $opData, $operation, $params, $payload, $return, 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 8065 of file nusoap.php.

8066 {
8067 if (sizeof($this->cookies) == 0) {
8068 return true;
8069 }
8070 $this->debug('checkCookie: check ' . sizeof($this->cookies) . ' cookies');
8071 $curr_cookies = $this->cookies;
8072 $this->cookies = array();
8073 foreach ($curr_cookies as $cookie) {
8074 if (! is_array($cookie)) {
8075 $this->debug('Remove cookie that is not an array');
8076 continue;
8077 }
8078 if ((isset($cookie['expires'])) && (! empty($cookie['expires']))) {
8079 if (strtotime($cookie['expires']) > time()) {
8080 $this->cookies[] = $cookie;
8081 } else {
8082 $this->debug('Remove expired cookie ' . $cookie['name']);
8083 }
8084 } else {
8085 $this->cookies[] = $cookie;
8086 }
8087 }
8088 $this->debug('checkCookie: ' . sizeof($this->cookies) . ' cookies left in array');
8089 return true;
8090 }

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

7498 {
7499 $this->appendDebug($this->wsdl->getDebug());
7500 $this->wsdl->clearDebug();
7501 $this->debug('checkWSDL');
7502 // catch errors
7503 if ($errstr = $this->wsdl->getError()) {
7504 $this->debug('got wsdl error: ' . $errstr);
7505 $this->setError('wsdl error: ' . $errstr);
7506 } elseif ($this->operations = $this->wsdl->getOperations('soap')) {
7507 $this->bindingType = 'soap';
7508 $this->debug('got ' . count($this->operations) . ' operations from wsdl ' . $this->wsdlFile . ' for binding type ' . $this->bindingType);
7509 } elseif ($this->operations = $this->wsdl->getOperations('soap12')) {
7510 $this->bindingType = 'soap12';
7511 $this->debug('got ' . count($this->operations) . ' operations from wsdl ' . $this->wsdlFile . ' for binding type ' . $this->bindingType);
7512 $this->debug('**************** WARNING: SOAP 1.2 BINDING *****************');
7513 } else {
7514 $this->debug('getOperations returned false');
7515 $this->setError('no operations defined in the WSDL document!');
7516 }
7517 }
getOperations($bindingType='soap')
returns an assoc array of operation names => operation data
Definition: nusoap.php:5162

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

8026 {
8027 $this->decode_utf8 = $bool;
8028 return true;
8029 }

◆ getCookies()

nusoap_client::getCookies ( )

gets all Cookies

Returns
array with all internal cookies @access public

Definition at line 8054 of file nusoap.php.

8055 {
8056 return $this->cookies;
8057 }

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

7838 {
7840 }

References $defaultRpcParams.

◆ getHeader()

nusoap_client::getHeader ( )

get the SOAP response Header (parsed)

Returns
mixed @access public

Definition at line 7750 of file nusoap.php.

7751 {
7752 return $this->responseHeader;
7753 }

References $responseHeader.

◆ getHeaders()

nusoap_client::getHeaders ( )

get the SOAP response headers (namespace resolution incomplete)

Returns
string @access public

Definition at line 7739 of file nusoap.php.

7740 {
7742 }

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

7988 {
7989 return $soapmsg;
7990 }

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

8001 {
8002 return 'text/xml';
8003 }

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

8015 {
8017 }
$soap_defencoding
Definition: nusoap.php:122

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

7541 {
7542 if ($this->endpointType == 'wsdl' && is_null($this->wsdl)) {
7543 $this->loadWSDL();
7544 if ($this->getError()) {
7545 return false;
7546 }
7547 }
7548 if (isset($this->operations[$operation])) {
7549 return $this->operations[$operation];
7550 }
7551 $this->debug("No data for operation: $operation");
7552 }

References $operation, 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 7865 of file nusoap.php.

7866 {
7867 $r = rand();
7868 $evalStr = $this->_getProxyClassCode($r);
7869 //$this->debug("proxy class: $evalStr");
7870 if ($this->getError()) {
7871 $this->debug("Error from _getProxyClassCode, so return NULL");
7872 return null;
7873 }
7874 // eval the class
7875 eval($evalStr);
7876 // instantiate proxy object
7877 eval("\$proxy = new nusoap_proxy_$r('');");
7878 // transfer current wsdl data to the proxy thereby avoiding parsing the wsdl twice
7879 $proxy->endpointType = 'wsdl';
7880 $proxy->wsdlFile = $this->wsdlFile;
7881 $proxy->wsdl = $this->wsdl;
7882 $proxy->operations = $this->operations;
7883 $proxy->defaultRpcParams = $this->defaultRpcParams;
7884 // transfer other state
7885 $proxy->soap_defencoding = $this->soap_defencoding;
7886 $proxy->username = $this->username;
7887 $proxy->password = $this->password;
7888 $proxy->authtype = $this->authtype;
7889 $proxy->certRequest = $this->certRequest;
7890 $proxy->requestHeaders = $this->requestHeaders;
7891 $proxy->endpoint = $this->endpoint;
7892 $proxy->forceEndpoint = $this->forceEndpoint;
7893 $proxy->proxyhost = $this->proxyhost;
7894 $proxy->proxyport = $this->proxyport;
7895 $proxy->proxyusername = $this->proxyusername;
7896 $proxy->proxypassword = $this->proxypassword;
7897 $proxy->http_encoding = $this->http_encoding;
7898 $proxy->timeout = $this->timeout;
7899 $proxy->response_timeout = $this->response_timeout;
7900 $proxy->persistentConnection = &$this->persistentConnection;
7901 $proxy->decode_utf8 = $this->decode_utf8;
7902 $proxy->curl_options = $this->curl_options;
7903 $proxy->bindingType = $this->bindingType;
7904 $proxy->use_curl = $this->use_curl;
7905 return $proxy;
7906 }
_getProxyClassCode($r)
dynamically creates proxy class code
Definition: nusoap.php:7914

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, $wsdl, $wsdlFile, _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 7974 of file nusoap.php.

7975 {
7976 $r = rand();
7977 return $this->_getProxyClassCode($r);
7978 }

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

7525 {
7526 $this->debug('instantiating wsdl class with doc: ' . $this->wsdlFile);
7527 $this->wsdl = new wsdl('', $this->proxyhost, $this->proxyport, $this->proxyusername, $this->proxypassword, $this->timeout, $this->response_timeout, $this->curl_options, $this->use_curl);
7528 $this->wsdl->setCredentials($this->username, $this->password, $this->authtype, $this->certRequest);
7529 $this->wsdl->fetchWSDL($this->wsdlFile);
7530 $this->checkWSDL();
7531 }
setCredentials($username, $password, $authtype='basic', $certRequest=array())
if authenticating, set user credentials here
Definition: nusoap.php:5138
fetchWSDL($wsdl)
fetches the WSDL document and parses it
Definition: nusoap.php:4666

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

7649 {
7650 $this->debug('Entering parseResponse() for data of length ' . strlen($data) . ' headers:');
7651 $this->appendDebug($this->varDump($headers));
7652 if (!strstr($headers['content-type'], 'text/xml')) {
7653 $this->setError('Response not of type text/xml: ' . $headers['content-type']);
7654 return false;
7655 }
7656 if (strpos($headers['content-type'], '=')) {
7657 $enc = str_replace('"', '', substr(strstr($headers["content-type"], '='), 1));
7658 $this->debug('Got response encoding: ' . $enc);
7659 if (preg_match('/^(ISO-8859-1|US-ASCII|UTF-8)$/i', $enc)) {
7660 $this->xml_encoding = strtoupper($enc);
7661 } else {
7662 $this->xml_encoding = 'US-ASCII';
7663 }
7664 } else {
7665 // should be US-ASCII for HTTP 1.0 or ISO-8859-1 for HTTP 1.1
7666 $this->xml_encoding = 'ISO-8859-1';
7667 }
7668 $this->debug('Use encoding: ' . $this->xml_encoding . ' when creating nusoap_parser');
7669 $parser = new nusoap_parser($data, $this->xml_encoding, $this->operation, $this->decode_utf8);
7670 // add parser debug data to our debug
7671 $this->appendDebug($parser->getDebug());
7672 // if parse errors
7673 if ($errstr = $parser->getError()) {
7674 $this->setError($errstr);
7675 // destroy the parser object
7676 unset($parser);
7677 return false;
7678 } else {
7679 // get SOAP headers
7680 $this->responseHeaders = $parser->getHeaders();
7681 // get SOAP headers
7682 $this->responseHeader = $parser->get_soapheader();
7683 // get decoded message
7684 $return = $parser->get_soapbody();
7685 // add document for doclit support
7686 $this->document = $parser->document;
7687 // destroy the parser object
7688 unset($parser);
7689 // return decode message
7690 return $return;
7691 }
7692 }
nusoap_parser class parses SOAP XML messages into native PHP values
Definition: nusoap.php:6518

References $data, $return, 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.

Parameters
string$msga SOAPx4 soapmsg object
string$soapactionSOAPAction value
integer$timeoutset connection timeout in seconds
integer$response_timeoutset response timeout in seconds
Returns
mixed native PHP types. @access private

Definition at line 7568 of file nusoap.php.

7569 {
7570 $this->checkCookies();
7571 // detect transport
7572 switch (true) {
7573 // http(s)
7574 case preg_match('/^http/', $this->endpoint):
7575 $this->debug('transporting via HTTP');
7576 if ($this->persistentConnection == true && is_object($this->persistentConnection)) {
7578 } else {
7579 $http = new soap_transport_http($this->endpoint, $this->curl_options, $this->use_curl);
7580 if ($this->persistentConnection) {
7581 $http->usePersistentConnection();
7582 }
7583 }
7584 $http->setContentType($this->getHTTPContentType(), $this->getHTTPContentTypeCharset());
7585 $http->setSOAPAction($soapaction);
7586 if ($this->proxyhost && $this->proxyport) {
7587 $http->setProxy($this->proxyhost, $this->proxyport, $this->proxyusername, $this->proxypassword);
7588 }
7589 if ($this->authtype != '') {
7590 $http->setCredentials($this->username, $this->password, $this->authtype, array(), $this->certRequest);
7591 }
7592 if ($this->http_encoding != '') {
7593 $http->setEncoding($this->http_encoding);
7594 }
7595 $this->debug('sending message, length=' . strlen($msg));
7596 if (preg_match('/^http:/', $this->endpoint)) {
7597 //if(strpos($this->endpoint,'http:')){
7598 $this->responseData = $http->send($msg, $timeout, $response_timeout, $this->cookies);
7599 } elseif (preg_match('/^https/', $this->endpoint)) {
7600 //} elseif(strpos($this->endpoint,'https:')){
7601 //if(phpversion() == '4.3.0-dev'){
7602 //$response = $http->send($msg,$timeout,$response_timeout);
7603 //$this->request = $http->outgoing_payload;
7604 //$this->response = $http->incoming_payload;
7605 //} else
7606 $this->responseData = $http->sendHTTPS($msg, $timeout, $response_timeout, $this->cookies);
7607 } else {
7608 $this->setError('no http/s in endpoint url');
7609 }
7610 $this->request = $http->outgoing_payload;
7611 $this->response = $http->incoming_payload;
7612 $this->appendDebug($http->getDebug());
7613 $this->UpdateCookies($http->incoming_cookies);
7614
7615 // save transport object if using persistent connections
7616 if ($this->persistentConnection) {
7617 $http->clearDebug();
7618 if (!is_object($this->persistentConnection)) {
7619 $this->persistentConnection = $http;
7620 }
7621 }
7622
7623 if ($err = $http->getError()) {
7624 $this->setError('HTTP Error: ' . $err);
7625 return false;
7626 } elseif ($this->getError()) {
7627 return false;
7628 } else {
7629 $this->debug('got response, length=' . strlen($this->responseData) . ' type=' . $http->incoming_headers['content-type']);
7630 return $this->parseResponse($http->incoming_headers, $this->responseData);
7631 }
7632 break;
7633 default:
7634 $this->setError('no transport found, or selected transport is not yet supported!');
7635 return false;
7636 break;
7637 }
7638 }
checkCookies()
checks all Cookies and delete those which are expired
Definition: nusoap.php:8065
getHTTPContentType()
gets the HTTP content type for the current request.
Definition: nusoap.php:8000
getHTTPContentTypeCharset()
gets the HTTP content type charset for the current request.
Definition: nusoap.php:8014
UpdateCookies($cookies)
updates the current cookies with a new set
Definition: nusoap.php:8099
parseResponse($headers, $data)
processes SOAP message returned from server
Definition: nusoap.php:7648
transport class for sending/receiving data via HTTP and HTTPS NOTE: PHP must be compiled with the CUR...
Definition: nusoap.php:2141
$http
Definition: deliver.php:30

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

8040 {
8041 if (strlen($name) == 0) {
8042 return false;
8043 }
8044 $this->cookies[] = array('name' => $name, 'value' => $value);
8045 return true;
8046 }

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

7782 {
7783 $this->debug("setCredentials username=$username authtype=$authtype certRequest=");
7784 $this->appendDebug($this->varDump($certRequest));
7785 $this->username = $username;
7786 $this->password = $password;
7787 $this->authtype = $authtype;
7788 $this->certRequest = $certRequest;
7789 }

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

7702 {
7703 $this->debug("setCurlOption option=$option, value=");
7704 $this->appendDebug($this->varDump($value));
7705 $this->curl_options[$option] = $value;
7706 }

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

7854 {
7855 $this->defaultRpcParams = $rpcParams;
7856 }

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

7715 {
7716 $this->debug("setEndpoint(\"$endpoint\")");
7717 $this->forceEndpoint = $endpoint;
7718 }

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

7727 {
7728 $this->debug("setHeaders headers=");
7729 $this->appendDebug($this->varDump($headers));
7730 $this->requestHeaders = $headers;
7731 }

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

7798 {
7799 $this->debug("setHTTPEncoding(\"$enc\")");
7800 $this->http_encoding = $enc;
7801 }

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

7765 {
7766 $this->proxyhost = $proxyhost;
7767 $this->proxyport = $proxyport;
7768 $this->proxyusername = $proxyusername;
7769 $this->proxypassword = $proxypassword;
7770 }

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

7810 {
7811 $this->debug("setUseCURL($use)");
7812 $this->use_curl = $use;
7813 }

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

8100 {
8101 if (sizeof($this->cookies) == 0) {
8102 // no existing cookies: take whatever is new
8103 if (sizeof($cookies) > 0) {
8104 $this->debug('Setting new cookie(s)');
8105 $this->cookies = $cookies;
8106 }
8107 return true;
8108 }
8109 if (sizeof($cookies) == 0) {
8110 // no new cookies: keep what we've got
8111 return true;
8112 }
8113 // merge
8114 foreach ($cookies as $newCookie) {
8115 if (!is_array($newCookie)) {
8116 continue;
8117 }
8118 if ((!isset($newCookie['name'])) || (!isset($newCookie['value']))) {
8119 continue;
8120 }
8121 $newName = $newCookie['name'];
8122
8123 $found = false;
8124 for ($i = 0; $i < count($this->cookies); $i++) {
8125 $cookie = $this->cookies[$i];
8126 if (!is_array($cookie)) {
8127 continue;
8128 }
8129 if (!isset($cookie['name'])) {
8130 continue;
8131 }
8132 if ($newName != $cookie['name']) {
8133 continue;
8134 }
8135 $newDomain = isset($newCookie['domain']) ? $newCookie['domain'] : 'NODOMAIN';
8136 $domain = isset($cookie['domain']) ? $cookie['domain'] : 'NODOMAIN';
8137 if ($newDomain != $domain) {
8138 continue;
8139 }
8140 $newPath = isset($newCookie['path']) ? $newCookie['path'] : 'NOPATH';
8141 $path = isset($cookie['path']) ? $cookie['path'] : 'NOPATH';
8142 if ($newPath != $path) {
8143 continue;
8144 }
8145 $this->cookies[$i] = $newCookie;
8146 $found = true;
8147 $this->debug('Update cookie ' . $newName . '=' . $newCookie['value']);
8148 break;
8149 }
8150 if (! $found) {
8151 $this->debug('Add cookie ' . $newName . '=' . $newCookie['value']);
8152 $this->cookies[] = $newCookie;
8153 }
8154 }
8155 return true;
8156 }
$path
Definition: ltiservices.php:30

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

7821 {
7822 $this->debug("useHTTPPersistentConnection");
7823 $this->persistentConnection = true;
7824 }

References nusoap_base\debug().

+ Here is the call graph for this function:

Field Documentation

◆ $authtype

nusoap_client::$authtype = ''

Definition at line 7187 of file nusoap.php.

Referenced by getProxy(), and setCredentials().

◆ $bindingType

nusoap_client::$bindingType = ''

Definition at line 7213 of file nusoap.php.

Referenced by getProxy().

◆ $certRequest

nusoap_client::$certRequest = array()

Definition at line 7188 of file nusoap.php.

Referenced by getProxy(), and setCredentials().

◆ $cookies

nusoap_client::$cookies = array()

Definition at line 7209 of file nusoap.php.

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

◆ $curl_options

nusoap_client::$curl_options = array()

Definition at line 7212 of file nusoap.php.

Referenced by getProxy().

◆ $decode_utf8

nusoap_client::$decode_utf8 = true

Definition at line 7210 of file nusoap.php.

Referenced by getProxy().

◆ $defaultRpcParams

nusoap_client::$defaultRpcParams = false

Definition at line 7205 of file nusoap.php.

Referenced by getDefaultRpcParams(), and getProxy().

◆ $document

nusoap_client::$document = ''

Definition at line 7192 of file nusoap.php.

◆ $endpoint

nusoap_client::$endpoint

Definition at line 7193 of file nusoap.php.

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

◆ $endpointType

nusoap_client::$endpointType = ''

Definition at line 7203 of file nusoap.php.

◆ $fault

nusoap_client::$fault

Definition at line 7223 of file nusoap.php.

◆ $faultcode

nusoap_client::$faultcode

Definition at line 7228 of file nusoap.php.

◆ $faultdetail

nusoap_client::$faultdetail

Definition at line 7238 of file nusoap.php.

◆ $faultstring

nusoap_client::$faultstring

Definition at line 7233 of file nusoap.php.

◆ $forceEndpoint

nusoap_client::$forceEndpoint = ''

Definition at line 7194 of file nusoap.php.

Referenced by call(), and getProxy().

◆ $http_encoding

nusoap_client::$http_encoding = false

Definition at line 7200 of file nusoap.php.

Referenced by getProxy().

◆ $opData

nusoap_client::$opData

Definition at line 7183 of file nusoap.php.

Referenced by _getProxyClassCode(), and call().

◆ $operation

nusoap_client::$operation

Definition at line 7184 of file nusoap.php.

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

◆ $operations

nusoap_client::$operations = array()

Definition at line 7211 of file nusoap.php.

Referenced by getProxy().

◆ $password

nusoap_client::$password = ''

Definition at line 7186 of file nusoap.php.

Referenced by getProxy(), and setCredentials().

◆ $persistentConnection

nusoap_client::$persistentConnection = false

Definition at line 7204 of file nusoap.php.

Referenced by getProxy(), and send().

◆ $proxyhost

nusoap_client::$proxyhost = ''

Definition at line 7195 of file nusoap.php.

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

◆ $proxypassword

nusoap_client::$proxypassword = ''

Definition at line 7198 of file nusoap.php.

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

◆ $proxyport

nusoap_client::$proxyport = ''

Definition at line 7196 of file nusoap.php.

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

◆ $proxyusername

nusoap_client::$proxyusername = ''

Definition at line 7197 of file nusoap.php.

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

◆ $request

nusoap_client::$request = ''

Definition at line 7206 of file nusoap.php.

◆ $requestHeaders

nusoap_client::$requestHeaders = false

Definition at line 7189 of file nusoap.php.

Referenced by getProxy().

◆ $response

nusoap_client::$response = ''

Definition at line 7207 of file nusoap.php.

◆ $response_timeout

nusoap_client::$response_timeout = 30

Definition at line 7202 of file nusoap.php.

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

◆ $responseData

nusoap_client::$responseData = ''

Definition at line 7208 of file nusoap.php.

◆ $responseHeader

nusoap_client::$responseHeader = null

Definition at line 7191 of file nusoap.php.

Referenced by getHeader().

◆ $responseHeaders

nusoap_client::$responseHeaders = ''

Definition at line 7190 of file nusoap.php.

Referenced by getHeaders().

◆ $return

nusoap_client::$return

Definition at line 7180 of file nusoap.php.

Referenced by call(), and parseResponse().

◆ $timeout

nusoap_client::$timeout = 0

Definition at line 7201 of file nusoap.php.

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

◆ $use_curl

nusoap_client::$use_curl = false

Definition at line 7214 of file nusoap.php.

Referenced by getProxy().

◆ $username

nusoap_client::$username = ''

Definition at line 7185 of file nusoap.php.

Referenced by getProxy(), and setCredentials().

◆ $wsdl

nusoap_client::$wsdl

Definition at line 7181 of file nusoap.php.

Referenced by __construct(), and getProxy().

◆ $wsdlFile

nusoap_client::$wsdlFile

Definition at line 7182 of file nusoap.php.

Referenced by getProxy().

◆ $xml_encoding

nusoap_client::$xml_encoding = ''

Definition at line 7199 of file nusoap.php.


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