\wsdl
parses a WSDL file, allows access to it's data, other utility methods.
also builds WSDL structures programmatically.
- Author: Dietrich Ayala <dietrich@ganx4.com>
Synopsis
class wsdl
extends nusoap_base
{
- // members
- public $wsdl;
- public array $schemas = ;
- public $currentSchema;
- public array $message = ;
- public array $complexTypes = ;
- public array $messages = ;
- public $currentMessage;
- public $currentOperation;
- public array $portTypes = ;
- public $currentPortType;
- public array $bindings = ;
- public $currentBinding;
- public array $ports = ;
- public $currentPort;
- public array $opData = ;
- public string $status = '';
- public boolean $documentation = false;
- public string $endpoint = '';
- public array $import = ;
- public $parser;
- public integer $position = 0;
- public integer $depth = 0;
- public array $depth_array = ;
- public string $proxyhost = '';
- public string $proxyport = '';
- public string $proxyusername = '';
- public string $proxypassword = '';
- public integer $timeout = 0;
- public integer $response_timeout = 30;
- public array $curl_options = ;
- public boolean $use_curl = false;
- public string $username = '';
- public string $password = '';
- public string $authtype = '';
- public array $certRequest = ;
- // Inherited members from nusoap_base
- public string $title;
- public string $version;
- public string $revision;
- public string $error_str;
- public string $debug_str;
- public boolean $charencoding;
- public $debugLevel;
- public string $XMLSchemaVersion;
- public string $soap_defencoding;
- public array $namespaces;
- public array $usedNamespaces;
- public array $typemap;
- public array $xmlEntities;
- // methods
- public void wsdl()
- public void fetchWSDL()
- public void parseWSDL()
- public void start_element()
- public void end_element()
- public void character_data()
- public void setCredentials()
- public void getBindingData()
- public array getOperations()
- public array getOperationData()
- public array getOperationDataForSoapAction()
- public mixed getTypeDef()
- public void webDescription()
- public string serialize()
- public boolean parametersMatchWrapped()
- public mixed serializeRPCParameters()
- public mixed serializeParameters()
- public string serializeType()
- public string serializeComplexTypeAttributes()
- public string serializeComplexTypeElements()
- public void addComplexType()
- public void addSimpleType()
- public void addElement()
- public void addOperation()
- // Inherited methods from nusoap_base
- public void nusoap_base()
- public integer getGlobalDebugLevel()
- public void setGlobalDebugLevel()
- public int getDebugLevel()
- public void setDebugLevel()
- public void debug()
- public void appendDebug()
- public void clearDebug()
- public debug getDebug()
- public debug getDebugAsXMLComment()
- public void expandEntities()
- public mixed getError()
- public boolean setError()
- public string isArraySimpleOrStruct()
- public string serialize_val()
- public string serializeEnvelope()
- public string formatDump()
- public string contractQname()
- public string expandQname()
- public string getLocalPart()
- public mixed getPrefix()
- public mixed getNamespaceFromPrefix()
- public mixed getPrefixFromNamespace()
- public string getmicrotime()
- public string varDump()
- public string __toString()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
4686 | handle imports more properly, grabbing them in-line and nesting them |
692 | add an option to automatically run utf8_encode on $body and $headers |
Members
public
- $XMLSchemaVersion
—
string
set schema version - $authtype
- $bindings
- $certRequest
- $charencoding
—
boolean
toggles automatic encoding of special characters as entities (should always be true, I think) - $complexTypes
- $curl_options
- $currentBinding
- $currentMessage
- $currentOperation
- $currentPort
- $currentPortType
- $currentSchema
- $debugLevel
—
integer
the debug level for this instance - $debug_str
—
string
Current debug string (manipulated by debug/appendDebug/clearDebug/getDebug/getDebugAsXMLComment) - $depth
- $depth_array
- $documentation
- $endpoint
- $error_str
—
string
Current error string (manipulated by getError/setError) - $import
- $message
- $messages
- $namespaces
—
array
namespaces in an array of prefix => uri - $opData
- $parser
- $password
- $portTypes
- $ports
- $position
- $proxyhost
- $proxypassword
- $proxyport
- $proxyusername
- $response_timeout
- $revision
—
string
CVS revision for HTTP headers. - $schemas
- $soap_defencoding
—
string
charset encoding for outgoing messages - $status
- $timeout
- $title
—
string
Identification for HTTP headers. - $typemap
—
array
XML Schema types in an array of uri => (array of xml type => php type) is this legacy yet? no, this is used by the nusoap_xmlschema class to verify type => namespace mappings. - $use_curl
- $usedNamespaces
—
array
namespaces used in the current context, e.g. during serialization - $username
- $version
—
string
Version for HTTP headers. - $wsdl
- $xmlEntities
—
array
XML entities to convert
Methods
public
- addComplexType() — adds an XML Schema complex type to the WSDL types
- addElement() — adds an element to the WSDL types
- addOperation() — register an operation with the server
- addSimpleType() — adds an XML Schema simple type to the WSDL types
- character_data() — element content handler
- end_element() — end-element handler
- fetchWSDL() — fetches the WSDL document and parses it
- getBindingData()
- getOperationData() — returns an associative array of data necessary for calling an operation
- getOperationDataForSoapAction() — returns an associative array of data necessary for calling an operation
- getOperations() — returns an assoc array of operation names => operation data
- getTypeDef() — returns an array of information about a given type returns false if no type exists by the given name
- parametersMatchWrapped() — determine whether a set of parameters are unwrapped when they are expect to be wrapped, Microsoft-style.
- parseWSDL() — parses the wsdl document
- serialize() — serialize the parsed wsdl
- serializeComplexTypeAttributes() — serializes the attributes for a complexType
- serializeComplexTypeElements() — serializes the elements for a complexType
- serializeParameters() — serialize a PHP value according to a WSDL message definition
- serializeRPCParameters() — serialize PHP values according to a WSDL message definition contrary to the method name, this is not limited to RPC
- serializeType() — serializes a PHP value according a given type definition
- setCredentials() — if authenticating, set user credentials here
- start_element() — start-element handler
- webDescription() — prints html description of services
- wsdl() — constructor
Inherited from nusoap_base
public
- __toString() — represents the object as a string
- appendDebug() — adds debug data to the instance debug string without formatting
- clearDebug() — clears the current debug data for this instance
- contractQname() — contracts (changes namespace to prefix) a qualified name
- debug() — adds debug data to the instance debug string with formatting
- expandEntities() — expands entities, e.g. changes '<' to '<'.
- expandQname() — expands (changes prefix to namespace) a qualified name
- formatDump() — formats a string to be inserted into an HTML stream
- 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
- getDebugLevel() — gets the debug level for this instance
- getError() — returns error string if present
- getGlobalDebugLevel() — gets the global debug level, which applies to future instances
- getLocalPart() — returns the local part of a prefixed string returns the original string, if not prefixed
- getNamespaceFromPrefix() — pass it a prefix, it returns a namespace
- getPrefix() — returns the prefix part of a prefixed string returns false, if not prefixed
- getPrefixFromNamespace() — 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
- isArraySimpleOrStruct() — detect if array is a simple array or a struct (associative array)
- nusoap_base() — constructor
- serializeEnvelope() — serializes a message
- serialize_val() — serializes PHP values in accordance w/ section 5. Type information is not serialized if $use == 'literal'.
- setDebugLevel() — sets the debug level for this instance
- setError() — sets error string
- setGlobalDebugLevel() — sets the global debug level, which applies to future instances
- varDump() — Returns a string with the output of var_dump