Inheritance diagram for wsdl:
Public Member Functions | |
| wsdl ($wsdl= '', $proxyhost=false, $proxyport=false, $proxyusername=false, $proxypassword=false, $timeout=0, $response_timeout=30) | |
| parseWSDL ($wsdl= '') | |
| start_element ($parser, $name, $attrs) | |
| end_element ($parser, $name) | |
| character_data ($parser, $data) | |
| getOperations ($bindingType= 'soap') | |
| getOperationData ($operation, $bindingType= 'soap') | |
| getOperationDataForSoapAction ($soapAction, $bindingType= 'soap') | |
| getTypeDef ($type, $ns) | |
| webDescription () | |
| serialize ($debug=0) | |
| serializeRPCParameters ($operation, $direction, $parameters) | |
| 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=array(), $attrs=array(), $arrayType='') | |
| addSimpleType ($name, $restrictionBase='', $typeClass='simpleType', $phpType='scalar', $enumeration=array()) | |
| addElement ($attrs) | |
| addOperation ($name, $in=false, $out=false, $namespace=false, $soapaction=false, $style= 'rpc', $use= 'encoded', $documentation= '', $encodingStyle= '') | |
| wsdl ($wsdl= '', $proxyhost=false, $proxyport=false, $proxyusername=false, $proxypassword=false, $timeout=0, $response_timeout=30) | |
| parseWSDL ($wsdl= '') | |
| start_element ($parser, $name, $attrs) | |
| end_element ($parser, $name) | |
| character_data ($parser, $data) | |
| getOperations ($bindingType= 'soap') | |
| getOperationData ($operation, $bindingType= 'soap') | |
| getOperationDataForSoapAction ($soapAction, $bindingType= 'soap') | |
| getTypeDef ($type, $ns) | |
| webDescription () | |
| serialize ($debug=0) | |
| serializeRPCParameters ($operation, $direction, $parameters) | |
| 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=array(), $attrs=array(), $arrayType='') | |
| addSimpleType ($name, $restrictionBase='', $typeClass='simpleType', $phpType='scalar', $enumeration=array()) | |
| addElement ($attrs) | |
| addOperation ($name, $in=false, $out=false, $namespace=false, $soapaction=false, $style= 'rpc', $use= 'encoded', $documentation= '', $encodingStyle= '') | |
| 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 |
| wsdl::parseWSDL | ( | $ | wsdl = '' |
) |
parses the wsdl document
| string | $wsdl path or URL private |
| 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 |
| wsdl::end_element | ( | $ | parser, | |
| $ | name | |||
| ) |
end-element handler
| string | $parser XML parser object | |
| string | $name element name private |
| wsdl::character_data | ( | $ | parser, | |
| $ | data | |||
| ) |
element content handler
| string | $parser XML parser object | |
| string | $data element content private |
| wsdl::getOperations | ( | $ | bindingType = 'soap' |
) |
returns an assoc array of operation names => operation data
| string | $bindingType eg: soap, smtp, dime (only soap is currently supported) |
| 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 |
| 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 |
| 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 |
| wsdl::webDescription | ( | ) |
prints html description of services
private
| wsdl::serialize | ( | $ | debug = 0 |
) |
serialize the parsed wsdl
| mixed | $debug whether to put debug=1 in endpoint URL |
| 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) |
| wsdl::serializeParameters | ( | $ | operation, | |
| $ | direction, | |||
| $ | parameters | |||
| ) |
serialize a PHP value according to a WSDL message definition
TODO
| string | $ type name | |
| mixed | $ param value |
| 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 |
| 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 |
| 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) |
| 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) |
| 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 |
| wsdl::addElement | ( | $ | attrs | ) |
adds an element to the WSDL types
| array | $attrs attributes that must include name and type |
| 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 |
| 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 |
| wsdl::parseWSDL | ( | $ | wsdl = '' |
) |
parses the wsdl document
| string | $wsdl path or URL private |
| 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 |
| wsdl::end_element | ( | $ | parser, | |
| $ | name | |||
| ) |
end-element handler
| string | $parser XML parser object | |
| string | $name element name private |
| wsdl::character_data | ( | $ | parser, | |
| $ | data | |||
| ) |
element content handler
| string | $parser XML parser object | |
| string | $data element content private |
| wsdl::getOperations | ( | $ | bindingType = 'soap' |
) |
returns an assoc array of operation names => operation data
| string | $bindingType eg: soap, smtp, dime (only soap is currently supported) |
| 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 |
| 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 |
| 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 |
| wsdl::webDescription | ( | ) |
prints html description of services
private
| wsdl::serialize | ( | $ | debug = 0 |
) |
serialize the parsed wsdl
| mixed | $debug whether to put debug=1 in endpoint URL |
| 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) |
| wsdl::serializeParameters | ( | $ | operation, | |
| $ | direction, | |||
| $ | parameters | |||
| ) |
serialize a PHP value according to a WSDL message definition
TODO
| string | $ type name | |
| mixed | $ param value |
| 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 |
| 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 |
| 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) |
| 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) |
| 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 |
| wsdl::addElement | ( | $ | attrs | ) |
adds an element to the WSDL types
| array | $attrs attributes that must include name and type |
| 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 |
1.5.1