constructor
wsdl
wsdl
([string $wsdl = ''], [string $proxyhost = false], [string $proxyport = false], [string $proxyusername = false], [string $proxypassword = false], integer $timeout, [integer $response_timeout = 30])
-
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
adds an XML Schema complex type to the WSDL types
void
addComplexType
(string $name, [string $typeClass = 'complexType'], [string $phpType = 'array'], [string $compositor = ''], [string $restrictionBase = ''], [array $elements = array()], [array $attrs = array()], [string $arrayType = ''])
-
string
$name: name
-
string
$typeClass: typeClass (complexType|simpleType|attribute)
-
string
$phpType: phpType: currently supported are array and struct (php assoc array)
-
string
$compositor: compositor (all|sequence|choice)
-
string
$restrictionBase: restrictionBase namespace:name (http://schemas.xmlsoap.org/soap/encoding/:Array)
-
array
$elements: elements = array ( name => array(name=>'',type=>'') )
-
array
$attrs: attrs = array(array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'xsd:string[]'))
-
string
$arrayType: arrayType: namespace:name (xsd:string)
adds an element to the WSDL types
void
addElement
(array $attrs)
-
array
$attrs: attributes that must include name and type
register an operation with the server
void
addOperation
(string $name, [array $in = false], [array $out = false], [string $namespace = false], [string $soapaction = false], [string $style = 'rpc'], [string $use = 'encoded'], [string $documentation = ''], [string $encodingStyle = ''])
-
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)
adds an XML Schema simple type to the WSDL types
void
addSimpleType
(string $name, [string $restrictionBase = ''], [string $typeClass = 'simpleType'], [string $phpType = 'scalar'], [array $enumeration = array()])
-
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
void
getBindingData
(mixed $binding)
returns an associative array of data necessary for calling an operation
array
getOperationData
(string $operation, [string $bindingType = 'soap'])
-
string
$operation: , name of operation
-
string
$bindingType: , type of binding eg: soap
returns an associative array of data necessary for calling an operation
array
getOperationDataForSoapAction
(string $soapAction, [string $bindingType = 'soap'])
-
string
$soapAction: soapAction for operation
-
string
$bindingType: type of binding eg: soap
returns an assoc array of operation names => operation data
array
getOperations
([string $bindingType = 'soap'])
-
string
$bindingType: eg: soap, smtp, dime (only soap is currently supported)
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 )
mixed
getTypeDef
($type $type, $ns $ns)
-
$type
$type: string the type
-
$ns
$ns: string namespace (not prefix) of the type
serialize the parsed wsdl
string
serialize
(mixed $debug)
-
mixed
$debug: whether to put debug=1 in endpoint URL
serialize a PHP value according to a WSDL message definition
TODO
- multi-ref serialization
- validate PHP values against type definitions, return errors if invalid
mixed
serializeParameters
(mixed $operation, mixed $direction, mixed $parameters, mixed $)
serialize PHP values according to a WSDL message definition
TODO
- multi-ref serialization
- validate PHP values against type definitions, return errors if invalid
mixed
serializeRPCParameters
(string $operation, string $direction, mixed $parameters)
-
string
$operation: operation name
-
string
$direction: (input|output)
-
mixed
$parameters: parameter value(s)