Inheritance diagram for ilBMFTransport:
Collaboration diagram for ilBMFTransport:Public Member Functions | |
| ilBMFTransport ($url, $encoding=SOAP_DEFAULT_ENCODING) | |
| ilBMF::Transport constructor | |
| & | send (&$soap_data, $options=NULL) |
| send a soap package, get a soap response | |
Data Fields | |
| $transport = NULL | |
| $encoding = SOAP_DEFAULT_ENCODING | |
| $result_encoding = SOAP_DEFAULT_ENCODING | |
Definition at line 37 of file class.ilBMFTransport.php.
| ilBMFTransport::ilBMFTransport | ( | $ | url, | |
| $ | encoding = SOAP_DEFAULT_ENCODING | |||
| ) |
ilBMF::Transport constructor
| string | $url soap endpoint url |
public
Definition at line 56 of file class.ilBMFTransport.php.
References $encoding, ilBMFBase::_raiseSoapFault(), and ilBMFBase::ilBMFBase().
{
parent::ilBMFBase('TRANSPORT');
$urlparts = @parse_url($url);
$this->encoding = $encoding;
if (strcasecmp($urlparts['scheme'], 'http') == 0 || strcasecmp($urlparts['scheme'], 'https') == 0) {
include_once(dirname(__FILE__).'/Transport/class.ilBMFTransport_HTTP.php');
$this->transport = new ilBMFTransport_HTTP($url, $encoding);
return;
} else if (strcasecmp($urlparts['scheme'], 'mailto') == 0) {
include_once(dirname(__FILE__).'/Transport/lass.ilBMFTransport_SMTP.php');
$this->transport = new ilBMFTransport_SMTP($url, $encoding);
return;
}
$this->_raiseSoapFault("No Transport for {$urlparts['scheme']}");
}
Here is the call graph for this function:| & ilBMFTransport::send | ( | &$ | soap_data, | |
| $ | options = NULL | |||
| ) |
send a soap package, get a soap response
| string | &$soap_data soap data to be sent (in xml) | |
| string | $action SOAP Action | |
| int | $timeout protocol timeout in seconds |
Definition at line 85 of file class.ilBMFTransport.php.
References ilBMFBase::_raiseSoapFault().
{
if (!$this->transport) {
return $this->fault;
}
$response = $this->transport->send($soap_data, $options);
if (PEAR::isError($response)) {
return $this->_raiseSoapFault($response);
}
$this->result_encoding = $this->transport->result_encoding;
#echo "\n OUTGOING: ".$this->transport->outgoing_payload."\n\n";
#echo "\n INCOMING: ".preg_replace("/></",">\n<!--CRLF added-->",$this->transport->incoming_payload)."\n\n";
return $response;
}
Here is the call graph for this function:| ilBMFTransport::$encoding = SOAP_DEFAULT_ENCODING |
Definition at line 47 of file class.ilBMFTransport.php.
Referenced by ilBMFTransport().
| ilBMFTransport::$result_encoding = SOAP_DEFAULT_ENCODING |
Definition at line 48 of file class.ilBMFTransport.php.
| ilBMFTransport::$transport = NULL |
Definition at line 45 of file class.ilBMFTransport.php.
1.7.1