SOAP
[ class tree: SOAP ] [ index: SOAP ] [ all elements ]

Source for file attachment.php

Documentation is available at attachment.php

  1. <?php
  2. require_once("SOAP/Client.php");
  3. require_once("SOAP/test/test.utility.php");
  4. require_once("SOAP/Value.php");
  5.  
  6. $filename 'attachment.php';
  7. $v =  new SOAP_Attachment('test','text/plain',$filename);
  8. $methodValue = new SOAP_Value('testattach''Struct'array($v));
  9.  
  10. $client = new SOAP_Client('mailto:user@domain.com');
  11. # calling with mime
  12. $resp $client->call('echoMimeAttachment',array($v),
  13.                 array('attachments'=>'Mime',
  14.                 'namespace'=>'http://soapinterop.org/',
  15.                 'from'=>'user@domain.com',
  16.                 'host'=>'smtp.domain.com'));
  17. print $client->wire."\n\n\n";
  18. print_r($resp);
  19.  
  20. # calling with DIME
  21. $resp $client->call('echoMimeAttachment',array($v));
  22. # DIME has null spaces, change them so we can see the wire
  23. $wire str_replace("\0",'*',$client->wire);
  24. print $wire."\n\n\n";
  25. print_r($resp);
  26. ?>

Documentation generated on Mon, 11 Mar 2019 14:33:02 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.