cvs: pear /SOAP/example example_server.php

From: Date: Thu, 31 Jul 2003 00:55:57 +0000
Subject: cvs: pear /SOAP/example example_server.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-11814@lists.php.net to get a copy of this message
shane Wed Jul 30 20:55:57 2003 EDT Modified files: /pear/SOAP/example example_server.php Log: add attachment example in server Index: pear/SOAP/example/example_server.php diff -u pear/SOAP/example/example_server.php:1.2 pear/SOAP/example/example_server.php:1.3 --- pear/SOAP/example/example_server.php:1.2 Sun Apr 13 17:38:59 2003 +++ pear/SOAP/example/example_server.php Wed Jul 30 20:55:57 2003 @@ -16,7 +16,7 @@ // | Authors: Shane Caraveo <Shane@Caraveo.com> | // +----------------------------------------------------------------------+ // -// $Id: example_server.php,v 1.2 2003/04/13 21:38:59 shane Exp $ +// $Id: example_server.php,v 1.3 2003/07/31 00:55:57 shane Exp $ // // first, include the SOAP/Server class @@ -85,6 +85,8 @@ array('in' => array('inputStruct' => '{http://soapinterop.org/xsd}SOAPStruct'), 'out' => array('outputStruct' => '{http://soapinterop.org/xsd}SOAPStruct'), ); + + $this->__dispatch_map['echoMimeAttachment'] = array(); } /* this private function is called on by SOAP_Server to determine any @@ -149,6 +151,11 @@ new SOAP_Value('outputInteger','int',$struct->varInt), new SOAP_Value('outputFloat','float',$struct->varFloat) ); + } + + function echoMimeAttachment($stuff) + { + return new SOAP_Attachment('return','application/octet-stream',NULL,$stuff); } }

« previous php.pear.cvs (#11814) next »