<?php
require_once('SOAP/Client.php');
$filename = 'attachment.php';
$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/'));
?>