|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
parses a WSDL file, allows access to it's data, other utility methods More...
Inheritance diagram for wsdl:
Collaboration diagram for wsdl:Public Member Functions | |
| wsdl ($wsdl='', $proxyhost=false, $proxyport=false, $proxyusername=false, $proxypassword=false, $timeout=0, $response_timeout=30) | |
| constructor More... | |
| parseWSDL ($wsdl='') | |
| parses the wsdl document More... | |
| start_element ($parser, $name, $attrs) | |
| start-element handler More... | |
| end_element ($parser, $name) | |
| end-element handler More... | |
| character_data ($parser, $data) | |
| element content handler More... | |
| getBindingData ($binding) | |
| getOperations ($bindingType='soap') | |
| returns an assoc array of operation names => operation data More... | |
| getOperationData ($operation, $bindingType='soap') | |
| returns an associative array of data necessary for calling an operation More... | |
| getTypeDef ($type, $ns) | |
| returns an array of information about a given type returns false if no type exists by the given name More... | |
| serialize () | |
| serialize the parsed wsdl More... | |
| serializeRPCParameters ($operation, $direction, $parameters) | |
| serialize a PHP value according to a WSDL message definition More... | |
| serializeParameters ($operation, $direction, $parameters) | |
| serialize a PHP value according to a WSDL message definition More... | |
| serializeType ($name, $type, $value, $use='encoded', $encodingStyle=false) | |
| serializes a PHP value according a given type definition More... | |
| addComplexType ($name, $typeClass='complexType', $phpType='array', $compositor='', $restrictionBase='', $elements=array(), $attrs=array(), $arrayType='') | |
| adds an XML Schema complex type to the WSDL types More... | |
| addSimpleType ($name, $restrictionBase='', $typeClass='simpleType', $phpType='scalar') | |
| adds an XML Schema simple type to the WSDL types More... | |
| addOperation ($name, $in=false, $out=false, $namespace=false, $soapaction=false, $style='rpc', $use='encoded', $documentation='') | |
| register a service with the server More... | |
| wsdl ($wsdl='', $proxyhost=false, $proxyport=false, $proxyusername=false, $proxypassword=false, $timeout=0, $response_timeout=30, $curl_options=null, $use_curl=false) | |
| constructor More... | |
| fetchWSDL ($wsdl) | |
| fetches the WSDL document and parses it More... | |
| parseWSDL ($wsdl='') | |
| parses the wsdl document More... | |
| start_element ($parser, $name, $attrs) | |
| start-element handler More... | |
| end_element ($parser, $name) | |
| end-element handler More... | |
| character_data ($parser, $data) | |
| element content handler More... | |
| setCredentials ($username, $password, $authtype='basic', $certRequest=array()) | |
| if authenticating, set user credentials here More... | |
| getBindingData ($binding) | |
| getOperations ($bindingType='soap') | |
| returns an assoc array of operation names => operation data More... | |
| getOperationData ($operation, $bindingType='soap') | |
| returns an associative array of data necessary for calling an operation More... | |
| getOperationDataForSoapAction ($soapAction, $bindingType='soap') | |
| returns an associative array of data necessary for calling an operation More... | |
| getTypeDef ($type, $ns) | |
| returns an array of information about a given type returns false if no type exists by the given name More... | |
| webDescription () | |
| prints html description of services More... | |
| serialize ($debug=0) | |
| serialize the parsed wsdl More... | |
| parametersMatchWrapped ($type, &$parameters) | |
| determine whether a set of parameters are unwrapped when they are expect to be wrapped, Microsoft-style. More... | |
| 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 More... | |
| serializeParameters ($operation, $direction, $parameters) | |
| serialize a PHP value according to a WSDL message definition More... | |
| serializeType ($name, $type, $value, $use='encoded', $encodingStyle=false, $unqualified=false) | |
| serializes a PHP value according a given type definition More... | |
| serializeComplexTypeAttributes ($typeDef, $value, $ns, $uqType) | |
| serializes the attributes for a complexType More... | |
| serializeComplexTypeElements ($typeDef, $value, $ns, $uqType, $use='encoded', $encodingStyle=false) | |
| serializes the elements for a complexType More... | |
| addComplexType ($name, $typeClass='complexType', $phpType='array', $compositor='', $restrictionBase='', $elements=array(), $attrs=array(), $arrayType='') | |
| adds an XML Schema complex type to the WSDL types More... | |
| addSimpleType ($name, $restrictionBase='', $typeClass='simpleType', $phpType='scalar', $enumeration=array()) | |
| adds an XML Schema simple type to the WSDL types More... | |
| addElement ($attrs) | |
| adds an element to the WSDL types More... | |
| addOperation ($name, $in=false, $out=false, $namespace=false, $soapaction=false, $style='rpc', $use='encoded', $documentation='', $encodingStyle='') | |
| register an operation with the server More... | |
Public Member Functions inherited from nusoap_base | |
| debug ($string) | |
| adds debug data to the class level debug string 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') | |
| serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded') | |
| serialize message More... | |
| formatDump ($str) | |
| contractQname ($qname) | |
| contracts a qualified name More... | |
| expandQname ($qname) | |
| expands 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 returns false if no namespace registered with the given prefix More... | |
| getPrefixFromNamespace ($ns) | |
| returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace More... | |
| varDump ($data) | |
| nusoap_base () | |
| 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) | |
| 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... | |
parses a WSDL file, allows access to it's data, other utility methods
parses a WSDL file, allows access to it's data, other utility methods.
also builds WSDL structures programmatically.
Definition at line 3133 of file nusoap.php.
| wsdl::addComplexType | ( | $name, | |
$typeClass = 'complexType', |
|||
$phpType = 'array', |
|||
$compositor = '', |
|||
$restrictionBase = '', |
|||
$elements = array(), |
|||
$attrs = array(), |
|||
$arrayType = '' |
|||
| ) |
adds an XML Schema complex type to the WSDL types
| name | |
| typeClass | (complexType|simpleType|attribute) |
| phpType | currently supported are array and struct (php assoc array) |
| compositor | (all|sequence|choice) |
| restrictionBase | namespace:name (http://schemas.xmlsoap.org/soap/encoding/:Array) |
| elements | = array ( name = array(name=>'',type=>'') ) |
| attrs | = array( array( 'ref' => "http://schemas.xmlsoap.org/soap/encoding/:arrayType", "http://schemas.xmlsoap.org/wsdl/:arrayType" => "string[]" ) ) |
| arrayType | namespace:name (http://www.w3.org/2001/XMLSchema:string) |
Definition at line 4298 of file nusoap.php.
References $n, and nusoap_base\expandQname().
Referenced by addOperation().
Here is the call graph for this function:
Here is the caller graph for this function:| wsdl::addComplexType | ( | $name, | |
$typeClass = 'complexType', |
|||
$phpType = 'array', |
|||
$compositor = '', |
|||
$restrictionBase = '', |
|||
$elements = array(), |
|||
$attrs = array(), |
|||
$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 (http://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 6244 of file nusoap.php.
References $n, and nusoap_base\expandQname().
Here is the call graph for this function:| wsdl::addElement | ( | $attrs | ) |
adds an element to the WSDL types
| array | $attrs | attributes that must include name and type |
Definition at line 6305 of file nusoap.php.
Referenced by addOperation().
Here is the caller graph for this function:| wsdl::addOperation | ( | $name, | |
$in = false, |
|||
$out = false, |
|||
$namespace = false, |
|||
$soapaction = false, |
|||
$style = 'rpc', |
|||
$use = 'encoded', |
|||
$documentation = '' |
|||
| ) |
register a service with the server
| string | $methodname | |
| string | $in | assoc array of input values: key = param name, value = param type |
| string | $out | assoc array of output values: key = param name, value = param type |
| string | $namespace | optional The namespace for the operation |
| string | $soapaction | optional The soapaction for the operation |
| string | $style | (rpc|document) optional The style for the operation |
| string | $use | (encoded|literal) optional The use for the parameters (cannot mix right now) |
| string | $documentation | optional The description to include in the WSDL @access public |
Definition at line 4362 of file nusoap.php.
References $documentation, $in, $namespace, $out, $style, nusoap_base\getLocalPart(), nusoap_base\getNamespaceFromPrefix(), and nusoap_base\getPrefix().
Referenced by nusoap_server\register(), and soap_server\register().
Here is the call graph for this function:
Here is the caller graph for this function:| wsdl::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 |
| array | $in | assoc array of input values: key = param name, value = param type |
| array | $out | assoc array of output values: key = param name, value = param type |
| string | $namespace | optional The namespace for the operation |
| string | $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 'http://schemas.xmlsoap.org/soap/encoding/' for encoded) @access public |
Definition at line 6324 of file nusoap.php.
References $documentation, $in, $n, $namespace, $out, $style, $t, addComplexType(), addElement(), nusoap_base\getLocalPart(), nusoap_base\getNamespaceFromPrefix(), and nusoap_base\getPrefix().
Here is the call graph for this function:| wsdl::addSimpleType | ( | $name, | |
$restrictionBase = '', |
|||
$typeClass = 'simpleType', |
|||
$phpType = 'scalar' |
|||
| ) |
adds an XML Schema simple type to the WSDL types
| name | |
| restrictionBase | namespace:name (http://schemas.xmlsoap.org/soap/encoding/:Array) |
| typeClass | (simpleType) |
| phpType | (scalar) |
Definition at line 4342 of file nusoap.php.
References nusoap_base\expandQname().
Here is the call graph for this function:| wsdl::addSimpleType | ( | $name, | |
$restrictionBase = '', |
|||
$typeClass = 'simpleType', |
|||
$phpType = 'scalar', |
|||
$enumeration = array() |
|||
| ) |
adds an XML Schema simple type to the WSDL types
| string | $name | |
| string | $restrictionBase | namespace:name (http://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 6291 of file nusoap.php.
References nusoap_base\expandQname().
Here is the call graph for this function:| wsdl::character_data | ( | $parser, | |
| $data | |||
| ) |
element content handler
| string | $parser | XML parser object |
| string | $data | element content @access private |
Definition at line 3624 of file nusoap.php.
| wsdl::character_data | ( | $parser, | |
| $data | |||
| ) |
element content handler
| string | $parser | XML parser object |
| string | $data | element content @access private |
Definition at line 5038 of file nusoap.php.
| wsdl::end_element | ( | $parser, | |
| $name | |||
| ) |
end-element handler
| string | $parser | XML parser object |
| string | $name | element name @access private |
Definition at line 3597 of file nusoap.php.
References $currentSchema, and $parser.
| wsdl::end_element | ( | $parser, | |
| $name | |||
| ) |
end-element handler
| string | $parser | XML parser object |
| string | $name | element name @access private |
Definition at line 5008 of file nusoap.php.
References $currentSchema, $parser, nusoap_base\appendDebug(), and nusoap_base\debug().
Here is the call graph for this function:| wsdl::fetchWSDL | ( | $wsdl | ) |
fetches the WSDL document and parses it
@access public
Definition at line 4588 of file nusoap.php.
References $data, $url, $wsdl, nusoap_base\debug(), and parseWSDL().
Referenced by nusoap_client\loadWSDL(), and wsdl().
Here is the call graph for this function:
Here is the caller graph for this function:| wsdl::getBindingData | ( | $binding | ) |
Definition at line 3635 of file nusoap.php.
| wsdl::getBindingData | ( | $binding | ) |
Definition at line 5067 of file nusoap.php.
| wsdl::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 |
Definition at line 3679 of file nusoap.php.
References $opData.
Referenced by soap_server\invoke_method(), nusoap_server\invoke_method(), serializeParameters(), serializeRPCParameters(), soap_server\verify_method(), and nusoap_server\verify_method().
Here is the caller graph for this function:| wsdl::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 5112 of file nusoap.php.
References $opData.
| wsdl::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 5144 of file nusoap.php.
References $opData.
Referenced by nusoap_server\invoke_method().
Here is the caller graph for this function:| wsdl::getOperations | ( | $bindingType = 'soap' | ) |
returns an assoc array of operation names => operation data
| string | $bindingType | eg: soap, smtp, dime (only soap is currently supported) |
Definition at line 3649 of file nusoap.php.
Referenced by nusoap_client\checkWSDL(), soap_client\soap_client(), soap_server\webDescription(), and webDescription().
Here is the caller graph for this function:| wsdl::getOperations | ( | $bindingType = 'soap' | ) |
returns an assoc array of operation names => operation data
| string | $bindingType | eg: soap, smtp, dime (only soap and soap12 are currently supported) |
Definition at line 5081 of file nusoap.php.
| wsdl::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
)
| $type | string |
| $ns | string |
Definition at line 3718 of file nusoap.php.
References $t.
Referenced by getTypeDef(), parametersMatchWrapped(), serialize(), serializeComplexTypeAttributes(), serializeComplexTypeElements(), and serializeType().
Here is the caller graph for this function:| wsdl::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 5182 of file nusoap.php.
References $t, nusoap_base\debug(), getTypeDef(), and nusoap_base\varDump().
Here is the call graph for this function:| wsdl::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 5510 of file nusoap.php.
References nusoap_base\appendDebug(), nusoap_base\debug(), nusoap_base\getNamespaceFromPrefix(), getTypeDef(), nusoap_base\isArraySimpleOrStruct(), and nusoap_base\varDump().
Referenced by serializeRPCParameters().
Here is the call graph for this function:
Here is the caller graph for this function:| wsdl::parseWSDL | ( | $wsdl = '' | ) |
parses the wsdl document
| string | $wsdl | path or URL @access private |
Definition at line 3290 of file nusoap.php.
References $data, $path, $wsdl, nusoap_base\debug(), nusoap_base\getError(), and nusoap_base\setError().
Referenced by fetchWSDL(), and wsdl().
Here is the call graph for this function:
Here is the caller graph for this function:| wsdl::parseWSDL | ( | $wsdl = '' | ) |
parses the wsdl document
| string | $wsdl | path or URL @access private |
Definition at line 4691 of file nusoap.php.
References $data, $path, $wsdl, nusoap_base\appendDebug(), nusoap_base\debug(), nusoap_base\getError(), and nusoap_base\setError().
Here is the call graph for this function:| wsdl::serialize | ( | $debug = 0 | ) |
serialize the parsed wsdl
| mixed | $debug | whether to put debug=1 in endpoint URL |
Definition at line 5371 of file nusoap.php.
References nusoap_base\getLocalPart(), nusoap_base\getNamespaceFromPrefix(), nusoap_base\getPrefix(), nusoap_base\getPrefixFromNamespace(), and getTypeDef().
Here is the call graph for this function:| wsdl::serialize | ( | ) |
serialize the parsed wsdl
Definition at line 3741 of file nusoap.php.
References nusoap_base\getLocalPart(), nusoap_base\getPrefix(), and nusoap_base\getPrefixFromNamespace().
Referenced by soap_server\service(), and nusoap_server\service().
Here is the call graph for this function:
Here is the caller graph for this function:| wsdl::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 6080 of file nusoap.php.
References nusoap_base\debug(), nusoap_base\expandEntities(), nusoap_base\getLocalPart(), nusoap_base\getNamespaceFromPrefix(), nusoap_base\getPrefix(), getTypeDef(), and serializeComplexTypeAttributes().
Referenced by serializeComplexTypeAttributes(), and serializeType().
Here is the call graph for this function:
Here is the caller graph for this function:| wsdl::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) |
| string | $encodingStyle | SOAP encoding style for the value (if different than the enclosing style) |
Definition at line 6142 of file nusoap.php.
References nusoap_base\debug(), nusoap_base\getLocalPart(), nusoap_base\getNamespaceFromPrefix(), nusoap_base\getPrefix(), getTypeDef(), nusoap_base\isArraySimpleOrStruct(), nusoap_base\serialize_val(), serializeComplexTypeElements(), and serializeType().
Referenced by serializeComplexTypeElements(), and serializeType().
Here is the call graph for this function:
Here is the caller graph for this function:| wsdl::serializeParameters | ( | $operation, | |
| $direction, | |||
| $parameters | |||
| ) |
serialize a PHP value according to a WSDL message definition
TODO
| string | $ type name |
| mixed | $ param value |
Definition at line 3945 of file nusoap.php.
References $opData, nusoap_base\debug(), getOperationData(), nusoap_base\isArraySimpleOrStruct(), serializeType(), nusoap_base\setError(), and nusoap_base\varDump().
Here is the call graph for this function:| wsdl::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 5697 of file nusoap.php.
References $opData, nusoap_base\appendDebug(), nusoap_base\debug(), getOperationData(), nusoap_base\isArraySimpleOrStruct(), serializeType(), nusoap_base\setError(), and nusoap_base\varDump().
Here is the call graph for this function:| wsdl::serializeRPCParameters | ( | $operation, | |
| $direction, | |||
| $parameters | |||
| ) |
serialize a PHP value according to a WSDL message definition
TODO
| string | $ type name |
| mixed | $ param value |
Definition at line 3870 of file nusoap.php.
References $opData, nusoap_base\debug(), getOperationData(), nusoap_base\isArraySimpleOrStruct(), serializeType(), nusoap_base\setError(), and nusoap_base\varDump().
Referenced by soap_client\call(), nusoap_client\call(), soap_server\serialize_return(), and nusoap_server\serialize_return().
Here is the call graph for this function:
Here is the caller graph for this function:| wsdl::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 5603 of file nusoap.php.
References $opData, $style, nusoap_base\appendDebug(), nusoap_base\debug(), getOperationData(), nusoap_base\isArraySimpleOrStruct(), parametersMatchWrapped(), serializeType(), nusoap_base\setError(), and nusoap_base\varDump().
Here is the call graph for this function:| wsdl::serializeType | ( | $name, | |
| $type, | |||
| $value, | |||
$use = 'encoded', |
|||
$encodingStyle = false |
|||
| ) |
serializes a PHP value according a given type definition
| string | $name,name | of type (part) |
| string | $type,type | of type, heh (type or element) |
| mixed | $value,a | native PHP value (parameter value) |
| string | $use,use | for part (encoded|literal) |
| string | $encodingStyle,use | to add encoding changes to serialisation |
Definition at line 4020 of file nusoap.php.
References nusoap_base\debug(), nusoap_base\expandEntities(), nusoap_base\getLocalPart(), nusoap_base\getNamespaceFromPrefix(), nusoap_base\getPrefix(), nusoap_base\getPrefixFromNamespace(), getTypeDef(), nusoap_base\isArraySimpleOrStruct(), nusoap_base\serialize_val(), serializeType(), nusoap_base\setError(), and nusoap_base\varDump().
Referenced by serializeComplexTypeElements(), serializeParameters(), serializeRPCParameters(), and serializeType().
Here is the call graph for this function:
Here is the caller graph for this function:| wsdl::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) |
| string | $encodingStyle | SOAP encoding style for the value (if different than the enclosing style) |
| boolean | $unqualified | a kludge for what should be XML namespace form handling |
Definition at line 5776 of file nusoap.php.
References $n, nusoap_base\appendDebug(), nusoap_base\debug(), nusoap_base\expandEntities(), nusoap_base\getLocalPart(), nusoap_base\getNamespaceFromPrefix(), nusoap_base\getPrefix(), nusoap_base\getPrefixFromNamespace(), getTypeDef(), nusoap_base\serialize_val(), serializeComplexTypeAttributes(), serializeComplexTypeElements(), serializeType(), nusoap_base\setError(), and nusoap_base\varDump().
Here is the call graph for this function:| wsdl::setCredentials | ( | $username, | |
| $password, | |||
$authtype = 'basic', |
|||
$certRequest = array() |
|||
| ) |
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 5058 of file nusoap.php.
References $authtype, $certRequest, $password, $username, nusoap_base\appendDebug(), nusoap_base\debug(), and nusoap_base\varDump().
Referenced by nusoap_client\loadWSDL().
Here is the call graph for this function:
Here is the caller graph for this function:| wsdl::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 3389 of file nusoap.php.
References $currentBinding, $currentMessage, $currentOperation, $currentPort, $currentPortType, $depth, $namespace, $parser, nusoap_base\debug(), nusoap_base\expandQname(), nusoap_base\getLocalPart(), and nusoap_base\getPrefixFromNamespace().
Here is the call graph for this function:| wsdl::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 4795 of file nusoap.php.
References $currentBinding, $currentMessage, $currentOperation, $currentPort, $currentPortType, $depth, $namespace, $parser, nusoap_base\appendDebug(), nusoap_base\debug(), nusoap_base\expandQname(), nusoap_base\getLocalPart(), and nusoap_base\getPrefixFromNamespace().
Here is the call graph for this function:| wsdl::webDescription | ( | ) |
prints html description of services
@access private
Definition at line 5238 of file nusoap.php.
References $_SERVER, $data, getOperations(), and nusoap_base\setError().
Referenced by nusoap_server\service().
Here is the call graph for this function:
Here is the caller graph for this function:| wsdl::wsdl | ( | $wsdl = '', |
|
$proxyhost = false, |
|||
$proxyport = false, |
|||
$proxyusername = false, |
|||
$proxypassword = false, |
|||
$timeout = 0, |
|||
$response_timeout = 30 |
|||
| ) |
constructor
| string | $wsdl | WSDL document URL |
| string | $proxyhost | |
| string | $proxyport | |
| string | $proxyusername | |
| string | $proxypassword | |
| integer | $timeout | set the connection timeout |
| integer | $response_timeout | set the response timeout @access public |
Definition at line 3181 of file nusoap.php.
References $data, $proxyhost, $proxypassword, $proxyport, $proxyusername, $response_timeout, $timeout, $url, $wsdl, nusoap_base\debug(), and parseWSDL().
Referenced by nusoap_client\nusoap_client(), nusoap_server\nusoap_server(), soap_client\soap_client(), and soap_server\soap_server().
Here is the call graph for this function:
Here is the caller graph for this function:| wsdl::wsdl | ( | $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 |
| string | $proxyhost | |
| string | $proxyport | |
| string | $proxyusername | |
| string | $proxypassword | |
| integer | $timeout | set the connection timeout |
| integer | $response_timeout | set the response timeout |
| array | $curl_options | user-specified cURL options |
| boolean | $use_curl | try to use cURL @access public |
Definition at line 4568 of file nusoap.php.
References $curl_options, $proxyhost, $proxypassword, $proxyport, $proxyusername, $response_timeout, $timeout, $use_curl, nusoap_base\debug(), and fetchWSDL().
Here is the call graph for this function:| wsdl::$authtype = '' |
Definition at line 4551 of file nusoap.php.
Referenced by setCredentials().
| wsdl::$bindings = array() |
Definition at line 3146 of file nusoap.php.
| wsdl::$certRequest = array() |
Definition at line 4552 of file nusoap.php.
Referenced by setCredentials().
| wsdl::$complexTypes = array() |
Definition at line 3140 of file nusoap.php.
| wsdl::$curl_options = array() |
Definition at line 4546 of file nusoap.php.
Referenced by wsdl().
| wsdl::$currentBinding |
Definition at line 3147 of file nusoap.php.
Referenced by start_element().
| wsdl::$currentMessage |
Definition at line 3142 of file nusoap.php.
Referenced by start_element().
| wsdl::$currentOperation |
Definition at line 3143 of file nusoap.php.
Referenced by start_element().
| wsdl::$currentPort |
Definition at line 3149 of file nusoap.php.
Referenced by start_element().
| wsdl::$currentPortType |
Definition at line 3145 of file nusoap.php.
Referenced by start_element().
| wsdl::$currentSchema |
Definition at line 3138 of file nusoap.php.
Referenced by end_element().
| wsdl::$depth = 0 |
Definition at line 3159 of file nusoap.php.
Referenced by character_data(), and start_element().
| wsdl::$depth_array = array() |
Definition at line 3160 of file nusoap.php.
| wsdl::$documentation = false |
Definition at line 3152 of file nusoap.php.
Referenced by addOperation().
| wsdl::$endpoint = '' |
Definition at line 3153 of file nusoap.php.
| wsdl::$import = array() |
Definition at line 3155 of file nusoap.php.
| wsdl::$message = array() |
Definition at line 3139 of file nusoap.php.
| wsdl::$messages = array() |
Definition at line 3141 of file nusoap.php.
| wsdl::$opData = array() |
Definition at line 3150 of file nusoap.php.
Referenced by getOperationData(), getOperationDataForSoapAction(), serializeParameters(), and serializeRPCParameters().
| wsdl::$parser |
Definition at line 3157 of file nusoap.php.
Referenced by end_element(), and start_element().
| wsdl::$password = '' |
Definition at line 4550 of file nusoap.php.
Referenced by setCredentials().
| wsdl::$ports = array() |
Definition at line 3148 of file nusoap.php.
| wsdl::$portTypes = array() |
Definition at line 3144 of file nusoap.php.
| wsdl::$position = 0 |
Definition at line 3158 of file nusoap.php.
| wsdl::$proxyhost = '' |
Definition at line 3162 of file nusoap.php.
Referenced by wsdl().
| wsdl::$proxypassword = '' |
Definition at line 3165 of file nusoap.php.
Referenced by wsdl().
| wsdl::$proxyport = '' |
Definition at line 3163 of file nusoap.php.
Referenced by wsdl().
| wsdl::$proxyusername = '' |
Definition at line 3164 of file nusoap.php.
Referenced by wsdl().
| wsdl::$response_timeout = 30 |
Definition at line 3167 of file nusoap.php.
Referenced by wsdl().
| wsdl::$schemas = array() |
Definition at line 3137 of file nusoap.php.
| wsdl::$status = '' |
Definition at line 3151 of file nusoap.php.
| wsdl::$timeout = 0 |
Definition at line 3166 of file nusoap.php.
Referenced by wsdl().
| wsdl::$use_curl = false |
Definition at line 4547 of file nusoap.php.
Referenced by wsdl().
| wsdl::$username = '' |
Definition at line 4549 of file nusoap.php.
Referenced by setCredentials().
| wsdl::$wsdl |
Definition at line 3135 of file nusoap.php.
Referenced by fetchWSDL(), parseWSDL(), and wsdl().