From: Michiel Betel on
I'm trying to create a SOAP Client which attached a DIME attachment.
This is using pear::soap 0.9.1, Mail_Mime 1.3.1 & Net_DIME 0.3 installed
Problem is that the attachment does not get attached.. The call does get
placed and the other
parameters are processed.
Can anyone point me to wh\at I'm missing cuz I'm stuck. Looking in
SOAP/Client.php it seems to me that
$this->__attachments is never set, and thus __generate will never call
makeDime, but I'm not sure I'm
interpreting the code correctly

Thanks! Michiel

Code I use is:

$soapclient = new
$soapclient->setOpt('curl', CURLOPT_VERBOSE, 1);
$soapclient->setOpt('curl', CURLOPT_SSL_VERIFYHOST, 0);
$soapclient->setOpt('curl', CURLOPT_SSL_VERIFYPEER, 0);
$soapclient->setOpt('curl', CURLOPT_SSLCERT,
$soapclient->setOpt('curl', CURLOPT_SSLCERTPASSWD, "blablabla");
$soapclient->setOpt('curl', CURLOPT_CAINFO, "../certificates/cacert.pem");
$soapclient->setOpt('curl', CURLOPT_CAPATH, "../certificates");

$v = new
'email' => 'michiel(a)',
'referentie' => 'test1234'

$options = array(
'attachments' => 'Dime',
'namespace' => "",
'soapaction' => '',
'trace' => 1

$result = $soapclient->call('IndienenDeclaratie', $params, $options);
print $soapclient->wire;