cool... thanks. any ideas on how to write the SOAP server to accept/require a DIME attachment? I have a feeling this will be specified in a __dispatch_map parameter, but I can't seem to find which one. thanks dave -----Original Message----- From: Brodie Thiesfield [mailto:brodie@crosslanguage.co.jp] Sent: Tuesday, March 02, 2004 5:34 PM To: soap@lists.php.net Subject: Re: SOAP (SOAP_Server/SOAP_Client) and DIME Viner, David wrote: > What's the standard way of sending and receiving DIME attachments using > PEAR's SOAP_Server and SOAP_Client? The way that I do it (PEAR SOAP as client, gSoap as server) is: $oParams = new SOAP_Value( '{'.CR_NAMESPACE_SCHEMA.'}TranslateDocument', 'TranslateDocument', array( 'options' => $a_nOptions, new SOAP_Attachment( 'originalDoc', 'application/octet-stream', '', $a_strOriginal ) ) ); $this->call( 'TranslateDocument', $oParams, $this->m_rgSoapParams ); Where m_rgSoapParams are: var $m_rgSoapParams = array( 'namespace' => CR_NAMESPACE_SCHEMA, 'soapaction' => '', 'style' => 'document', 'use' => 'literal', 'attachments' => 'DIME' ); Cheers Brodie -- PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php