Solutions Open Source

Référence de la classe wsdl

Graphe d'héritage de wsdl:

Inheritance graph
[légende]
Graphe de collaboration de wsdl:

Collaboration graph
[légende]

Liste de tous les membres

Fonctions membres publiques

 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)
 getBindingData ($binding)
 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= '')

Attributs publics

 $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


Description détaillée

parses a WSDL file, allows access to it's data, other utility methods

Auteur:
Dietrich Ayala <dietrich@ganx4.com>
Version:
Id
public

Documentation des fonctions membres

wsdl::wsdl ( wsdl = '',
proxyhost = false,
proxyport = false,
proxyusername = false,
proxypassword = false,
timeout = 0,
response_timeout = 30 
)

constructor

Paramètres:
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

Paramètres:
string $wsdl path or URL private

wsdl::start_element ( parser,
name,
attrs 
)

start-element handler

Paramètres:
string $parser XML parser object
string $name element name
string $attrs associative array of attributes private

wsdl::end_element ( parser,
name 
)

end-element handler

Paramètres:
string $parser XML parser object
string $name element name private

wsdl::character_data ( parser,
data 
)

element content handler

Paramètres:
string $parser XML parser object
string $data element content private

wsdl::getBindingData ( binding  ) 

wsdl::getOperations ( bindingType = 'soap'  ) 

returns an assoc array of operation names => operation data

Paramètres:
string $bindingType eg: soap, smtp, dime (only soap is currently supported)
Renvoie:
array public

wsdl::getOperationData ( operation,
bindingType = 'soap' 
)

returns an associative array of data necessary for calling an operation

Paramètres:
string $operation , name of operation
string $bindingType , type of binding eg: soap
Renvoie:
array public

wsdl::getOperationDataForSoapAction ( soapAction,
bindingType = 'soap' 
)

returns an associative array of data necessary for calling an operation

Paramètres:
string $soapAction soapAction for operation
string $bindingType type of binding eg: soap
Renvoie:
array public

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 )

Paramètres:
$type string the type
$ns string namespace (not prefix) of the type
Renvoie:
mixed public
Voir également:
xmlschema

wsdl::webDescription (  ) 

prints html description of services

private

wsdl::serialize ( debug = 0  ) 

serialize the parsed wsdl

Paramètres:
mixed $debug whether to put debug=1 in endpoint URL
Renvoie:
string serialization of WSDL public

wsdl::serializeRPCParameters ( operation,
direction,
parameters 
)

serialize PHP values according to a WSDL message definition

TODO

Paramètres:
string $operation operation name
string $direction (input|output)
mixed $parameters parameter value(s)
Renvoie:
mixed parameters serialized as XML or false on error (e.g. operation not found) public

wsdl::serializeParameters ( operation,
direction,
parameters 
)

serialize a PHP value according to a WSDL message definition

TODO

Paramètres:
string $ type name
mixed $ param value
Renvoie:
mixed new param or false if initial value didn't validate public
Obsolète:

wsdl::serializeType ( name,
type,
value,
use = 'encoded',
encodingStyle = false,
unqualified = false 
)

serializes a PHP value according a given type definition

Paramètres:
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
Renvoie:
string value serialized as an XML string private

wsdl::serializeComplexTypeAttributes ( typeDef,
value,
ns,
uqType 
)

serializes the attributes for a complexType

Paramètres:
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
Renvoie:
string value serialized as an XML string private

wsdl::serializeComplexTypeElements ( typeDef,
value,
ns,
uqType,
use = 'encoded',
encodingStyle = false 
)

serializes the elements for a complexType

Paramètres:
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)
Renvoie:
string value serialized as an XML string private

wsdl::addComplexType ( name,
typeClass = 'complexType',
phpType = 'array',
compositor = '',
restrictionBase = '',
elements = array(),
attrs = array(),
arrayType = '' 
)

adds an XML Schema complex type to the WSDL types

Paramètres:
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)
Voir également:
xmlschema public

wsdl::addSimpleType ( name,
restrictionBase = '',
typeClass = 'simpleType',
phpType = 'scalar',
enumeration = array() 
)

adds an XML Schema simple type to the WSDL types

Paramètres:
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
Voir également:
xmlschema public

wsdl::addElement ( attrs  ) 

adds an element to the WSDL types

Paramètres:
array $attrs attributes that must include name and type
Voir également:
xmlschema public

wsdl::addOperation ( name,
in = false,
out = false,
namespace = false,
soapaction = false,
style = 'rpc',
use = 'encoded',
documentation = '',
encodingStyle = '' 
)

register an operation with the server

Paramètres:
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


Documentation des données membres

wsdl::$wsdl

wsdl::$schemas = array()

wsdl::$currentSchema

wsdl::$message = array()

wsdl::$complexTypes = array()

wsdl::$messages = array()

wsdl::$currentMessage

wsdl::$currentOperation

wsdl::$portTypes = array()

wsdl::$currentPortType

wsdl::$bindings = array()

wsdl::$currentBinding

wsdl::$ports = array()

wsdl::$currentPort

wsdl::$opData = array()

wsdl::$status = ''

wsdl::$documentation = false

wsdl::$endpoint = ''

wsdl::$import = array()

wsdl::$parser

wsdl::$position = 0

wsdl::$depth = 0

wsdl::$depth_array = array()

wsdl::$proxyhost = ''

wsdl::$proxyport = ''

wsdl::$proxyusername = ''

wsdl::$proxypassword = ''

wsdl::$timeout = 0

wsdl::$response_timeout = 30


La documentation de cette classe a été générée à partir du fichier suivant :
Généré le Fri Aug 31 11:44:27 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3