cvs: pear /SOAP/example attachment.php email_pop_gateway.php email_pop_server.php smtp.php
| From: | Shane Caraveo | Date: | Wed, 15 May 2002 01:38:03 +0000 |
| Subject: | cvs: pear /SOAP/example attachment.php email_pop_gateway.php email_pop_server.php smtp.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3826@lists.php.net to get a copy of this message | ||
shane Tue May 14 21:38:03 2002 EDT
Modified files:
/pear/SOAP/example attachment.php email_pop_gateway.php
email_pop_server.php smtp.php
Log:
get rid of references to me
Index: pear/SOAP/example/attachment.php
diff -u pear/SOAP/example/attachment.php:1.1 pear/SOAP/example/attachment.php:1.2
--- pear/SOAP/example/attachment.php:1.1 Mon May 13 02:47:10 2002
+++ pear/SOAP/example/attachment.php Tue May 14 21:38:03 2002
@@ -7,9 +7,12 @@
$v = new SOAP_Attachment('test','text/plain',$filename);
$methodValue = new SOAP_Value('testattach', 'Struct', array($v));
-$client = new SOAP_Client('http://localhost/soap_interop/server_round2.php');
+$client = new SOAP_Client('mailto:user@domain.com');
# calling with mime
-$resp = $client->call('echoMimeAttachment',array($v),array('Mime'=>1));
+$resp = $client->call('echoMimeAttachment',array($v),array('Mime'=>1,
+ 'namespace'=>'http://soapinterop.org/',
+ 'from'=>'user@domain.com',
+ 'host'=>'smtp.domain.com'));
print $client->wire."\n\n\n";
print_r($resp);
Index: pear/SOAP/example/email_pop_gateway.php
diff -u pear/SOAP/example/email_pop_gateway.php:1.1 pear/SOAP/example/email_pop_gateway.php:1.2
--- pear/SOAP/example/email_pop_gateway.php:1.1 Tue May 14 19:02:49 2002
+++ pear/SOAP/example/email_pop_gateway.php Tue May 14 21:38:03 2002
@@ -16,7 +16,7 @@
// | Authors: Shane Caraveo <Shane@Caraveo.com> Port to PEAR and more |
// +----------------------------------------------------------------------+
//
-// $Id: email_pop_gateway.php,v 1.1 2002/05/14 23:02:49 shane Exp $
+// $Id: email_pop_gateway.php,v 1.2 2002/05/15 01:38:03 shane Exp $
//
/* include the Email server class, which knows how to
@@ -42,8 +42,8 @@
/* Connect to a POP3 server and read the messages */
$pop3 =& new Net_POP3();
-if ($pop3->connect('caraveo.com', 110)) {
- if ($pop3->login('caraveo-soap', 'roap')) {
+if ($pop3->connect('localhost', 110)) {
+ if ($pop3->login('username', 'password')) {
$listing = $pop3->getListing();
/* now loop through each message, and call the
Index: pear/SOAP/example/email_pop_server.php
diff -u pear/SOAP/example/email_pop_server.php:1.1 pear/SOAP/example/email_pop_server.php:1.2
--- pear/SOAP/example/email_pop_server.php:1.1 Tue May 14 19:02:49 2002
+++ pear/SOAP/example/email_pop_server.php Tue May 14 21:38:03 2002
@@ -16,7 +16,7 @@
// | Authors: Shane Caraveo <Shane@Caraveo.com> Port to PEAR and more |
// +----------------------------------------------------------------------+
//
-// $Id: email_pop_server.php,v 1.1 2002/05/14 23:02:49 shane Exp $
+// $Id: email_pop_server.php,v 1.2 2002/05/15 01:38:03 shane Exp $
//
/* include the Email server class, which knows how to
@@ -43,7 +43,7 @@
$pop3 =& new Net_POP3();
if ($pop3->connect('localhost', 110)) {
- if ($pop3->login('soap', 'password')) {
+ if ($pop3->login('username', 'password')) {
$listing = $pop3->getListing();
/* now loop through each message, and call the
Index: pear/SOAP/example/smtp.php
diff -u pear/SOAP/example/smtp.php:1.1 pear/SOAP/example/smtp.php:1.2
--- pear/SOAP/example/smtp.php:1.1 Wed Apr 24 03:41:27 2002
+++ pear/SOAP/example/smtp.php Tue May 14 21:38:03 2002
@@ -16,13 +16,13 @@
// | Authors: Shane Caraveo <Shane@Caraveo.com> |
// +----------------------------------------------------------------------+
//
-// $Id: smtp.php,v 1.1 2002/04/24 07:41:27 shane Exp $
+// $Id: smtp.php,v 1.2 2002/05/15 01:38:03 shane Exp $
//
// include soap client class
include("SOAP/Client.php");
-$soapclient = new SOAP_Client("mailto:soaptest@yourdomain.com");
-$options = array('namespace'=>'http://soapinterop.org/','from'=>'shanec@ActiveState.com');
+$soapclient = new SOAP_Client("mailto:user@domain.com");
+$options = array('namespace'=>'http://soapinterop.org/','from'=>'user@domain.com','host'=>'localhost');
$return = $soapclient->call("echoString",array("inputString"=>"this
is a test"), $options);
$return = $soapclient->call("echoStringArray",array('inputStringArray' =>
array('good','bad','ugly')), $options);
// don't expect much of a result!