예제 #1
0
 function SOAP_Server_Email_Gateway($gateway = '', $send_response = true, $dump = false)
 {
     parent::SOAP_Server();
     $this->send_response = $send_response;
     $this->gateway = $gateway;
     $this->dump = $dump;
 }
예제 #2
0
 function SOAP_Server_Email_Gateway($gateway = '', $send_response = TRUE, $dump = FALSE)
 {
     parent::SOAP_Server();
     $this->send_response = $send_response;
     $this->gateway = $gateway;
     $this->dump = $dump;
 }
예제 #3
0
// | license@php.net so we can mail you a copy immediately.               |
// +----------------------------------------------------------------------+
// | Authors: Shane Caraveo <*****@*****.**>   Port to PEAR and more   |
// +----------------------------------------------------------------------+
//
// $Id: email_server.php,v 1.3 2003/04/08 06:21:50 shane Exp $
//
/*
This reads a message from stdin, and calls the soap server defined

You can use this from qmail by creating a .qmail-soaptest file with:
    | /usr/bin/php /path/to/email_server.php
*/
# include the email server class
require_once 'SOAP/Server/Email.php';
$server = new SOAP_Server_Email();
/* tell server to translate to classes we provide if possible */
$server->_auto_translation = true;
require_once 'example_server.php';
$soapclass = new SOAP_Example_Server();
$server->addObjectMap($soapclass, 'urn:SOAP_Example_Server');
# read stdin
$fin = fopen('php://stdin', 'rb');
if (!$fin) {
    exit(0);
}
$email = '';
while (!feof($fin) && ($data = fread($fin, 8096))) {
    $email .= $data;
}
fclose($fin);
예제 #4
0
// | 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 <*****@*****.**>   Port to PEAR and more   |
// +----------------------------------------------------------------------+
//
// $Id$
//
/*
This reads a message from stdin, and calls the soap server defined

You can use this from qmail by creating a .qmail-soaptest file with:
    | /usr/bin/php /path/to/email_server.php
*/
# include the email server class
require_once 'SOAP/Server/Email.php';
$server = new SOAP_Server_Email();
# read stdin
$fin = fopen('php://stdin', 'rb');
if (!$fin) {
    exit(0);
}
$email = '';
while (!feof($fin) && ($data = fread($fin, 8096))) {
    $email .= $data;
}
fclose($fin);
$response = $server->client($email);
print_r($response);