Öffentliche Methoden | |
| soap_transport_http ($url) | |
| setURL ($url) | |
| 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=array(), $certRequest=array()) | |
| setSOAPAction ($soapaction) | |
| setEncoding ($enc='gzip, deflate') | |
| setProxy ($proxyhost, $proxyport, $proxyusername= '', $proxypassword= '') | |
| decodeChunked ($buffer, $lb) | |
| buildPayload ($data, $cookie_str= '') | |
| sendRequest ($data, $cookies=NULL) | |
| getResponse () | |
| setContentType ($type, $charset=false) | |
| usePersistentConnection () | |
| parseCookie ($cookie_str) | |
| getCookiesForRequest ($cookies, $secure=false) | |
| nusoap_base () | |
| 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') | |
| serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded', $encodingStyle='http://schemas.xmlsoap.org/soap/encoding/') | |
| formatDump ($str) | |
| contractQname ($qname) | |
| expandQname ($qname) | |
| getLocalPart ($str) | |
| getPrefix ($str) | |
| getNamespaceFromPrefix ($prefix) | |
| getPrefixFromNamespace ($ns) | |
| getmicrotime () | |
| varDump ($data) | |
Öffentliche Attribute | |
| $url = '' | |
| $uri = '' | |
| $digest_uri = '' | |
| $scheme = '' | |
| $host = '' | |
| $port = '' | |
| $path = '' | |
| $request_method = 'POST' | |
| $protocol_version = '1.0' | |
| $encoding = '' | |
| $outgoing_headers = array() | |
| $incoming_headers = array() | |
| $incoming_cookies = array() | |
| $outgoing_payload = '' | |
| $incoming_payload = '' | |
| $useSOAPAction = true | |
| $persistentConnection = false | |
| $ch = false | |
| $username = '' | |
| $password = '' | |
| $authtype = '' | |
| $digestRequest = array() | |
| $certRequest = array() | |
| $title = 'NuSOAP' | |
| $version = '0.7.2' | |
| $revision = '$Revision: 2663 $' | |
| $error_str = '' | |
| $debug_str = '' | |
| $charencoding = true | |
| $debugLevel | |
| $XMLSchemaVersion = 'http://www.w3.org/2001/XMLSchema' | |
| $soap_defencoding = 'ISO-8859-1' | |
| $namespaces | |
| $usedNamespaces = array() | |
| $typemap | |
| $xmlEntities | |
transport class for sending/receiving data via HTTP and HTTPS NOTE: PHP must be compiled with the CURL extension for HTTPS support
public
| nusoap_base::appendDebug | ( | $ | string | ) | [inherited] |
adds debug data to the instance debug string without formatting
| string | $string debug data public |
| nusoap_base::clearDebug | ( | ) | [inherited] |
clears the current debug data for this instance
public
| nusoap_base::contractQname | ( | $ | qname | ) | [inherited] |
contracts (changes namespace to prefix) a qualified name
| string | $qname qname |
| nusoap_base::debug | ( | $ | string | ) | [inherited] |
adds debug data to the instance debug string with formatting
| string | $string debug data private |
| soap_transport_http::decodeChunked | ( | $ | buffer, | |
| $ | lb | |||
| ) |
decode a string that is encoded w/ chunked' transfer encoding as defined in RFC2068 19.4.6
| string | $buffer | |
| string | $lb |
| nusoap_base::expandEntities | ( | $ | val | ) | [inherited] |
expands entities, e.g. changes '<' to '<'.
| string | $val The string in which to expand entities. private |
| nusoap_base::expandQname | ( | $ | qname | ) | [inherited] |
expands (changes prefix to namespace) a qualified name
| string | $string qname |
| nusoap_base::formatDump | ( | $ | str | ) | [inherited] |
formats a string to be inserted into an HTML stream
| string | $str The string to format |
| soap_transport_http::getCookiesForRequest | ( | $ | cookies, | |
| $ | secure = false | |||
| ) |
sort out cookies for the current request
| array | $cookies array with all cookies | |
| boolean | $secure is the send-content secure or not? |
| & nusoap_base::getDebug | ( | ) | [inherited] |
gets the current debug data for this instance
| & nusoap_base::getDebugAsXMLComment | ( | ) | [inherited] |
gets the current debug data for this instance as an XML comment this may change the contents of the debug data
| nusoap_base::getDebugLevel | ( | ) | [inherited] |
gets the debug level for this instance
| nusoap_base::getError | ( | ) | [inherited] |
returns error string if present
| nusoap_base::getGlobalDebugLevel | ( | ) | [inherited] |
gets the global debug level, which applies to future instances
| nusoap_base::getLocalPart | ( | $ | str | ) | [inherited] |
returns the local part of a prefixed string returns the original string, if not prefixed
| string | $str The prefixed string |
| nusoap_base::getmicrotime | ( | ) | [inherited] |
returns the time in ODBC canonical form with microseconds
| nusoap_base::getNamespaceFromPrefix | ( | $ | prefix | ) | [inherited] |
pass it a prefix, it returns a namespace
| string | $prefix The prefix |
| nusoap_base::getPrefix | ( | $ | str | ) | [inherited] |
returns the prefix part of a prefixed string returns false, if not prefixed
| string | $str The prefixed string |
| nusoap_base::getPrefixFromNamespace | ( | $ | ns | ) | [inherited] |
returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace
| string | $ns The namespace |
| nusoap_base::isArraySimpleOrStruct | ( | $ | val | ) | [inherited] |
detect if array is a simple array or a struct (associative array)
| mixed | $val The PHP array |
| nusoap_base::nusoap_base | ( | ) | [inherited] |
constructor
public
| soap_transport_http::parseCookie | ( | $ | cookie_str | ) |
parse an incoming Cookie into it's parts
| string | $cookie_str content of cookie |
| soap_transport_http::send | ( | $ | data, | |
| $ | timeout = 0, |
|||
| $ | response_timeout = 30, |
|||
| $ | cookies = NULL | |||
| ) |
send the SOAP message via HTTP
| string | $data message data | |
| integer | $timeout set connection timeout in seconds | |
| integer | $response_timeout set response timeout in seconds | |
| array | $cookies cookies to send |
| soap_transport_http::sendHTTPS | ( | $ | data, | |
| $ | timeout = 0, |
|||
| $ | response_timeout = 30, |
|||
| $ | cookies | |||
| ) |
send the SOAP message via HTTPS 1.0 using CURL
| string | $msg message data | |
| integer | $timeout set connection timeout in seconds | |
| integer | $response_timeout set response timeout in seconds | |
| array | $cookies cookies to send |
| nusoap_base::serialize_val | ( | $ | val, | |
| $ | name = false, |
|||
| $ | type = false, |
|||
| $ | name_ns = false, |
|||
| $ | type_ns = false, |
|||
| $ | attributes = false, |
|||
| $ | use = 'encoded' | |||
| ) | [inherited] |
serializes PHP values in accordance w/ section 5. Type information is not serialized if $use == 'literal'.
| mixed | $val The value to serialize | |
| string | $name The name (local part) of the XML element | |
| string | $type The XML schema type (local part) for the element | |
| string | $name_ns The namespace for the name of the XML element | |
| string | $type_ns The namespace for the type of the element | |
| array | $attributes The attributes to serialize as name=>value pairs | |
| string | $use The WSDL "use" (encoded|literal) |
| nusoap_base::serializeEnvelope | ( | $ | body, | |
| $ | headers = false, |
|||
| $ | namespaces = array(), |
|||
| $ | style = 'rpc', |
|||
| $ | use = 'encoded', |
|||
| $ | encodingStyle = 'http://schemas.xmlsoap.org/soap/encoding/' | |||
| ) | [inherited] |
serializes a message
| string | $body the XML of the SOAP body | |
| mixed | $headers optional string of XML with SOAP header content, or array of soapval objects for SOAP headers | |
| array | $namespaces optional the namespaces used in generating the body and headers | |
| string | $style optional (rpc|document) | |
| string | $use optional (encoded|literal) | |
| string | $encodingStyle optional (usually 'http://schemas.xmlsoap.org/soap/encoding/' for encoded) |
| soap_transport_http::setCredentials | ( | $ | username, | |
| $ | password, | |||
| $ | authtype = 'basic', |
|||
| $ | digestRequest = array(), |
|||
| $ | certRequest = array() | |||
| ) |
if authenticating, set user credentials here
| string | $username | |
| string | $password | |
| string | $authtype (basic, digest, certificate) | |
| array | $digestRequest (keys must be nonce, nc, realm, qop) | |
| array | $certRequest (keys must be cainfofile (optional), sslcertfile, sslkeyfile, passphrase, verifypeer (optional), verifyhost (optional): see corresponding options in cURL docs) public |
| nusoap_base::setDebugLevel | ( | $ | level | ) | [inherited] |
sets the debug level for this instance
| int | $level Debug level 0-9, where 0 turns off public |
| soap_transport_http::setEncoding | ( | $ | enc = 'gzip, |
|
| deflate' | ||||
| ) |
use http encoding
| string | $enc encoding style. supported values: gzip, deflate, or both public |
| nusoap_base::setError | ( | $ | str | ) | [inherited] |
sets error string
| nusoap_base::setGlobalDebugLevel | ( | $ | level | ) | [inherited] |
sets the global debug level, which applies to future instances
| int | $level Debug level 0-9, where 0 turns off public |
| soap_transport_http::setProxy | ( | $ | proxyhost, | |
| $ | proxyport, | |||
| $ | proxyusername = '', |
|||
| $ | proxypassword = '' | |||
| ) |
set proxy info here
| string | $proxyhost | |
| string | $proxyport | |
| string | $proxyusername | |
| string | $proxypassword public |
| soap_transport_http::setSOAPAction | ( | $ | soapaction | ) |
set the soapaction value
| string | $soapaction public |
| soap_transport_http::soap_transport_http | ( | $ | url | ) |
constructor
| nusoap_base::varDump | ( | $ | data | ) | [inherited] |
Returns a string with the output of var_dump
| mixed | $data The variable to var_dump |
nusoap_base::$namespaces [inherited] |
array(
'SOAP-ENV' => 'http://schemas.xmlsoap.org/soap/envelope/',
'xsd' => 'http://www.w3.org/2001/XMLSchema',
'xsi' => 'http://www.w3.org/2001/XMLSchema-instance',
'SOAP-ENC' => 'http://schemas.xmlsoap.org/soap/encoding/'
)
nusoap_base::$typemap [inherited] |
array(
'http://www.w3.org/2001/XMLSchema' => array(
'string'=>'string','boolean'=>'boolean','float'=>'double','double'=>'double','decimal'=>'double',
'duration'=>'','dateTime'=>'string','time'=>'string','date'=>'string','gYearMonth'=>'',
'gYear'=>'','gMonthDay'=>'','gDay'=>'','gMonth'=>'','hexBinary'=>'string','base64Binary'=>'string',
'anyType'=>'string','anySimpleType'=>'string',
'normalizedString'=>'string','token'=>'string','language'=>'','NMTOKEN'=>'','NMTOKENS'=>'','Name'=>'','NCName'=>'','ID'=>'',
'IDREF'=>'','IDREFS'=>'','ENTITY'=>'','ENTITIES'=>'','integer'=>'integer','nonPositiveInteger'=>'integer',
'negativeInteger'=>'integer','long'=>'integer','int'=>'integer','short'=>'integer','byte'=>'integer','nonNegativeInteger'=>'integer',
'unsignedLong'=>'','unsignedInt'=>'','unsignedShort'=>'','unsignedByte'=>'','positiveInteger'=>''),
'http://www.w3.org/2000/10/XMLSchema' => array(
'i4'=>'','int'=>'integer','boolean'=>'boolean','string'=>'string','double'=>'double',
'float'=>'double','dateTime'=>'string',
'timeInstant'=>'string','base64Binary'=>'string','base64'=>'string','ur-type'=>'array'),
'http://www.w3.org/1999/XMLSchema' => array(
'i4'=>'','int'=>'integer','boolean'=>'boolean','string'=>'string','double'=>'double',
'float'=>'double','dateTime'=>'string',
'timeInstant'=>'string','base64Binary'=>'string','base64'=>'string','ur-type'=>'array'),
'http://soapinterop.org/xsd' => array('SOAPStruct'=>'struct'),
'http://schemas.xmlsoap.org/soap/encoding/' => array('base64'=>'string','array'=>'array','Array'=>'array'),
'http://xml.apache.org/xml-soap' => array('Map')
)
nusoap_base::$xmlEntities [inherited] |
array('quot' => '"','amp' => '&', 'lt' => '<','gt' => '>','apos' => "'")
1.6.1