Re: [SOAP] SOAP (SOAP_Server/SOAP_Client) and DIME
| From: | Brodie Thiesfield | Date: | Wed, 03 Mar 2004 01:33:50 +0000 |
| Subject: | Re: [SOAP] SOAP (SOAP_Server/SOAP_Client) and DIME | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-1399@lists.php.net to get a copy of this message | ||
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