cvs: pear /SOAP Base.php
| From: | Shane Caraveo | Date: | Mon, 08 Jul 2002 00:36:47 +0000 |
| Subject: | cvs: pear /SOAP Base.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4958@lists.php.net to get a copy of this message | ||
shane Sun Jul 7 20:36:47 2002 EDT
Modified files:
/pear/SOAP Base.php
Log:
change DIME names to Net_DIME
Index: pear/SOAP/Base.php
diff -u pear/SOAP/Base.php:1.18 pear/SOAP/Base.php:1.19
--- pear/SOAP/Base.php:1.18 Sun Jul 7 17:49:14 2002
+++ pear/SOAP/Base.php Sun Jul 7 20:36:47 2002
@@ -17,7 +17,7 @@
// | Authors: Dietrich Ayala <dietrich@ganx4.com> Original Author |
// +----------------------------------------------------------------------+
//
-// $Id: Base.php,v 1.18 2002/07/07 21:49:14 shane Exp $
+// $Id: Base.php,v 1.19 2002/07/08 00:36:47 shane Exp $
//
/*
@@ -50,7 +50,7 @@
}
@include_once 'Net/DIME.php';
-if (class_exists('DIME_Message')) {
+if (class_exists('Net_DIME_Message')) {
$SOAP_options['DIME'] = 1;
}
@@ -112,7 +112,7 @@
* Common base class of all Soap lclasses
*
* @access public
-* @version $Id: Base.php,v 1.18 2002/07/07 21:49:14 shane Exp $
+* @version $Id: Base.php,v 1.19 2002/07/08 00:36:47 shane Exp $
* @package SOAP::Client
* @author Shane Caraveo <shane@php.net> Conversion to PEAR and updates
*/
@@ -802,14 +802,14 @@
// encode any attachments
// see http://search.ietf.org/internet-drafts/draft-nielsen-dime-soap-00.txt
// now we have to DIME encode the message
- $dime = new DIME_Message();
- $msg = $dime->encodeData($xml,SOAP_ENVELOP,NULL,DIME_TYPE_URI);
+ $dime = new Net_DIME_Message();
+ $msg = $dime->encodeData($xml,SOAP_ENVELOP,NULL,NET_DIME_TYPE_URI);
// add the attachements
$c = count($this->attachments);
for ($i=0; $i < $c; $i++) {
$attachment =& $this->attachments[$i];
- $msg .=
$dime->encodeData($attachment['body'],$attachment['content_type'],$attachment['cid'],DIME_TYPE_MEDIA);
+ $msg .=
$dime->encodeData($attachment['body'],$attachment['content_type'],$attachment['cid'],NET_DIME_TYPE_MEDIA);
}
$msg .= $dime->endMessage();
return $msg;
@@ -869,7 +869,7 @@
// XXX this SHOULD be moved to the transport layer, e.g. PHP itself
// should handle parsing DIME ;)
- $dime = new DIME_Message();
+ $dime = new Net_DIME_Message();
$dime->decodeData($data);
if (strcasecmp($dime->parts[0]['type'],SOAP_ENVELOP) !=0 ||
strcasecmp($dime->parts[0]['type'],SOAP_ENVELOP) !=0) {
@@ -893,7 +893,7 @@
* class used to handle QNAME values in XML
*
* @access public
-* @version $Id: Base.php,v 1.18 2002/07/07 21:49:14 shane Exp $
+* @version $Id: Base.php,v 1.19 2002/07/08 00:36:47 shane Exp $
* @package SOAP::Client
* @author Shane Caraveo <shane@php.net> Conversion to PEAR and updates
*/