ILIAS
release_4-3 Revision
|
Public Member Functions | |
ilBMFClient ($endpoint, $wsdl=false, $portName=false, $proxy_params=array()) | |
Constructor. | |
_reset () | |
setEncoding ($encoding) | |
Sets the character encoding. | |
addHeader (&$soap_value) | |
Adds a header to the envelope. | |
& | call ($method, &$params, $namespace=false, $soapAction=false) |
Calls a method on the SOAP endpoint. | |
setOpt ($category, $option, $value=null) | |
Sets an option to use with the transport layers. | |
_call ($method, $params, &$return_value) | |
Call method supporting the overload extension. | |
& | __getlastrequest () |
& | __getlastresponse () |
__use ($use) | |
__style ($style) | |
__trace ($level) | |
& | __generate ($method, &$params, $namespace=false, $soapAction=false) |
& | __parse (&$response, $encoding, &$attachments) |
& | __decodeResponse (&$response, $shift=true) |
__get_wire () |
Data Fields | |
$_endpoint = '' | |
$_portName = '' | |
$__endpointType = '' | |
$xml | |
$wire | |
$__last_request = null | |
$__last_response = null | |
$__options = array('trace'=>0) | |
$_encoding = SOAP_DEFAULT_ENCODING | |
$headersOut = null | |
$headersIn = null | |
$__proxy_params = array() | |
$_soap_transport = null |
Definition at line 81 of file class.ilBMFClient.php.
& ilBMFClient::__decodeResponse | ( | & | $response, |
$shift = true |
|||
) |
Definition at line 669 of file class.ilBMFClient.php.
References PEAR\isError().
Referenced by __parse().
& ilBMFClient::__generate | ( | $method, | |
& | $params, | ||
$namespace = false , |
|||
$soapAction = false |
|||
) |
Definition at line 440 of file class.ilBMFClient.php.
References $namespace, PEAR\isError(), and SOAP_XML_SCHEMA_VERSION.
Referenced by call().
ilBMFClient::__get_wire | ( | ) |
Definition at line 721 of file class.ilBMFClient.php.
Referenced by call().
& ilBMFClient::__getlastrequest | ( | ) |
Definition at line 413 of file class.ilBMFClient.php.
References $__last_request.
& ilBMFClient::__getlastresponse | ( | ) |
Definition at line 419 of file class.ilBMFClient.php.
References $__last_response.
& ilBMFClient::__parse | ( | & | $response, |
$encoding, | |||
& | $attachments | ||
) |
Definition at line 649 of file class.ilBMFClient.php.
References __decodeResponse().
Referenced by call().
ilBMFClient::__style | ( | $style | ) |
Definition at line 430 of file class.ilBMFClient.php.
ilBMFClient::__trace | ( | $level | ) |
Definition at line 435 of file class.ilBMFClient.php.
ilBMFClient::__use | ( | $use | ) |
Definition at line 425 of file class.ilBMFClient.php.
ilBMFClient::_call | ( | $method, | |
$params, | |||
& | $return_value | ||
) |
Call method supporting the overload extension.
If the overload extension is loaded, you can call the client class with a soap method name: $soap = new ilBMFClient(....); $value = $soap->getStockQuote('MSFT');
public
string | $method | The method to call. |
array | $params | The method parameters. |
string | $return_value | Will get the method's return value assigned. |
Definition at line 399 of file class.ilBMFClient.php.
References call().
ilBMFClient::_reset | ( | ) |
Definition at line 205 of file class.ilBMFClient.php.
ilBMFClient::addHeader | ( | & | $soap_value | ) |
Adds a header to the envelope.
public
SOAP_Header | $soap_value | A SOAP_Header or an array with the elements 'name', 'namespace', 'mustunderstand', and 'actor' to send as a header. |
Definition at line 245 of file class.ilBMFClient.php.
& ilBMFClient::call | ( | $method, | |
& | $params, | ||
$namespace = false , |
|||
$soapAction = false |
|||
) |
Calls a method on the SOAP endpoint.
The namespace parameter is overloaded to accept an array of options that can contain data necessary for various transports if it is used as an array, it MAY contain a namespace value and a soapaction value. If it is overloaded, the soapaction parameter is ignored and MUST be placed in the options array. This is done to provide backwards compatibility with current clients, but may be removed in the future. The currently supported values are:
namespace soapaction timeout (HTTP socket timeout) transfer-encoding (SMTP, Content-Transfer-Encoding: header) from (SMTP, From: header) subject (SMTP, Subject: header) headers (SMTP, hash of extra SMTP headers)
public
string | $method | The method to call. |
array | $params | The method parameters. |
string | array | $namespace | Namespace or hash with options. |
string | $soapAction |
Definition at line 290 of file class.ilBMFClient.php.
References $_encoding, $_soap_transport, $namespace, $result, $xml, __generate(), __get_wire(), __parse(), ilBMFTransport\getTransport(), and PEAR\isError().
Referenced by _call().
ilBMFClient::ilBMFClient | ( | $endpoint, | |
$wsdl = false , |
|||
$portName = false , |
|||
$proxy_params = array() |
|||
) |
Constructor.
public
string | $endpoint | An URL. |
boolean | $wsdl | Whether the endpoint is a WSDL file. |
string | $portName | |
array | $proxy_params | Options for the HTTP_Request class (see HTTP/Request.php) |
Definition at line 178 of file class.ilBMFClient.php.
ilBMFClient::setEncoding | ( | $encoding | ) |
Sets the character encoding.
Limited to 'UTF-8', 'US_ASCII' and 'ISO-8859-1'.
public
string | encoding |
Definition at line 226 of file class.ilBMFClient.php.
ilBMFClient::setOpt | ( | $category, | |
$option, | |||
$value = null |
|||
) |
Sets an option to use with the transport layers.
For example: $soapclient->setOpt('curl', CURLOPT_VERBOSE, 1)
to pass a specific option to curl if using an SSL connection.
public
string | $category | Category to which the option applies or option name. |
string | $option | An option name if $category is a category name, an option value if $category is an option name. |
string | $value | An option value if $category is a category name. |
Definition at line 368 of file class.ilBMFClient.php.
ilBMFClient::$__endpointType = '' |
Definition at line 112 of file class.ilBMFClient.php.
ilBMFClient::$__last_request = null |
Definition at line 127 of file class.ilBMFClient.php.
Referenced by __getlastrequest().
ilBMFClient::$__last_response = null |
Definition at line 128 of file class.ilBMFClient.php.
Referenced by __getlastresponse().
ilBMFClient::$__options = array('trace'=>0) |
Definition at line 135 of file class.ilBMFClient.php.
ilBMFClient::$__proxy_params = array() |
Definition at line 163 of file class.ilBMFClient.php.
ilBMFClient::$_encoding = SOAP_DEFAULT_ENCODING |
Definition at line 142 of file class.ilBMFClient.php.
Referenced by call().
ilBMFClient::$_endpoint = '' |
Definition at line 98 of file class.ilBMFClient.php.
ilBMFClient::$_portName = '' |
Definition at line 105 of file class.ilBMFClient.php.
ilBMFClient::$_soap_transport = null |
Definition at line 165 of file class.ilBMFClient.php.
Referenced by call().
ilBMFClient::$headersIn = null |
Definition at line 156 of file class.ilBMFClient.php.
ilBMFClient::$headersOut = null |
Definition at line 149 of file class.ilBMFClient.php.
ilBMFClient::$wire |
Definition at line 126 of file class.ilBMFClient.php.
ilBMFClient::$xml |
Definition at line 119 of file class.ilBMFClient.php.
Referenced by call().