|
XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Public Member Functions | |
| __construct ($wsdl='', $proxyhost=false, $proxyport=false, $proxyusername=false, $proxypassword=false, $timeout=0, $response_timeout=30, $curl_options=null, $use_curl=false) | |
| fetchWSDL ($wsdl) | |
| parseWSDL ($wsdl='') | |
| start_element ($parser, $name, $attrs) | |
| end_element ($parser, $name) | |
| character_data ($parser, $data) | |
| setCredentials ($username, $password, $authtype='basic', $certRequest=[]) | |
| getBindingData ($binding) | |
| getOperations ($portName='', $bindingType='soap') | |
| getOperationData ($operation, $bindingType='soap') | |
| getOperationDataForSoapAction ($soapAction, $bindingType='soap') | |
| getTypeDef ($type, $ns) | |
| webDescription () | |
| serialize ($debug=0) | |
| parametersMatchWrapped ($type, &$parameters) | |
| serializeRPCParameters ($operation, $direction, $parameters, $bindingType='soap') | |
| serializeParameters ($operation, $direction, $parameters) | |
| serializeType ($name, $type, $value, $use='encoded', $encodingStyle=false, $unqualified=false) | |
| serializeComplexTypeAttributes ($typeDef, $value, $ns, $uqType) | |
| serializeComplexTypeElements ($typeDef, $value, $ns, $uqType, $use='encoded', $encodingStyle=false) | |
| addComplexType ($name, $typeClass='complexType', $phpType='array', $compositor='', $restrictionBase='', $elements=[], $attrs=[], $arrayType='') | |
| addSimpleType ($name, $restrictionBase='', $typeClass='simpleType', $phpType='scalar', $enumeration=[]) | |
| addElement ($attrs) | |
| addOperation ($name, $in=false, $out=false, $namespace=false, $soapaction=false, $style='rpc', $use='encoded', $documentation='', $encodingStyle='') | |
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 | |
| $wsdl | |
| $schemas = [] | |
| $currentSchema | |
| $message = [] | |
| $complexTypes = [] | |
| $messages = [] | |
| $currentMessage | |
| $currentOperation | |
| $portTypes = [] | |
| $currentPortType | |
| $bindings = [] | |
| $currentBinding | |
| $ports = [] | |
| $currentPort | |
| $opData = [] | |
| $status = '' | |
| $documentation = false | |
| $endpoint = '' | |
| $import = [] | |
| $parser | |
| $position = 0 | |
| $depth = 0 | |
| $depth_array = [] | |
| $proxyhost = '' | |
| $proxyport = '' | |
| $proxyusername = '' | |
| $proxypassword = '' | |
| $timeout = 0 | |
| $response_timeout = 30 | |
| $curl_options = [] | |
| $use_curl = false | |
| $username = '' | |
| $password = '' | |
| $authtype = '' | |
| $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 | |
parses a WSDL file, allows access to it's data, other utility methods. also builds WSDL structures programmatically.
@access public
Definition at line 4714 of file nusoap.php.
| __construct | ( | $wsdl = '', | |
| $proxyhost = false, | |||
| $proxyport = false, | |||
| $proxyusername = false, | |||
| $proxypassword = false, | |||
| $timeout = 0, | |||
| $response_timeout = 30, | |||
| $curl_options = null, | |||
| $use_curl = false ) |
constructor
| string | $wsdl | WSDL document URL |
| bool | $proxyhost | |
| bool | $proxyport | |
| bool | $proxyusername | |
| bool | $proxypassword | |
| int | $timeout | set the connection timeout |
| int | $response_timeout | set the response timeout |
| array | $curl_options | user-specified cURL options |
| bool | $use_curl | try to use cURL @access public |
Definition at line 4772 of file nusoap.php.
| addComplexType | ( | $name, | |
| $typeClass = 'complexType', | |||
| $phpType = 'array', | |||
| $compositor = '', | |||
| $restrictionBase = '', | |||
| $elements = [], | |||
| $attrs = [], | |||
| $arrayType = '' ) |
adds an XML Schema complex type to the WSDL types
| string | $name | |
| string | $typeClass | (complexType|simpleType|attribute) |
| string | $phpType | currently supported are array and struct (php assoc array) |
| string | $compositor | (all|sequence|choice) |
| string | $restrictionBase | namespace:name (https://schemas.xmlsoap.org/soap/encoding/:Array) |
| array | $elements | e.g. array ( name => array(name=>'',type=>'') ) |
| array | $attrs | e.g. array(array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'xsd:string[]')) |
| string | $arrayType | as namespace:name (xsd:string) |
Definition at line 6497 of file nusoap.php.
| addElement | ( | $attrs | ) |
adds an element to the WSDL types
| array | $attrs | attributes that must include name and type |
Definition at line 6560 of file nusoap.php.
| addOperation | ( | $name, | |
| $in = false, | |||
| $out = false, | |||
| $namespace = false, | |||
| $soapaction = false, | |||
| $style = 'rpc', | |||
| $use = 'encoded', | |||
| $documentation = '', | |||
| $encodingStyle = '' ) |
register an operation with the server
| string | $name | operation (method) name |
| bool | $in | assoc array of input values: key = param name, value = param type |
| bool | $out | assoc array of output values: key = param name, value = param type |
| bool | $namespace | optional The namespace for the operation |
| bool | $soapaction | optional The soapaction for the operation |
| string | $style | (rpc|document) optional The style for the operation Note: when 'document' is specified, parameter and return wrappers are created for you automatically |
| string | $use | (encoded|literal) optional The use for the parameters (cannot mix right now) |
| string | $documentation | optional The description to include in the WSDL |
| string | $encodingStyle | optional (usually 'https://schemas.xmlsoap.org/soap/encoding/' for encoded) |
Definition at line 6581 of file nusoap.php.
| addSimpleType | ( | $name, | |
| $restrictionBase = '', | |||
| $typeClass = 'simpleType', | |||
| $phpType = 'scalar', | |||
| $enumeration = [] ) |
adds an XML Schema simple type to the WSDL types
| string | $name | |
| string | $restrictionBase | namespace:name (https://schemas.xmlsoap.org/soap/encoding/:Array) |
| string | $typeClass | (should always be simpleType) |
| string | $phpType | (should always be scalar) |
| array | $enumeration | array of values |
Definition at line 6545 of file nusoap.php.
| character_data | ( | $parser, | |
| $data ) |
element content handler
| string | $parser | XML parser object |
| string | $data | element content @access private |
Definition at line 5249 of file nusoap.php.
| end_element | ( | $parser, | |
| $name ) |
end-element handler
| string | $parser | XML parser object |
| string | $name | element name @access private |
Definition at line 5218 of file nusoap.php.
| fetchWSDL | ( | $wsdl | ) |
fetches the WSDL document and parses it
@access public
| $wsdl |
Definition at line 4795 of file nusoap.php.
| getBindingData | ( | $binding | ) |
Definition at line 5279 of file nusoap.php.
| getOperationData | ( | $operation, | |
| $bindingType = 'soap' ) |
returns an associative array of data necessary for calling an operation
| string | $operation | name of operation |
| string | $bindingType | type of binding eg: soap, soap12 |
Definition at line 5335 of file nusoap.php.
| getOperationDataForSoapAction | ( | $soapAction, | |
| $bindingType = 'soap' ) |
returns an associative array of data necessary for calling an operation
| string | $soapAction | soapAction for operation |
| string | $bindingType | type of binding eg: soap, soap12 |
Definition at line 5367 of file nusoap.php.
| getOperations | ( | $portName = '', | |
| $bindingType = 'soap' ) |
returns an assoc array of operation names => operation data
| string | $portName | WSDL port name |
| string | $bindingType | eg: soap, smtp, dime (only soap and soap12 are currently supported) |
Definition at line 5294 of file nusoap.php.
| getTypeDef | ( | $type, | |
| $ns ) |
returns an array of information about a given type returns false if no type exists by the given name
typeDef = array( 'elements' => array(), // refs to elements array 'restrictionBase' => '', 'phpType' => '', 'order' => '(sequence|all)', 'attrs' => array() // refs to attributes array )
| string | $type | the type |
| string | $ns | namespace (not prefix) of the type |
Definition at line 5406 of file nusoap.php.
| parametersMatchWrapped | ( | $type, | |
| & | $parameters ) |
determine whether a set of parameters are unwrapped when they are expect to be wrapped, Microsoft-style.
| string | $type | the type (element name) of the wrapper |
| array | $parameters | the parameter values for the SOAP call |
Definition at line 5741 of file nusoap.php.
| parseWSDL | ( | $wsdl = '' | ) |
parses the wsdl document
| string | $wsdl | path or URL @access private |
Definition at line 4900 of file nusoap.php.
| serialize | ( | $debug = 0 | ) |
serialize the parsed wsdl
| mixed | $debug | whether to put debug=1 in endpoint URL |
Definition at line 5602 of file nusoap.php.
| serializeComplexTypeAttributes | ( | $typeDef, | |
| $value, | |||
| $ns, | |||
| $uqType ) |
serializes the attributes for a complexType
| array | $typeDef | our internal representation of an XML schema type (or element) |
| mixed | $value | a native PHP value (parameter value) |
| string | $ns | the namespace of the type |
| string | $uqType | the local part of the type |
Definition at line 6324 of file nusoap.php.
| serializeComplexTypeElements | ( | $typeDef, | |
| $value, | |||
| $ns, | |||
| $uqType, | |||
| $use = 'encoded', | |||
| $encodingStyle = false ) |
serializes the elements for a complexType
| array | $typeDef | our internal representation of an XML schema type (or element) |
| mixed | $value | a native PHP value (parameter value) |
| string | $ns | the namespace of the type |
| string | $uqType | the local part of the type |
| string | $use | use for part (encoded|literal) |
| bool | $encodingStyle | SOAP encoding style for the value (if different than the enclosing style) |
Definition at line 6388 of file nusoap.php.
| serializeParameters | ( | $operation, | |
| $direction, | |||
| $parameters ) |
serialize a PHP value according to a WSDL message definition
TODO
| string | $operation | operation name |
| string | $direction | (input|output) |
| mixed | $parameters | parameter value(s) |
Definition at line 5927 of file nusoap.php.
| serializeRPCParameters | ( | $operation, | |
| $direction, | |||
| $parameters, | |||
| $bindingType = 'soap' ) |
serialize PHP values according to a WSDL message definition contrary to the method name, this is not limited to RPC
TODO
| string | $operation | operation name |
| string | $direction | (input|output) |
| mixed | $parameters | parameter value(s) |
| string | $bindingType | (soap|soap12) |
Definition at line 5825 of file nusoap.php.
| serializeType | ( | $name, | |
| $type, | |||
| $value, | |||
| $use = 'encoded', | |||
| $encodingStyle = false, | |||
| $unqualified = false ) |
serializes a PHP value according a given type definition
| string | $name | name of value (part or element) |
| string | $type | XML schema type of value (type or element) |
| mixed | $value | a native PHP value (parameter value) |
| string | $use | use for part (encoded|literal) |
| bool | $encodingStyle | SOAP encoding style for the value (if different than the enclosing style) |
| bool | $unqualified | a kludge for what should be XML namespace form handling |
Definition at line 6005 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, certpassword (optional), verifypeer (optional), verifyhost (optional): see corresponding options in cURL docs) @access public |
Definition at line 5269 of file nusoap.php.
| start_element | ( | $parser, | |
| $name, | |||
| $attrs ) |
start-element handler
| string | $parser | XML parser object |
| string | $name | element name |
| string | $attrs | associative array of attributes @access private |
Definition at line 5005 of file nusoap.php.
| webDescription | ( | ) |
| $authtype = '' |
Definition at line 4755 of file nusoap.php.
| $bindings = [] |
Definition at line 4728 of file nusoap.php.
| $certRequest = [] |
Definition at line 4756 of file nusoap.php.
| $complexTypes = [] |
Definition at line 4722 of file nusoap.php.
| $curl_options = [] |
Definition at line 4750 of file nusoap.php.
| $currentBinding |
Definition at line 4729 of file nusoap.php.
| $currentMessage |
Definition at line 4724 of file nusoap.php.
| $currentOperation |
Definition at line 4725 of file nusoap.php.
| $currentPort |
Definition at line 4731 of file nusoap.php.
| $currentPortType |
Definition at line 4727 of file nusoap.php.
| $currentSchema |
Definition at line 4720 of file nusoap.php.
| $depth = 0 |
Definition at line 4741 of file nusoap.php.
| $depth_array = [] |
Definition at line 4742 of file nusoap.php.
| $documentation = false |
Definition at line 4734 of file nusoap.php.
| $endpoint = '' |
Definition at line 4735 of file nusoap.php.
| $import = [] |
Definition at line 4737 of file nusoap.php.
| $message = [] |
Definition at line 4721 of file nusoap.php.
| $messages = [] |
Definition at line 4723 of file nusoap.php.
| $opData = [] |
Definition at line 4732 of file nusoap.php.
| $parser |
Definition at line 4739 of file nusoap.php.
| $password = '' |
Definition at line 4754 of file nusoap.php.
| $ports = [] |
Definition at line 4730 of file nusoap.php.
| $portTypes = [] |
Definition at line 4726 of file nusoap.php.
| $position = 0 |
Definition at line 4740 of file nusoap.php.
| $proxyhost = '' |
Definition at line 4744 of file nusoap.php.
| $proxypassword = '' |
Definition at line 4747 of file nusoap.php.
| $proxyport = '' |
Definition at line 4745 of file nusoap.php.
| $proxyusername = '' |
Definition at line 4746 of file nusoap.php.
| $response_timeout = 30 |
Definition at line 4749 of file nusoap.php.
| $schemas = [] |
Definition at line 4719 of file nusoap.php.
| $status = '' |
Definition at line 4733 of file nusoap.php.
| $timeout = 0 |
Definition at line 4748 of file nusoap.php.
| $use_curl = false |
Definition at line 4751 of file nusoap.php.
| $username = '' |
Definition at line 4753 of file nusoap.php.
| $wsdl |
Definition at line 4717 of file nusoap.php.