Source for file Transport.php
Documentation is available at Transport.php
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2003 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.02 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/2_02.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Shane Caraveo <Shane@Caraveo.com> Port to PEAR and more |
// | Authors: Dietrich Ayala <dietrich@ganx4.com> Original Author |
// +----------------------------------------------------------------------+
// $Id: Transport.php,v 1.22 2003/04/20 01:05:34 shane Exp $
require_once 'SOAP/Base.php';
* This layer can use different protocols dependant on the endpoint url provided
* no knowlege of the SOAP protocol is available at this level
* no knowlege of the transport protocols is available at this level
* @version $Id: Transport.php,v 1.22 2003/04/20 01:05:34 shane Exp $
* @package SOAP::Transport
* @author Shane Caraveo <shane@php.net>
function &getTransport($url, $encoding = SOAP_DEFAULT_ENCODING )
if (!$urlparts['scheme']) {
return SOAP_Base_Object ::_raiseSoapFault (" Invalid transport URI: $url" );
if (strcasecmp($urlparts['scheme'], 'mailto') == 0 ) {
$transport_type = 'SMTP';
} else if (strcasecmp($urlparts['scheme'], 'https') == 0 ) {
$transport_type = 'HTTP';
/* handle other transport types */
$transport_type = strtoupper($urlparts['scheme']);
$transport_include = 'SOAP/Transport/'. $transport_type. '.php';
$res = @include_once($transport_include);
return SOAP_Base_Object ::_raiseSoapFault (" No Transport for {$urlparts['scheme']}" );
$transport_class = " SOAP_Transport_$transport_type";
return SOAP_Base_Object ::_raiseSoapFault (" No Transport class $transport_class" );
return new $transport_class($url, $encoding);
Documentation generated on Mon, 11 Mar 2019 13:59:47 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|