ILIAS
Release_3_10_x_branch Revision 61812
|
parses a WSDL file, allows access to it's data, other utility methods More...
Public Member Functions | |
wsdl ($wsdl= '', $proxyhost=false, $proxyport=false, $proxyusername=false, $proxypassword=false, $timeout=0, $response_timeout=30) | |
constructor | |
parseWSDL ($wsdl= '') | |
parses the wsdl document | |
start_element ($parser, $name, $attrs) | |
start-element handler | |
end_element ($parser, $name) | |
end-element handler | |
character_data ($parser, $data) | |
element content handler | |
getBindingData ($binding) | |
getOperations ($bindingType= 'soap') | |
returns an assoc array of operation names => operation data | |
getOperationData ($operation, $bindingType= 'soap') | |
returns an associative array of data necessary for calling an operation | |
getTypeDef ($type, $ns) | |
returns an array of information about a given type returns false if no type exists by the given name | |
serialize () | |
serialize the parsed wsdl | |
serializeRPCParameters ($operation, $direction, $parameters) | |
serialize a PHP value according to a WSDL message definition | |
serializeParameters ($operation, $direction, $parameters) | |
serialize a PHP value according to a WSDL message definition | |
serializeType ($name, $type, $value, $use='encoded', $encodingStyle=false) | |
serializes a PHP value according a given type definition | |
addComplexType ($name, $typeClass='complexType', $phpType='array', $compositor='', $restrictionBase='', $elements=array(), $attrs=array(), $arrayType='') | |
adds an XML Schema complex type to the WSDL types | |
addSimpleType ($name, $restrictionBase='', $typeClass='simpleType', $phpType='scalar') | |
adds an XML Schema simple type to the WSDL types | |
addOperation ($name, $in=false, $out=false, $namespace=false, $soapaction=false, $style= 'rpc', $use= 'encoded', $documentation= '') | |
register a service with the server | |
wsdl ($wsdl= '', $proxyhost=false, $proxyport=false, $proxyusername=false, $proxypassword=false, $timeout=0, $response_timeout=30) | |
constructor | |
parseWSDL ($wsdl= '') | |
parses the wsdl document | |
start_element ($parser, $name, $attrs) | |
start-element handler | |
end_element ($parser, $name) | |
end-element handler | |
character_data ($parser, $data) | |
element content handler | |
getBindingData ($binding) | |
getOperations ($bindingType= 'soap') | |
returns an assoc array of operation names => operation data | |
getOperationData ($operation, $bindingType= 'soap') | |
returns an associative array of data necessary for calling an operation | |
getOperationDataForSoapAction ($soapAction, $bindingType= 'soap') | |
returns an associative array of data necessary for calling an operation | |
getTypeDef ($type, $ns) | |
returns an array of information about a given type returns false if no type exists by the given name | |
webDescription () | |
prints html description of services | |
serialize ($debug=0) | |
serialize the parsed wsdl | |
serializeRPCParameters ($operation, $direction, $parameters) | |
serialize PHP values according to a WSDL message definition | |
serializeParameters ($operation, $direction, $parameters) | |
serialize a PHP value according to a WSDL message definition | |
serializeType ($name, $type, $value, $use='encoded', $encodingStyle=false, $unqualified=false) | |
serializes a PHP value according a given type definition | |
serializeComplexTypeAttributes ($typeDef, $value, $ns, $uqType) | |
serializes the attributes for a complexType | |
serializeComplexTypeElements ($typeDef, $value, $ns, $uqType, $use='encoded', $encodingStyle=false) | |
serializes the elements for a complexType | |
addComplexType ($name, $typeClass='complexType', $phpType='array', $compositor='', $restrictionBase='', $elements=array(), $attrs=array(), $arrayType='') | |
adds an XML Schema complex type to the WSDL types | |
addSimpleType ($name, $restrictionBase='', $typeClass='simpleType', $phpType='scalar', $enumeration=array()) | |
adds an XML Schema simple type to the WSDL types | |
addElement ($attrs) | |
adds an element to the WSDL types | |
addOperation ($name, $in=false, $out=false, $namespace=false, $soapaction=false, $style= 'rpc', $use= 'encoded', $documentation= '', $encodingStyle= '') | |
register an operation with the server | |
wsdl ($wsdl= '', $proxyhost=false, $proxyport=false, $proxyusername=false, $proxypassword=false, $timeout=0, $response_timeout=30) | |
constructor | |
parseWSDL ($wsdl= '') | |
parses the wsdl document | |
start_element ($parser, $name, $attrs) | |
start-element handler | |
end_element ($parser, $name) | |
end-element handler | |
character_data ($parser, $data) | |
element content handler | |
getBindingData ($binding) | |
getOperations ($bindingType= 'soap') | |
returns an assoc array of operation names => operation data | |
getOperationData ($operation, $bindingType= 'soap') | |
returns an associative array of data necessary for calling an operation | |
getOperationDataForSoapAction ($soapAction, $bindingType= 'soap') | |
returns an associative array of data necessary for calling an operation | |
getTypeDef ($type, $ns) | |
returns an array of information about a given type returns false if no type exists by the given name | |
webDescription () | |
prints html description of services | |
serialize ($debug=0) | |
serialize the parsed wsdl | |
serializeRPCParameters ($operation, $direction, $parameters) | |
serialize PHP values according to a WSDL message definition | |
serializeParameters ($operation, $direction, $parameters) | |
serialize a PHP value according to a WSDL message definition | |
serializeType ($name, $type, $value, $use='encoded', $encodingStyle=false, $unqualified=false) | |
serializes a PHP value according a given type definition | |
serializeComplexTypeAttributes ($typeDef, $value, $ns, $uqType) | |
serializes the attributes for a complexType | |
serializeComplexTypeElements ($typeDef, $value, $ns, $uqType, $use='encoded', $encodingStyle=false) | |
serializes the elements for a complexType | |
addComplexType ($name, $typeClass='complexType', $phpType='array', $compositor='', $restrictionBase='', $elements=array(), $attrs=array(), $arrayType='') | |
adds an XML Schema complex type to the WSDL types | |
addSimpleType ($name, $restrictionBase='', $typeClass='simpleType', $phpType='scalar', $enumeration=array()) | |
adds an XML Schema simple type to the WSDL types | |
addElement ($attrs) | |
adds an element to the WSDL types | |
addOperation ($name, $in=false, $out=false, $namespace=false, $soapaction=false, $style= 'rpc', $use= 'encoded', $documentation= '', $encodingStyle= '') | |
register an operation with the server | |
![]() | |
debug ($string) | |
adds debug data to the class level debug string | |
expandEntities ($val) | |
expands entities, e.g. | |
getError () | |
returns error string if present | |
setError ($str) | |
sets error string | |
isArraySimpleOrStruct ($val) | |
detect if array is a simple array or a struct (associative array) | |
serialize_val ($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded') | |
serializes PHP values in accordance w/ section 5. | |
serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded') | |
serialize message | |
formatDump ($str) | |
contractQname ($qname) | |
contracts a qualified name | |
expandQname ($qname) | |
expands a qualified name | |
getLocalPart ($str) | |
returns the local part of a prefixed string returns the original string, if not prefixed | |
getPrefix ($str) | |
returns the prefix part of a prefixed string returns false, if not prefixed | |
getNamespaceFromPrefix ($prefix) | |
pass it a prefix, it returns a namespace returns false if no namespace registered with the given prefix | |
getPrefixFromNamespace ($ns) | |
returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace | |
varDump ($data) | |
nusoap_base () | |
constructor | |
getGlobalDebugLevel () | |
gets the global debug level, which applies to future instances | |
setGlobalDebugLevel ($level) | |
sets the global debug level, which applies to future instances | |
getDebugLevel () | |
gets the debug level for this instance | |
setDebugLevel ($level) | |
sets the debug level for this instance | |
debug ($string) | |
adds debug data to the instance debug string with formatting | |
appendDebug ($string) | |
adds debug data to the instance debug string without formatting | |
clearDebug () | |
clears the current debug data for this instance | |
& | getDebug () |
gets the current debug data for this instance | |
& | getDebugAsXMLComment () |
gets the current debug data for this instance as an XML comment this may change the contents of the debug data | |
expandEntities ($val) | |
expands entities, e.g. | |
getError () | |
returns error string if present | |
setError ($str) | |
sets error string | |
isArraySimpleOrStruct ($val) | |
detect if array is a simple array or a struct (associative array) | |
serialize_val ($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded') | |
serializes PHP values in accordance w/ section 5. | |
serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded', $encodingStyle='http://schemas.xmlsoap.org/soap/encoding/') | |
serializes a message | |
formatDump ($str) | |
formats a string to be inserted into an HTML stream | |
contractQname ($qname) | |
contracts (changes namespace to prefix) a qualified name | |
expandQname ($qname) | |
expands (changes prefix to namespace) a qualified name | |
getLocalPart ($str) | |
returns the local part of a prefixed string returns the original string, if not prefixed | |
getPrefix ($str) | |
returns the prefix part of a prefixed string returns false, if not prefixed | |
getNamespaceFromPrefix ($prefix) | |
pass it a prefix, it returns a namespace | |
getPrefixFromNamespace ($ns) | |
returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace | |
getmicrotime () | |
returns the time in ODBC canonical form with microseconds | |
varDump ($data) | |
Returns a string with the output of var_dump. | |
nusoap_base () | |
constructor | |
getGlobalDebugLevel () | |
gets the global debug level, which applies to future instances | |
setGlobalDebugLevel ($level) | |
sets the global debug level, which applies to future instances | |
getDebugLevel () | |
gets the debug level for this instance | |
setDebugLevel ($level) | |
sets the debug level for this instance | |
debug ($string) | |
adds debug data to the instance debug string with formatting | |
appendDebug ($string) | |
adds debug data to the instance debug string without formatting | |
clearDebug () | |
clears the current debug data for this instance | |
& | getDebug () |
gets the current debug data for this instance | |
& | getDebugAsXMLComment () |
gets the current debug data for this instance as an XML comment this may change the contents of the debug data | |
expandEntities ($val) | |
expands entities, e.g. | |
getError () | |
returns error string if present | |
setError ($str) | |
sets error string | |
isArraySimpleOrStruct ($val) | |
detect if array is a simple array or a struct (associative array) | |
serialize_val ($val, $name=false, $type=false, $name_ns=false, $type_ns=false, $attributes=false, $use='encoded') | |
serializes PHP values in accordance w/ section 5. | |
serializeEnvelope ($body, $headers=false, $namespaces=array(), $style='rpc', $use='encoded', $encodingStyle='http://schemas.xmlsoap.org/soap/encoding/') | |
serializes a message | |
formatDump ($str) | |
formats a string to be inserted into an HTML stream | |
contractQname ($qname) | |
contracts (changes namespace to prefix) a qualified name | |
expandQname ($qname) | |
expands (changes prefix to namespace) a qualified name | |
getLocalPart ($str) | |
returns the local part of a prefixed string returns the original string, if not prefixed | |
getPrefix ($str) | |
returns the prefix part of a prefixed string returns false, if not prefixed | |
getNamespaceFromPrefix ($prefix) | |
pass it a prefix, it returns a namespace | |
getPrefixFromNamespace ($ns) | |
returns the prefix for a given namespace (or prefix) or false if no prefixes registered for the given namespace | |
getmicrotime () | |
returns the time in ODBC canonical form with microseconds | |
varDump ($data) | |
Returns a string with the output of var_dump. |
Data Fields | |
$wsdl | |
$schemas = array() | |
$currentSchema | |
$message = array() | |
$complexTypes = array() | |
$messages = array() | |
$currentMessage | |
$currentOperation | |
$portTypes = array() | |
$currentPortType | |
$bindings = array() | |
$currentBinding | |
$ports = array() | |
$currentPort | |
$opData = array() | |
$status = '' | |
$documentation = false | |
$endpoint = '' | |
$import = array() | |
$parser | |
$position = 0 | |
$depth = 0 | |
$depth_array = array() | |
$proxyhost = '' | |
$proxyport = '' | |
$proxyusername = '' | |
$proxypassword = '' | |
$timeout = 0 | |
$response_timeout = 30 | |
![]() | |
$title = 'NuSOAP' | |
$version = '0.6.7' | |
$revision = '$Revision: 11808 $' | |
$error_str = false | |
$debug_str = '' | |
$charencoding = true | |
$XMLSchemaVersion = 'http://www.w3.org/2001/XMLSchema' | |
$soap_defencoding = 'UTF-8' | |
$namespaces | |
$usedNamespaces = array() | |
$typemap | |
$xmlEntities | |
$debugLevel |
parses a WSDL file, allows access to it's data, other utility methods
public
public
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
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 = array ( name => array(name=>'',type=>'') ) |
array | attrs = array(array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'xsd:string[]')) |
string | arrayType: namespace:name (xsd:string) |
Definition at line 1573 of file class.wsdl.php.
References $n, and nusoap_base\expandQname().
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().
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 = array ( name => array(name=>'',type=>'') ) |
array | attrs = array(array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'xsd:string[]')) |
string | arrayType: namespace:name (xsd:string) |
Definition at line 5646 of file nusoap.php.
References $n, and nusoap_base\expandQname().
wsdl::addElement | ( | $attrs | ) |
adds an element to the WSDL types
array | $attrs | attributes that must include name and type |
Definition at line 1632 of file class.wsdl.php.
Referenced by addOperation().
wsdl::addElement | ( | $attrs | ) |
adds an element to the WSDL types
array | $attrs | attributes that must include name and type |
Definition at line 5705 of file nusoap.php.
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) public |
Definition at line 1651 of file class.wsdl.php.
References $documentation, $in, $n, $namespace, $out, $t, addComplexType(), addElement(), nusoap_base\getLocalPart(), nusoap_base\getNamespaceFromPrefix(), and nusoap_base\getPrefix().
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 public |
Definition at line 4362 of file nusoap.php.
References $documentation, $in, $namespace, $out, nusoap_base\getLocalPart(), nusoap_base\getNamespaceFromPrefix(), and nusoap_base\getPrefix().
Referenced by soap_server\register().
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) public |
Definition at line 5724 of file nusoap.php.
References $documentation, $in, $n, $namespace, $out, $t, addComplexType(), addElement(), nusoap_base\getLocalPart(), nusoap_base\getNamespaceFromPrefix(), and nusoap_base\getPrefix().
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 1618 of file class.wsdl.php.
References nusoap_base\expandQname().
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().
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 5691 of file nusoap.php.
References nusoap_base\expandQname().
wsdl::character_data | ( | $parser, | |
$data | |||
) |
element content handler
string | $parser | XML parser object |
string | $data | element content private |
Definition at line 514 of file class.wsdl.php.
wsdl::character_data | ( | $parser, | |
$data | |||
) |
element content handler
string | $parser | XML parser object |
string | $data | element content 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 private |
Definition at line 4587 of file nusoap.php.
wsdl::end_element | ( | $parser, | |
$name | |||
) |
end-element handler
string | $parser | XML parser object |
string | $name | element name private |
Definition at line 484 of file class.wsdl.php.
References $currentSchema, $parser, nusoap_base\appendDebug(), and nusoap_base\debug().
wsdl::end_element | ( | $parser, | |
$name | |||
) |
end-element handler
string | $parser | XML parser object |
string | $name | element name 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 private |
Definition at line 4557 of file nusoap.php.
References $currentSchema, $parser, nusoap_base\appendDebug(), and nusoap_base\debug().
wsdl::getBindingData | ( | $binding | ) |
Definition at line 525 of file class.wsdl.php.
wsdl::getBindingData | ( | $binding | ) |
Definition at line 3635 of file nusoap.php.
wsdl::getBindingData | ( | $binding | ) |
Definition at line 4598 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 569 of file class.wsdl.php.
References $opData.
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(), serializeParameters(), serializeRPCParameters(), and soap_server\verify_method().
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 4642 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 |
Definition at line 599 of file class.wsdl.php.
References $opData.
Referenced by soap_server\invoke_method().
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 |
Definition at line 4672 of file nusoap.php.
References $opData.
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 539 of file class.wsdl.php.
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 soap_client\soap_client(), soap_server\webDescription(), and webDescription().
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 4612 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 the type |
$ns | string namespace (not prefix) of the type |
Definition at line 635 of file class.wsdl.php.
References $t, nusoap_base\appendDebug(), nusoap_base\debug(), getTypeDef(), and nusoap_base\varDump().
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(), serialize(), serializeComplexTypeAttributes(), serializeComplexTypeElements(), and serializeType().
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 the type |
$ns | string namespace (not prefix) of the type |
Definition at line 4708 of file nusoap.php.
References $t, nusoap_base\appendDebug(), nusoap_base\debug(), getTypeDef(), and nusoap_base\varDump().
wsdl::parseWSDL | ( | $wsdl = '' | ) |
parses the wsdl document
string | $wsdl | path or URL private |
Definition at line 171 of file class.wsdl.php.
References $data, $wsdl, nusoap_base\appendDebug(), nusoap_base\debug(), nusoap_base\getError(), and nusoap_base\setError().
wsdl::parseWSDL | ( | $wsdl = '' | ) |
parses the wsdl document
string | $wsdl | path or URL private |
Definition at line 3290 of file nusoap.php.
References $data, $wsdl, nusoap_base\debug(), nusoap_base\getError(), and nusoap_base\setError().
Referenced by wsdl().
wsdl::parseWSDL | ( | $wsdl = '' | ) |
parses the wsdl document
string | $wsdl | path or URL private |
Definition at line 4244 of file nusoap.php.
References $data, $wsdl, nusoap_base\appendDebug(), nusoap_base\debug(), nusoap_base\getError(), and nusoap_base\setError().
wsdl::serialize | ( | $debug = 0 | ) |
serialize the parsed wsdl
mixed | $debug | whether to put debug=1 in endpoint URL |
Definition at line 815 of file class.wsdl.php.
References nusoap_base\getLocalPart(), nusoap_base\getNamespaceFromPrefix(), nusoap_base\getPrefix(), nusoap_base\getPrefixFromNamespace(), and getTypeDef().
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().
wsdl::serialize | ( | $debug = 0 | ) |
serialize the parsed wsdl
mixed | $debug | whether to put debug=1 in endpoint URL |
Definition at line 4888 of file nusoap.php.
References nusoap_base\getLocalPart(), nusoap_base\getNamespaceFromPrefix(), nusoap_base\getPrefix(), nusoap_base\getPrefixFromNamespace(), and getTypeDef().
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 1409 of file class.wsdl.php.
References nusoap_base\debug(), nusoap_base\expandEntities(), nusoap_base\getLocalPart(), nusoap_base\getNamespaceFromPrefix(), nusoap_base\getPrefix(), and getTypeDef().
Referenced by serializeComplexTypeAttributes(), and serializeType().
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 5482 of file nusoap.php.
References nusoap_base\debug(), nusoap_base\expandEntities(), nusoap_base\getLocalPart(), nusoap_base\getNamespaceFromPrefix(), nusoap_base\getPrefix(), getTypeDef(), and serializeComplexTypeAttributes().
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 1471 of file class.wsdl.php.
References nusoap_base\debug(), nusoap_base\getLocalPart(), nusoap_base\getNamespaceFromPrefix(), nusoap_base\getPrefix(), getTypeDef(), nusoap_base\isArraySimpleOrStruct(), nusoap_base\serialize_val(), and serializeType().
Referenced by serializeComplexTypeElements(), and serializeType().
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 5544 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().
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 1033 of file class.wsdl.php.
References $opData, nusoap_base\appendDebug(), nusoap_base\debug(), getOperationData(), nusoap_base\isArraySimpleOrStruct(), serializeType(), nusoap_base\setError(), and nusoap_base\varDump().
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().
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 5106 of file nusoap.php.
References $opData, nusoap_base\appendDebug(), nusoap_base\debug(), getOperationData(), nusoap_base\isArraySimpleOrStruct(), serializeType(), nusoap_base\setError(), and nusoap_base\varDump().
wsdl::serializeRPCParameters | ( | $operation, | |
$direction, | |||
$parameters | |||
) |
serialize PHP values according to a WSDL message definition
TODO
string | $operation | operation name |
string | $direction | (input|output) |
mixed | $parameters | parameter value(s) |
Definition at line 954 of file class.wsdl.php.
References $opData, nusoap_base\appendDebug(), nusoap_base\debug(), getOperationData(), nusoap_base\isArraySimpleOrStruct(), serializeType(), nusoap_base\setError(), and nusoap_base\varDump().
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(), and soap_server\serialize_return().
wsdl::serializeRPCParameters | ( | $operation, | |
$direction, | |||
$parameters | |||
) |
serialize PHP values according to a WSDL message definition
TODO
string | $operation | operation name |
string | $direction | (input|output) |
mixed | $parameters | parameter value(s) |
Definition at line 5027 of file nusoap.php.
References $opData, nusoap_base\appendDebug(), nusoap_base\debug(), getOperationData(), nusoap_base\isArraySimpleOrStruct(), serializeType(), nusoap_base\setError(), and nusoap_base\varDump().
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 1112 of file class.wsdl.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().
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(), nusoap_base\setError(), and nusoap_base\varDump().
Referenced by serializeComplexTypeElements(), serializeParameters(), serializeRPCParameters(), and serializeType().
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 5185 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().
wsdl::start_element | ( | $parser, | |
$name, | |||
$attrs | |||
) |
start-element handler
string | $parser | XML parser object |
string | $name | element name |
string | $attrs | associative array of attributes private |
Definition at line 271 of file class.wsdl.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().
wsdl::start_element | ( | $parser, | |
$name, | |||
$attrs | |||
) |
start-element handler
string | $parser | XML parser object |
string | $name | element name |
string | $attrs | associative array of attributes 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().
wsdl::start_element | ( | $parser, | |
$name, | |||
$attrs | |||
) |
start-element handler
string | $parser | XML parser object |
string | $name | element name |
string | $attrs | associative array of attributes private |
Definition at line 4344 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().
wsdl::webDescription | ( | ) |
prints html description of services
private
Definition at line 682 of file class.wsdl.php.
References $data, getOperations(), and nusoap_base\setError().
Referenced by soap_server\service().
wsdl::webDescription | ( | ) |
prints html description of services
private
Definition at line 4755 of file nusoap.php.
References $data, getOperations(), and nusoap_base\setError().
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 public |
Definition at line 61 of file class.wsdl.php.
References $data, $proxyhost, $proxypassword, $proxyport, $proxyusername, $response_timeout, $timeout, $wsdl, nusoap_base\debug(), nusoap_base\nusoap_base(), and parseWSDL().
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 public |
Definition at line 3181 of file nusoap.php.
References $data, $proxyhost, $proxypassword, $proxyport, $proxyusername, $response_timeout, $timeout, $wsdl, nusoap_base\debug(), and parseWSDL().
Referenced by soap_client\soap_client(), and soap_server\soap_server().
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 public |
Definition at line 4134 of file nusoap.php.
References $data, $proxyhost, $proxypassword, $proxyport, $proxyusername, $response_timeout, $timeout, $wsdl, nusoap_base\debug(), nusoap_base\nusoap_base(), and parseWSDL().
wsdl::$bindings = array() |
Definition at line 3146 of file nusoap.php.
wsdl::$complexTypes = array() |
Definition at line 3140 of file nusoap.php.
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::$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::$wsdl |
Definition at line 3135 of file nusoap.php.
Referenced by parseWSDL(), and wsdl().