XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Public Member Functions | |
__construct ($endpoint, $wsdl=false, $proxyhost=false, $proxyport=false, $proxyusername=false, $proxypassword=false, $timeout=0, $response_timeout=30, $portName='') | |
call ($operation, $params=[], $namespace='https://tempuri.org', $soapAction='', $headers=false, $rpcParams=null, $style='rpc', $use='encoded') | |
checkWSDL () | |
loadWSDL () | |
getOperationData ($operation) | |
send ($msg, $soapaction='', $timeout=0, $response_timeout=30) | |
parseResponse ($headers, $data) | |
setCurlOption ($option, $value) | |
setEndpoint ($endpoint) | |
setHeaders ($headers) | |
getHeaders () | |
getHeader () | |
setHTTPProxy ($proxyhost, $proxyport, $proxyusername='', $proxypassword='') | |
setCredentials ($username, $password, $authtype='basic', $certRequest=[]) | |
setHTTPEncoding ($enc='gzip, deflate') | |
setUseCURL ($use) | |
useHTTPPersistentConnection () | |
getDefaultRpcParams () | |
setDefaultRpcParams ($rpcParams) | |
getProxy () | |
_getProxyClassCode ($r) | |
getProxyClassCode () | |
getHTTPBody ($soapmsg) | |
getHTTPContentType () | |
getHTTPContentTypeCharset () | |
decodeUTF8 ($bool) | |
setCookie ($name, $value) | |
getCookies () | |
checkCookies () | |
UpdateCookies ($cookies) | |
![]() | |
__construct () | |
getGlobalDebugLevel () | |
setGlobalDebugLevel ($level) | |
getDebugLevel () | |
setDebugLevel ($level) | |
debug ($string) | |
appendDebug ($string) | |
clearDebug () | |
& | getDebug () |
& | getDebugAsXMLComment () |
expandEntities ($val) | |
getError () | |
setError ($str) | |
isArraySimpleOrStruct ($val) | |
serialize_val ($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded', $soapval=false) | |
serializeEnvelope ($body, $headers=false, $namespaces=[], $style='rpc', $use='encoded', $encodingStyle='https://schemas.xmlsoap.org/soap/encoding/') | |
formatDump ($str) | |
contractQname ($qname) | |
expandQname ($qname) | |
getLocalPart ($str) | |
getPrefix ($str) | |
getNamespaceFromPrefix ($prefix) | |
getPrefixFromNamespace ($ns) | |
getmicrotime () | |
varDump ($data) | |
__toString () | |
Data Fields | |
$username = '' | |
$password = '' | |
$authtype = '' | |
$certRequest = [] | |
$requestHeaders = false | |
$responseHeaders = '' | |
$responseHeader = null | |
$document = '' | |
$endpoint | |
$forceEndpoint = '' | |
$proxyhost = '' | |
$proxyport = '' | |
$proxyusername = '' | |
$proxypassword = '' | |
$portName = '' | |
$xml_encoding = '' | |
$http_encoding = false | |
$timeout = 0 | |
$response_timeout = 30 | |
$endpointType = '' | |
$persistentConnection = false | |
$defaultRpcParams = false | |
$request = '' | |
$response = '' | |
$responseData = '' | |
$cookies = [] | |
$decode_utf8 = true | |
$operations = [] | |
$curl_options = [] | |
$bindingType = '' | |
$use_curl = false | |
$fault | |
$faultcode | |
$faultstring | |
$faultdetail | |
![]() | |
$title = 'NuSOAP' | |
$version = '0.9.5' | |
$revision = '$Revision: 1.123 $' | |
$error_str = '' | |
$debug_str = '' | |
$charencoding = true | |
$debugLevel | |
$XMLSchemaVersion = 'https://www.w3.org/2001/XMLSchema' | |
$soap_defencoding = 'UTF-8' | |
$namespaces | |
$usedNamespaces = [] | |
$typemap | |
$xmlEntities | |
[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);
@access public
Definition at line 7335 of file nusoap.php.
__construct | ( | $endpoint, | |
$wsdl = false, | |||
$proxyhost = false, | |||
$proxyport = false, | |||
$proxyusername = false, | |||
$proxypassword = false, | |||
$timeout = 0, | |||
$response_timeout = 30, | |||
$portName = '' ) |
constructor
mixed | $endpoint | SOAP server or WSDL URL (string), or wsdl instance (object) |
mixed | $wsdl | optional, set to 'wsdl' or true if using WSDL |
bool | $proxyhost | optional |
bool | $proxyport | optional |
bool | $proxyusername | optional |
bool | $proxypassword | optional |
int | $timeout | set the connection timeout |
int | $response_timeout | set the response timeout |
string | $portName | optional portName in WSDL document @access public |
Definition at line 7408 of file nusoap.php.
_getProxyClassCode | ( | $r | ) |
dynamically creates proxy class code
$r |
Definition at line 8083 of file nusoap.php.
call | ( | $operation, | |
$params = [], | |||
$namespace = 'https://tempuri.org', | |||
$soapAction = '', | |||
$headers = false, | |||
$rpcParams = null, | |||
$style = 'rpc', | |||
$use = 'encoded' ) |
calls method, returns PHP native type
string | $operation | SOAP server URL or path |
mixed | $params | An array, associative or simple, of the parameters for the method call, or a string that is the XML for the call. For rpc style, this call will wrap the XML in a tag named after the method, as well as the SOAP Envelope and Body. For document style, this will only wrap with the Envelope and Body. IMPORTANT: when using an array with document style, in which case there is really one parameter, the root of the fragment used in the call, which encloses what programmers normally think of parameters. A parameter array must include the wrapper. |
string | $namespace | optional method namespace (WSDL can override) |
string | $soapAction | optional SOAPAction value (WSDL can override) |
mixed | $headers | optional string of XML with SOAP header content, or array of soapval objects for SOAP headers, or associative array |
bool | $rpcParams | optional (no longer used) |
string | $style | optional (rpc|document) the style to use when serializing parameters (WSDL can override) |
string | $use | optional (encoded|literal) the use when serializing parameters (WSDL can override) |
Definition at line 7468 of file nusoap.php.
checkCookies | ( | ) |
checks all Cookies and delete those which are expired
Definition at line 8234 of file nusoap.php.
checkWSDL | ( | ) |
check WSDL passed as an instance or pulled from an endpoint
@access private
Definition at line 7652 of file nusoap.php.
decodeUTF8 | ( | $bool | ) |
Definition at line 8194 of file nusoap.php.
getCookies | ( | ) |
gets all Cookies
Definition at line 8223 of file nusoap.php.
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.
Definition at line 8004 of file nusoap.php.
getHeader | ( | ) |
get the SOAP response Header (parsed)
Definition at line 7917 of file nusoap.php.
getHeaders | ( | ) |
get the SOAP response headers (namespace resolution incomplete)
Definition at line 7906 of file nusoap.php.
getHTTPBody | ( | $soapmsg | ) |
gets the HTTP body for the current request.
string | $soapmsg | The SOAP payload |
Definition at line 8156 of file nusoap.php.
getHTTPContentType | ( | ) |
gets the HTTP content type for the current request.
Note: getHTTPBody must be called before this.
Definition at line 8169 of file nusoap.php.
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.
Definition at line 8183 of file nusoap.php.
getOperationData | ( | $operation | ) |
get available data pertaining to an operation
string | $operation | operation name |
Definition at line 7703 of file nusoap.php.
getProxy | ( | ) |
dynamically creates an instance of a proxy class, allowing user to directly call methods from wsdl
Definition at line 8032 of file nusoap.php.
getProxyClassCode | ( | ) |
dynamically creates proxy class code
Definition at line 8143 of file nusoap.php.
loadWSDL | ( | ) |
instantiate wsdl object and parse wsdl file
@access public
Definition at line 7687 of file nusoap.php.
parseResponse | ( | $headers, | |
$data ) |
processes SOAP message returned from server
array | $headers | The HTTP headers |
string | $data | unprocessed response data from server |
Definition at line 7811 of file nusoap.php.
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.
string | $msg | a SOAPx4 soapmsg object |
string | $soapaction | SOAPAction value |
int | $timeout | set connection timeout in seconds |
int | $response_timeout | set response timeout in seconds |
Definition at line 7731 of file nusoap.php.
setCookie | ( | $name, | |
$value ) |
adds a new Cookie into $this->cookies array
string | $name | Cookie Name |
string | $value | Cookie Value |
Definition at line 8208 of file nusoap.php.
setCredentials | ( | $username, | |
$password, | |||
$authtype = 'basic', | |||
$certRequest = [] ) |
if authenticating, set user credentials here
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 7948 of file nusoap.php.
setCurlOption | ( | $option, | |
$value ) |
sets user-specified cURL options
mixed | $option | The cURL option (always integer?) |
mixed | $value | The cURL option value @access public |
Definition at line 7868 of file nusoap.php.
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.
bool | $rpcParams | @access public |
Definition at line 8020 of file nusoap.php.
setEndpoint | ( | $endpoint | ) |
sets the SOAP endpoint, which can override WSDL
string | $endpoint | The endpoint URL to use, or empty string or false to prevent override @access public |
Definition at line 7881 of file nusoap.php.
setHeaders | ( | $headers | ) |
set the SOAP headers
mixed | $headers | String of XML with SOAP header content, or array of soapval objects for SOAP headers @access public |
Definition at line 7893 of file nusoap.php.
setHTTPEncoding | ( | $enc = 'gzip, | |
deflate' | ) |
use HTTP encoding
string | $enc | HTTP encoding @access public |
Definition at line 7964 of file nusoap.php.
setHTTPProxy | ( | $proxyhost, | |
$proxyport, | |||
$proxyusername = '', | |||
$proxypassword = '' ) |
set proxy info here
string | $proxyhost | |
string | $proxyport | |
string | $proxyusername | |
string | $proxypassword | @access public |
Definition at line 7931 of file nusoap.php.
setUseCURL | ( | $use | ) |
Set whether to try to use cURL connections if possible
bool | $use | Whether to try to use cURL @access public |
Definition at line 7976 of file nusoap.php.
UpdateCookies | ( | $cookies | ) |
updates the current cookies with a new set
array | $cookies | new cookies with which to update current ones |
Definition at line 8268 of file nusoap.php.
useHTTPPersistentConnection | ( | ) |
use HTTP persistent connections if possible
@access public
Definition at line 7987 of file nusoap.php.
$authtype = '' |
Definition at line 7340 of file nusoap.php.
$bindingType = '' |
Definition at line 7367 of file nusoap.php.
$certRequest = [] |
Definition at line 7341 of file nusoap.php.
$cookies = [] |
Definition at line 7363 of file nusoap.php.
$curl_options = [] |
Definition at line 7366 of file nusoap.php.
$decode_utf8 = true |
Definition at line 7364 of file nusoap.php.
$defaultRpcParams = false |
Definition at line 7359 of file nusoap.php.
$document = '' |
Definition at line 7345 of file nusoap.php.
$endpoint |
Definition at line 7346 of file nusoap.php.
$endpointType = '' |
Definition at line 7357 of file nusoap.php.
$fault |
Definition at line 7377 of file nusoap.php.
$faultcode |
Definition at line 7382 of file nusoap.php.
$faultdetail |
Definition at line 7392 of file nusoap.php.
$faultstring |
Definition at line 7387 of file nusoap.php.
$forceEndpoint = '' |
Definition at line 7347 of file nusoap.php.
$http_encoding = false |
Definition at line 7354 of file nusoap.php.
$operations = [] |
Definition at line 7365 of file nusoap.php.
$password = '' |
Definition at line 7339 of file nusoap.php.
$persistentConnection = false |
Definition at line 7358 of file nusoap.php.
$portName = '' |
Definition at line 7352 of file nusoap.php.
$proxyhost = '' |
Definition at line 7348 of file nusoap.php.
$proxypassword = '' |
Definition at line 7351 of file nusoap.php.
$proxyport = '' |
Definition at line 7349 of file nusoap.php.
$proxyusername = '' |
Definition at line 7350 of file nusoap.php.
$request = '' |
Definition at line 7360 of file nusoap.php.
$requestHeaders = false |
Definition at line 7342 of file nusoap.php.
$response = '' |
Definition at line 7361 of file nusoap.php.
$response_timeout = 30 |
Definition at line 7356 of file nusoap.php.
$responseData = '' |
Definition at line 7362 of file nusoap.php.
$responseHeader = null |
Definition at line 7344 of file nusoap.php.
$responseHeaders = '' |
Definition at line 7343 of file nusoap.php.
$timeout = 0 |
Definition at line 7355 of file nusoap.php.
$use_curl = false |
Definition at line 7368 of file nusoap.php.
$username = '' |
Definition at line 7338 of file nusoap.php.
$xml_encoding = '' |
Definition at line 7353 of file nusoap.php.