question re: Shane's sample DIME code
| From: | Brodie Thiesfield | Date: | Wed, 16 Jul 2003 01:59:03 +0000 |
| Subject: | question re: Shane's sample DIME code | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-817@lists.php.net to get a copy of this message | ||
In Shane's doco at talks.php.net he has sample code as:
$v = new SOAP_Attachment('test','text/plain',$filename);
$methodValue = new SOAP_Value('testattach', 'Struct', array($v));
$client = new SOAP_Client(
'http://www.caraveo.com/soap_interop/server_round2.php');
$resp = $client->call('echoMimeAttachment',array($v),
array('namespace'=>'http://soapinterop.org/'));
Can anyone explain what the use of creating the $methodValue variable
is? It isn't used in the call. Does it have a side-effect that is used?
Is it just a left-over from an earlier version of the code?
Brodie.