problems with sending DIME attachments
| From: | Brodie Thiesfield | Date: | Tue, 15 Jul 2003 09:54:07 +0000 |
| Subject: | problems with sending DIME attachments | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-802@lists.php.net to get a copy of this message | ||
Hi,
I'm having some problems sending DIME attachments with PEAR::SOAP 0.7.3
I'm not sure if the problem is at the PEAR::SOAP client or the gSoap
server. I would appreciate if someone would have a look at my code to
see if I'm doing something wrong.
Looking at the data on the wire, there seems to be a DIME message going
out, but my server isn't receiving it at all.
Below is the function which I am using to call the soap server.
$a_strText is to be sent to the server as a DIME attachment, have the
data encoding changed to the requested encoding, and then be returned as
a DIME attachment.
function recode( $a_strFromLanguage, $a_strFromEncoding,
$a_strToEncoding, &$a_strText )
{
$oDimeAttachment = new SOAP_Attachment( '',
'application/octet-stream', '', $a_strText );
$rgParams = array(
'fromLanguage' => $a_strFromLanguage,
'fromEncoding' => $a_strFromEncoding,
'toEncoding' => $a_strToEncoding,
'text' => $oDimeAttachment
);
$oResults = $this->call( 'recode', $rgParams, $this->m_rgSoapParams );
return $oResults;
}
$this->m_rgSoapParams has the following definition...
var $m_rgSoapParams =
array(
'namespace' => 'urn:clsoap',
'soapaction' => '',
'style' => 'rpc',
'use' => 'encoded',
'attachments' => 'DIME'
);
Any help will be much appreciated.
Brodie.