ILIAS
Release_4_0_x_branch Revision 61816
|
Parses the types and methods used in web service objects into the internal data structures used by ilBMFWSDL. More...
Public Member Functions | |
ilBMFWSDL_ObjectParser (&$objects, &$wsdl, $targetNamespace, $service_name, $service_desc= '') | |
Constructor. | |
_initialise ($service_name) | |
Initialise the ilBMFWSDL tree (destructive). | |
_parse (&$object, $schemaNamespace, $service_name) | |
Parser - takes a single object to add to tree (non-destructive). | |
_generateBindingsAndServices ($schemaNamespace, $service_name, $service_desc= '') | |
Take all the abstract WSDL data and build concrete bindings and services (destructive). | |
_getTypeNs ($type) | |
This function is adapted from Dmitri V's implementation of DISCO/WSDL generation. | |
Public Member Functions inherited from ilBMFBase | |
ilBMFBase ($faultcode= 'Client') | |
Constructor. | |
_resetNamespaces () | |
_setSchemaVersion ($schemaVersion) | |
Sets the schema version used in the SOAP message. | |
_getNamespacePrefix ($ns) | |
_getNamespaceForPrefix ($prefix) | |
_isSoapValue (&$value) | |
_serializeValue (&$value, $name= '', $type=false, $elNamespace=NULL, $typeNamespace=NULL, $options=array(), $attributes=array(), $artype='', $OBJTypeNS=array()) | |
_getType (&$value) | |
Converts a PHP type to a SOAP type. | |
_multiArrayType (&$value, &$type, &$size, &$xml) | |
_isBase64 (&$value) | |
Returns whether a string is base64 encoded data. | |
_isBase64Type ($type) | |
Returns whether a type is a base64 type. | |
_isHash (&$a) | |
Returns whether an array is a hash. | |
_un_htmlentities ($string) | |
& | _decode (&$soapval) |
_makeEnvelope (&$method, &$headers, $encoding=SOAP_DEFAULT_ENCODING, $options=array()) | |
Creates the SOAP envelope with the SOAP envelop data. | |
_makeMimeMessage (&$xml, $encoding=SOAP_DEFAULT_ENCODING) | |
_makeDIMEMessage ($xml) | |
_decodeMimeMessage (&$data, &$headers, &$attachments) | |
_decodeDIMEMessage (&$data, &$headers, &$attachments) | |
__set_type_translation ($type, $class=null) | |
Public Member Functions inherited from ilBMFBase_Object | |
ilBMFBase_Object ($faultcode= 'Client') | |
Constructor. | |
& | _raiseSoapFault ($str, $detail= '', $actorURI= '', $code=null, $mode=null, $options=null, $skipmsg=false) |
Raises a SOAP error. | |
__isfault () | |
& | __getfault () |
_debug ($string) | |
Adds a string to the debug data. | |
Public Member Functions inherited from PEAR | |
PEAR ($error_class=null) | |
Constructor. | |
_PEAR () | |
Destructor (the emulated type of...). | |
& | getStaticProperty ($class, $var) |
If you have a class that's mostly/entirely static, and you need static properties, you can use this method to simulate them. | |
registerShutdownFunc ($func, $args=array()) | |
Use this function to register a shutdown method for static classes. | |
isError ($data, $code=null) | |
Tell whether a value is a PEAR error. | |
setErrorHandling ($mode=null, $options=null) | |
Sets how errors generated by this object should be handled. | |
expectError ($code= '*') | |
This method is used to tell which errors you expect to get. | |
popExpect () | |
This method pops one element off the expected error codes stack. | |
_checkDelExpect ($error_code) | |
This method checks unsets an error code if available. | |
delExpect ($error_code) | |
This method deletes all occurences of the specified element from the expected error codes stack. | |
& | raiseError ($message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false) |
This method is a wrapper that returns an instance of the configured error class with this object's default error handling applied. | |
& | throwError ($message=null, $code=null, $userinfo=null) |
Simpler form of raiseError with fewer options. | |
staticPushErrorHandling ($mode, $options=null) | |
staticPopErrorHandling () | |
pushErrorHandling ($mode, $options=null) | |
Push a new error handler on top of the error handler options stack. | |
popErrorHandling () | |
Pop the last error handler used. | |
loadExtension ($ext) | |
OS independant PHP extension load. |
Data Fields | |
$tnsPrefix = 'tns' | |
Target namespace for the WSDL document will have the following prefix. | |
$wsdl = null | |
Reference to the ilBMFWSDL object to populate. | |
Data Fields inherited from ilBMFBase | |
$_XMLSchema | |
$_XMLSchemaVersion = 'http://www.w3.org/2001/XMLSchema' | |
$_typemap | |
$_defaultObjectClassname = 'stdClass' | |
Default class name to use for decoded response objects. | |
$_namespaces | |
$_namespace | |
$_xmlEntities | |
$_doconversion = false | |
$__attachments = array() | |
$_wsdl = null | |
$_section5 = true | |
True if we use section 5 encoding, or false if this is literal. | |
$_auto_translation = false | |
$_type_translation = array() | |
Data Fields inherited from ilBMFBase_Object | |
$_debug_flag = false | |
Store debugging information in $_debug_data? | |
$_debug_data = '' | |
String containing debugging information if $_debug_flag is true. | |
$_encodings = array('ISO-8859-1', 'US-ASCII', 'UTF-8') | |
Supported encodings, limited by XML extension. | |
$_myfaultcode = '' | |
Fault code. | |
$fault = null | |
Recent PEAR_Error object. | |
Data Fields inherited from PEAR | |
$_debug = false | |
$_default_error_mode = null | |
$_default_error_options = null | |
$_default_error_handler = '' | |
$_error_class = 'PEAR_Error' | |
$_expected_errors = array() |
Parses the types and methods used in web service objects into the internal data structures used by ilBMFWSDL.
Assumes the ilBMFWSDL class is unpopulated to start with.
Definition at line 1856 of file class.ilBMFWSDL.php.
ilBMFWSDL_ObjectParser::_generateBindingsAndServices | ( | $schemaNamespace, | |
$service_name, | |||
$service_desc = '' |
|||
) |
Take all the abstract WSDL data and build concrete bindings and services (destructive).
XXX Current implementation discards $service_desc.
$schemaNamespace | Namespace for types etc. |
$service_name | Name of the WSDL <service> |
$service_desc | Optional description of the WSDL <service> private |
Definition at line 2087 of file class.ilBMFWSDL.php.
References $namespace, $tnsPrefix, SCHEMA_SOAP_HTTP, SCHEMA_WSDL, and SOAP_SCHEMA_ENCODING.
Referenced by ilBMFWSDL_ObjectParser().
ilBMFWSDL_ObjectParser::_getTypeNs | ( | $type | ) |
This function is adapted from Dmitri V's implementation of DISCO/WSDL generation.
It separates namespace from type name in a __typedef key and creates a new namespace entry in the WSDL structure if the namespace has not been used before. The namespace prefix and type name are returned. If no namespace is specified, xsd is assumed.
We will not need this function anymore once __typedef is eliminated.
Definition at line 2165 of file class.ilBMFWSDL.php.
References $type.
Referenced by _parse().
ilBMFWSDL_ObjectParser::_initialise | ( | $service_name | ) |
Initialise the ilBMFWSDL tree (destructive).
If the object has already been initialised, the only effect will be to change the tns namespace to the new service name.
$service_name | Name of the WSDL <service> private |
Definition at line 1912 of file class.ilBMFWSDL.php.
References $tnsPrefix, SCHEMA_SOAP, and SCHEMA_WSDL.
Referenced by ilBMFWSDL_ObjectParser().
ilBMFWSDL_ObjectParser::_parse | ( | & | $object, |
$schemaNamespace, | |||
$service_name | |||
) |
Parser - takes a single object to add to tree (non-destructive).
$object | Reference to the object to parse |
$service_name | Name of the WSDL <service> private |
Definition at line 1937 of file class.ilBMFWSDL.php.
References $messages, _getTypeNs(), ilBMFBase_Object\_raiseSoapFault(), and elseif().
Referenced by ilBMFWSDL_ObjectParser().
ilBMFWSDL_ObjectParser::ilBMFWSDL_ObjectParser | ( | & | $objects, |
& | $wsdl, | ||
$targetNamespace, | |||
$service_name, | |||
$service_desc = '' |
|||
) |
Constructor.
$objects | Reference to the object or array of objects to parse |
$wsdl | Reference to the ilBMFWSDL object to populate |
$targetNamespace | The target namespace of schema types etc. |
$service_name | Name of the WSDL <service> |
$service_desc | Optional description of the WSDL <service> |
Definition at line 1877 of file class.ilBMFWSDL.php.
References $wsdl, _generateBindingsAndServices(), _initialise(), _parse(), ilBMFBase_Object\_raiseSoapFault(), and ilBMFBase\ilBMFBase().
ilBMFWSDL_ObjectParser::$tnsPrefix = 'tns' |
Target namespace for the WSDL document will have the following prefix.
Definition at line 1862 of file class.ilBMFWSDL.php.
Referenced by _generateBindingsAndServices(), and _initialise().
ilBMFWSDL_ObjectParser::$wsdl = null |
Reference to the ilBMFWSDL object to populate.
Definition at line 1867 of file class.ilBMFWSDL.php.
Referenced by ilBMFWSDL_ObjectParser().