ILIAS
Release_4_0_x_branch Revision 61816
|
Public Member Functions | |
ilBMFWSDL ($wsdl_uri=false, $proxy=array(), $cacheUse=WSDL_CACHE_USE, $cacheMaxAge=WSDL_CACHE_MAX_AGE, $docs=false) | |
ilBMFWSDL constructor. | |
set_service ($service) | |
parse ($wsdl_uri, $proxy=array()) | |
parseURL ($wsdl_uri, $proxy=array()) | |
Fills the WSDL array tree with data from a WSDL file. | |
parseObject (&$wsdl_obj, $targetNamespace, $service_name, $service_desc= '') | |
Fills the WSDL array tree with data from one or more PHP class objects. | |
getEndpoint ($portName) | |
_getPortName ($operation, $service) | |
getPortName ($operation, $service=null) | |
Finds the name of the first port that contains an operation of name $operation. | |
getOperationData ($portName, $operation) | |
matchMethod (&$operation) | |
getDataHandler ($datatype, $namespace) | |
Given a datatype, what function handles the processing? | |
getSoapAction ($portName, $operation) | |
getNamespace ($portName, $operation) | |
getNamespaceAttributeName ($namespace) | |
addNamespace ($namespace) | |
_validateString ($string) | |
_addArg (&$args, &$argarray, $argname) | |
_elementArg (&$args, &$argarray, &$_argtype, $_argname) | |
_complexTypeArg (&$args, &$argarray, &$_argtype, $_argname) | |
generateProxyCode ($port= '', $classname= '') | |
Generates stub code from the WSDL that can be saved to a file or eval'd into existence. | |
generateAllProxies () | |
& | getProxy ($port= '', $name= '') |
& | _getComplexTypeForElement ($name, $namespace) |
getComplexTypeNameForElement ($name, $namespace) | |
getComplexTypeChildType ($ns, $name, $child_ns, $child_name) | |
getSchemaType ($type, $name, $type_namespace) | |
_getDeepestArrayType ($nsPrefix, $arrayType) | |
Recurse through the WSDL structure looking for the innermost array type of multi-dimensional arrays. | |
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 | |
$tns = null | |
$definition = array() | |
$namespaces = array() | |
$ns = array() | |
$xsd = SOAP_XML_SCHEMA_VERSION | |
$complexTypes = array() | |
$elements = array() | |
$messages = array() | |
$portTypes = array() | |
$bindings = array() | |
$imports = array() | |
$services = array() | |
$service = '' | |
$uri = '' | |
$docs = false | |
$proxy = null | |
$trace = 0 | |
$cacheUse = null | |
$cacheMaxAge = null | |
$wsdlParserClass = 'ilBMFWSDL_Parser' | |
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() |
Definition at line 49 of file class.ilBMFWSDL.php.
ilBMFWSDL::_addArg | ( | & | $args, |
& | $argarray, | ||
$argname | |||
) |
Definition at line 441 of file class.ilBMFWSDL.php.
References _validateString().
Referenced by _complexTypeArg(), _elementArg(), and generateProxyCode().
ilBMFWSDL::_complexTypeArg | ( | & | $args, |
& | $argarray, | ||
& | $_argtype, | ||
$_argname | |||
) |
Definition at line 499 of file class.ilBMFWSDL.php.
References _addArg().
Referenced by generateProxyCode().
ilBMFWSDL::_elementArg | ( | & | $args, |
& | $argarray, | ||
& | $_argtype, | ||
$_argname | |||
) |
Definition at line 456 of file class.ilBMFWSDL.php.
References $tns, _addArg(), and elseif().
Referenced by generateProxyCode().
& ilBMFWSDL::_getComplexTypeForElement | ( | $name, | |
$namespace | |||
) |
Definition at line 734 of file class.ilBMFWSDL.php.
References $name, $namespace, $ns, $t, and $type.
Referenced by getComplexTypeChildType(), and getComplexTypeNameForElement().
ilBMFWSDL::_getDeepestArrayType | ( | $nsPrefix, | |
$arrayType | |||
) |
Recurse through the WSDL structure looking for the innermost array type of multi-dimensional arrays.
Takes a namespace prefix and a type, which can be in the form 'type' or 'type[]', and returns the full namespace URI, the type of the most deeply nested array type found, and the number of levels of nesting.
private
Definition at line 846 of file class.ilBMFWSDL.php.
References $result.
Referenced by getSchemaType().
ilBMFWSDL::_getPortName | ( | $operation, | |
$service | |||
) |
Definition at line 197 of file class.ilBMFWSDL.php.
References $service, and $type.
Referenced by getPortName().
ilBMFWSDL::_validateString | ( | $string | ) |
Definition at line 436 of file class.ilBMFWSDL.php.
Referenced by _addArg(), and generateProxyCode().
ilBMFWSDL::addNamespace | ( | $namespace | ) |
Definition at line 422 of file class.ilBMFWSDL.php.
References $n, and $namespace.
Referenced by getNamespaceAttributeName().
ilBMFWSDL::generateAllProxies | ( | ) |
Definition at line 689 of file class.ilBMFWSDL.php.
References $key, $service, and generateProxyCode().
ilBMFWSDL::generateProxyCode | ( | $port = '' , |
|
$classname = '' |
|||
) |
Generates stub code from the WSDL that can be saved to a file or eval'd into existence.
Definition at line 521 of file class.ilBMFWSDL.php.
References $key, $namespace, $ns, $service, ilBMFBase_Object\__getfault(), ilBMFBase_Object\__isfault(), _addArg(), _complexTypeArg(), _elementArg(), and _validateString().
Referenced by generateAllProxies(), and getProxy().
ilBMFWSDL::getComplexTypeChildType | ( | $ns, | |
$name, | |||
$child_ns, | |||
$child_name | |||
) |
Definition at line 759 of file class.ilBMFWSDL.php.
References $name, $ns, $t, and _getComplexTypeForElement().
ilBMFWSDL::getComplexTypeNameForElement | ( | $name, | |
$namespace | |||
) |
Definition at line 750 of file class.ilBMFWSDL.php.
References $name, $namespace, $t, and _getComplexTypeForElement().
ilBMFWSDL::getDataHandler | ( | $datatype, | |
$namespace | |||
) |
Given a datatype, what function handles the processing?
This is used for doc/literal requests where we receive a datatype, and we need to pass it to a method in out server class.
string | $datatype | |
string | $namespace |
Definition at line 342 of file class.ilBMFWSDL.php.
References $namespace.
ilBMFWSDL::getEndpoint | ( | $portName | ) |
Definition at line 186 of file class.ilBMFWSDL.php.
References $service, ilBMFBase_Object\__getfault(), ilBMFBase_Object\__isfault(), and ilBMFBase_Object\_raiseSoapFault().
ilBMFWSDL::getNamespace | ( | $portName, | |
$operation | |||
) |
Definition at line 394 of file class.ilBMFWSDL.php.
References $service, ilBMFBase_Object\__getfault(), and ilBMFBase_Object\__isfault().
ilBMFWSDL::getNamespaceAttributeName | ( | $namespace | ) |
Definition at line 407 of file class.ilBMFWSDL.php.
References $namespace, and addNamespace().
ilBMFWSDL::getOperationData | ( | $portName, | |
$operation | |||
) |
Definition at line 242 of file class.ilBMFWSDL.php.
References $type, ilBMFBase_Object\__getfault(), ilBMFBase_Object\__isfault(), and ilBMFBase_Object\_raiseSoapFault().
ilBMFWSDL::getPortName | ( | $operation, | |
$service = null |
|||
) |
Finds the name of the first port that contains an operation of name $operation.
Always returns a SOAP portName.
Definition at line 216 of file class.ilBMFWSDL.php.
References $service, ilBMFBase_Object\__getfault(), ilBMFBase_Object\__isfault(), _getPortName(), and ilBMFBase_Object\_raiseSoapFault().
& ilBMFWSDL::getProxy | ( | $port = '' , |
|
$name = '' |
|||
) |
Definition at line 699 of file class.ilBMFWSDL.php.
References ilBMFBase_Object\$fault, $name, $proxy, $service, ilBMFBase_Object\__getfault(), ilBMFBase_Object\__isfault(), and generateProxyCode().
ilBMFWSDL::getSchemaType | ( | $type, | |
$name, | |||
$type_namespace | |||
) |
Definition at line 771 of file class.ilBMFWSDL.php.
References $name, $ns, $type, _getDeepestArrayType(), and elseif().
ilBMFWSDL::getSoapAction | ( | $portName, | |
$operation | |||
) |
Definition at line 381 of file class.ilBMFWSDL.php.
References $service, ilBMFBase_Object\__getfault(), and ilBMFBase_Object\__isfault().
ilBMFWSDL::ilBMFWSDL | ( | $wsdl_uri = false , |
|
$proxy = array() , |
|||
$cacheUse = WSDL_CACHE_USE , |
|||
$cacheMaxAge = WSDL_CACHE_MAX_AGE , |
|||
$docs = false |
|||
) |
ilBMFWSDL constructor.
string | $wsdl_uri | URL to WSDL file. |
array | $proxy | Contains options for HTTP_Request class |
boolean | $cacheUse | Use WSDL caching. Defaults to false. |
integer | $cacheMaxAge | Cache max lifetime (in seconds). |
boolean | $docs | Parse documentation in the WSDL? Defaults to false. |
public
Definition at line 111 of file class.ilBMFWSDL.php.
References $cacheMaxAge, $cacheUse, $docs, $proxy, ilBMFBase\ilBMFBase(), PEAR\isError(), and parseURL().
ilBMFWSDL::matchMethod | ( | & | $operation | ) |
Definition at line 315 of file class.ilBMFWSDL.php.
References ilBMFBase_Object\__getfault(), and ilBMFBase_Object\__isfault().
ilBMFWSDL::parse | ( | $wsdl_uri, | |
$proxy = array() |
|||
) |
Definition at line 142 of file class.ilBMFWSDL.php.
References $proxy, and parseURL().
ilBMFWSDL::parseObject | ( | & | $wsdl_obj, |
$targetNamespace, | |||
$service_name, | |||
$service_desc = '' |
|||
) |
Fills the WSDL array tree with data from one or more PHP class objects.
mixed | $wsdl_obj | An object or array of objects to add to the internal WSDL tree. |
string | $targetNamespace | The target namespace of schema types etc. |
string | $service_name | Name of the WSDL service. |
string | $service_desc | Optional description of the WSDL service. |
Definition at line 174 of file class.ilBMFWSDL.php.
References ilBMFBase_Object\_raiseSoapFault().
ilBMFWSDL::parseURL | ( | $wsdl_uri, | |
$proxy = array() |
|||
) |
Fills the WSDL array tree with data from a WSDL file.
string | $wsdl_uri | URL to WSDL file. |
array | $proxy | Contains options for HTTP_Request class |
Definition at line 154 of file class.ilBMFWSDL.php.
References ilBMFBase_Object\_raiseSoapFault().
Referenced by ilBMFWSDL(), and parse().
ilBMFWSDL::set_service | ( | $service | ) |
Definition at line 132 of file class.ilBMFWSDL.php.
References $service.
ilBMFWSDL::$bindings = array() |
Definition at line 60 of file class.ilBMFWSDL.php.
ilBMFWSDL::$cacheMaxAge = null |
Definition at line 88 of file class.ilBMFWSDL.php.
Referenced by ilBMFWSDL().
ilBMFWSDL::$cacheUse = null |
Definition at line 81 of file class.ilBMFWSDL.php.
Referenced by ilBMFWSDL().
ilBMFWSDL::$complexTypes = array() |
Definition at line 56 of file class.ilBMFWSDL.php.
ilBMFWSDL::$definition = array() |
Definition at line 52 of file class.ilBMFWSDL.php.
ilBMFWSDL::$docs = false |
Definition at line 65 of file class.ilBMFWSDL.php.
Referenced by ilBMFWSDL().
ilBMFWSDL::$elements = array() |
Definition at line 57 of file class.ilBMFWSDL.php.
ilBMFWSDL::$imports = array() |
Definition at line 61 of file class.ilBMFWSDL.php.
ilBMFWSDL::$messages = array() |
Definition at line 58 of file class.ilBMFWSDL.php.
ilBMFWSDL::$namespaces = array() |
Definition at line 53 of file class.ilBMFWSDL.php.
ilBMFWSDL::$ns = array() |
Definition at line 54 of file class.ilBMFWSDL.php.
Referenced by _getComplexTypeForElement(), generateProxyCode(), getComplexTypeChildType(), and getSchemaType().
ilBMFWSDL::$portTypes = array() |
Definition at line 59 of file class.ilBMFWSDL.php.
ilBMFWSDL::$proxy = null |
Definition at line 72 of file class.ilBMFWSDL.php.
Referenced by getProxy(), ilBMFWSDL(), and parse().
ilBMFWSDL::$service = '' |
Definition at line 63 of file class.ilBMFWSDL.php.
Referenced by _getPortName(), generateAllProxies(), generateProxyCode(), getEndpoint(), getNamespace(), getPortName(), getProxy(), getSoapAction(), and set_service().
ilBMFWSDL::$services = array() |
Definition at line 62 of file class.ilBMFWSDL.php.
ilBMFWSDL::$tns = null |
Definition at line 51 of file class.ilBMFWSDL.php.
Referenced by _elementArg().
ilBMFWSDL::$trace = 0 |
Definition at line 74 of file class.ilBMFWSDL.php.
ilBMFWSDL::$uri = '' |
Definition at line 64 of file class.ilBMFWSDL.php.
ilBMFWSDL::$wsdlParserClass = 'ilBMFWSDL_Parser' |
Definition at line 96 of file class.ilBMFWSDL.php.
ilBMFWSDL::$xsd = SOAP_XML_SCHEMA_VERSION |
Definition at line 55 of file class.ilBMFWSDL.php.