|
XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Public Member Functions | |
| __construct ($url, $curl_options=null, $use_curl=false) | |
| setCurlOption ($option, $value) | |
| setHeader ($name, $value) | |
| unsetHeader ($name) | |
| setURL ($url) | |
| io_method () | |
| connect ($connection_timeout=0, $response_timeout=30) | |
| send ($data, $timeout=0, $response_timeout=30, $cookies=null) | |
| sendHTTPS ($data, $timeout=0, $response_timeout=30, $cookies) | |
| setCredentials ($username, $password, $authtype='basic', $digestRequest=[], $certRequest=[]) | |
| setSOAPAction ($soapaction) | |
| setEncoding ($enc='gzip, deflate') | |
| setProxy ($proxyhost, $proxyport, $proxyusername='', $proxypassword='', $proxyauthtype='basic') | |
| isSkippableCurlHeader (&$data) | |
| decodeChunked ($buffer, $lb) | |
| buildPayload ($data, $cookie_str='') | |
| sendRequest ($data, $cookies=null) | |
| getResponse () | |
| setContentType ($type, $charset=false) | |
| usePersistentConnection () | |
| parseCookie ($cookie_str) | |
| getCookiesForRequest ($cookies, $secure=false) | |
Public Member Functions inherited from nusoap_base | |
| __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 | |
| $url = '' | |
| $uri = '' | |
| $digest_uri = '' | |
| $scheme = '' | |
| $host = '' | |
| $port = '' | |
| $path = '' | |
| $request_method = 'POST' | |
| $protocol_version = '1.0' | |
| $encoding = '' | |
| $outgoing_headers = [] | |
| $incoming_headers = [] | |
| $incoming_cookies = [] | |
| $outgoing_payload = '' | |
| $incoming_payload = '' | |
| $response_status_line | |
| $useSOAPAction = true | |
| $persistentConnection = false | |
| $ch = false | |
| $ch_options = [] | |
| $use_curl = false | |
| $proxy = null | |
| $username = '' | |
| $password = '' | |
| $authtype = '' | |
| $digestRequest = [] | |
| $certRequest = [] | |
Data Fields inherited from nusoap_base | |
| $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 | |
transport class for sending/receiving data via HTTP and HTTPS NOTE: PHP must be compiled with the CURL extension for HTTPS support
@access public
Definition at line 2224 of file nusoap.php.
| __construct | ( | $url, | |
| $curl_options = null, | |||
| $use_curl = false ) |
constructor
| string | $url | The URL to which to connect |
| array | $curl_options | User-specified cURL options |
| bool | $use_curl | Whether to try to force cURL use @access public |
Definition at line 2270 of file nusoap.php.
| buildPayload | ( | $data, | |
| $cookie_str = '' ) |
Writes the payload, including HTTP headers, to $this->outgoing_payload.
| string | $data | HTTP body |
| string | $cookie_str | data for HTTP Cookie header |
Definition at line 2925 of file nusoap.php.
| connect | ( | $connection_timeout = 0, | |
| $response_timeout = 30 ) |
establish an HTTP connection
| int | $connection_timeout | |
| int | $response_timeout | set response timeout in seconds |
Definition at line 2395 of file nusoap.php.
| decodeChunked | ( | $buffer, | |
| $lb ) |
decode a string that is encoded w/ "chunked' transfer encoding as defined in RFC2068 19.4.6
| string | $buffer | |
| string | $lb |
Definition at line 2867 of file nusoap.php.
| getCookiesForRequest | ( | $cookies, | |
| $secure = false ) |
sort out cookies for the current request
| array | $cookies | array with all cookies |
| bool | $secure | is the send-content secure or not? |
Definition at line 3512 of file nusoap.php.
| getResponse | ( | ) |
gets the SOAP response via HTTP[S]
Definition at line 3033 of file nusoap.php.
| io_method | ( | ) |
gets the I/O method to use
Definition at line 2376 of file nusoap.php.
| isSkippableCurlHeader | ( | & | $data | ) |
Test if the given string starts with a header that is to be skipped. Skippable headers result from chunked transfer and proxy requests.
| string | $data | The string to check. |
Definition at line 2834 of file nusoap.php.
| parseCookie | ( | $cookie_str | ) |
parse an incoming Cookie into it's parts
| string | $cookie_str | content of cookie |
Definition at line 3446 of file nusoap.php.
| send | ( | $data, | |
| $timeout = 0, | |||
| $response_timeout = 30, | |||
| $cookies = null ) |
sends the SOAP request and gets the SOAP response via HTTP[S]
| string | $data | message data |
| int | $timeout | set connection timeout in seconds |
| int | $response_timeout | set response timeout in seconds |
| array | $cookies | cookies to send |
Definition at line 2638 of file nusoap.php.
| sendHTTPS | ( | $data, | |
| $timeout = 0, | |||
| $response_timeout = 30, | |||
| $cookies ) |
sends the SOAP request and gets the SOAP response via HTTPS using CURL
| string | $data | message data |
| int | $timeout | set connection timeout in seconds |
| int | $response_timeout | set response timeout in seconds |
| array | $cookies | cookies to send |
Definition at line 2679 of file nusoap.php.
| sendRequest | ( | $data, | |
| $cookies = null ) |
sends the SOAP request via HTTP[S]
| string | $data | message data |
| array | $cookies | cookies to send |
Definition at line 2975 of file nusoap.php.
| setContentType | ( | $type, | |
| $charset = false ) |
sets the content-type for the SOAP message to be sent
| string | $type | the content type, MIME style |
| mixed | $charset | character set used for encoding (or false) @access public |
Definition at line 3414 of file nusoap.php.
| setCredentials | ( | $username, | |
| $password, | |||
| $authtype = 'basic', | |||
| $digestRequest = [], | |||
| $certRequest = [] ) |
if authenticating, set user credentials here
| string | $username | |
| string | $password | |
| string | $authtype | (basic|digest|certificate|ntlm) |
| array | $digestRequest | (keys must be nonce, nc, realm, qop) |
| array | $certRequest | (keys must be cainfofile (optional), sslcertfile, sslkeyfile, passphrase, certpassword (optional), verifypeer (optional), verifyhost (optional): see corresponding options in cURL docs) @access public |
Definition at line 2694 of file nusoap.php.
| setCurlOption | ( | $option, | |
| $value ) |
sets a cURL option
| mixed | $option | The cURL option (always integer?) |
| mixed | $value | The cURL option value @access private |
Definition at line 2291 of file nusoap.php.
| setEncoding | ( | $enc = 'gzip, | |
| deflate' | ) |
use http encoding
| string | $enc | encoding style. supported values: gzip, deflate, or both @access public |
Definition at line 2780 of file nusoap.php.
| setHeader | ( | $name, | |
| $value ) |
sets an HTTP header
| string | $name | The name of the header |
| string | $value | The value of the header @access private |
Definition at line 2305 of file nusoap.php.
| setProxy | ( | $proxyhost, | |
| $proxyport, | |||
| $proxyusername = '', | |||
| $proxypassword = '', | |||
| $proxyauthtype = 'basic' ) |
set proxy info here
| string | $proxyhost | use an empty string to remove proxy |
| string | $proxyport | |
| string | $proxyusername | |
| string | $proxypassword | |
| string | $proxyauthtype | (basic|ntlm) @access public |
Definition at line 2805 of file nusoap.php.
| setSOAPAction | ( | $soapaction | ) |
set the soapaction value
| string | $soapaction | @access public |
Definition at line 2769 of file nusoap.php.
| setURL | ( | $url | ) |
sets the URL to which to connect
| string | $url | The URL to which to connect @access private |
Definition at line 2331 of file nusoap.php.
| unsetHeader | ( | $name | ) |
unsets an HTTP header
| string | $name | The name of the header @access private |
Definition at line 2317 of file nusoap.php.
| usePersistentConnection | ( | ) |
specifies that an HTTP persistent connection should be used
Definition at line 3425 of file nusoap.php.
| $authtype = '' |
Definition at line 2251 of file nusoap.php.
| $certRequest = [] |
Definition at line 2253 of file nusoap.php.
| $ch = false |
Definition at line 2245 of file nusoap.php.
| $ch_options = [] |
Definition at line 2246 of file nusoap.php.
| $digest_uri = '' |
Definition at line 2229 of file nusoap.php.
| $digestRequest = [] |
Definition at line 2252 of file nusoap.php.
| $encoding = '' |
Definition at line 2236 of file nusoap.php.
| $host = '' |
Definition at line 2231 of file nusoap.php.
| $incoming_cookies = [] |
Definition at line 2239 of file nusoap.php.
| $incoming_headers = [] |
Definition at line 2238 of file nusoap.php.
| $incoming_payload = '' |
Definition at line 2241 of file nusoap.php.
| $outgoing_headers = [] |
Definition at line 2237 of file nusoap.php.
| $outgoing_payload = '' |
Definition at line 2240 of file nusoap.php.
| $password = '' |
Definition at line 2250 of file nusoap.php.
| $path = '' |
Definition at line 2233 of file nusoap.php.
| $persistentConnection = false |
Definition at line 2244 of file nusoap.php.
| $port = '' |
Definition at line 2232 of file nusoap.php.
| $protocol_version = '1.0' |
Definition at line 2235 of file nusoap.php.
| $proxy = null |
Definition at line 2248 of file nusoap.php.
| $request_method = 'POST' |
Definition at line 2234 of file nusoap.php.
| $response_status_line |
Definition at line 2242 of file nusoap.php.
| $scheme = '' |
Definition at line 2230 of file nusoap.php.
| $uri = '' |
Definition at line 2228 of file nusoap.php.
| $url = '' |
Definition at line 2227 of file nusoap.php.
| $use_curl = false |
Definition at line 2247 of file nusoap.php.
| $username = '' |
Definition at line 2249 of file nusoap.php.
| $useSOAPAction = true |
Definition at line 2243 of file nusoap.php.