I have a SOAP syncronization script playing nicely with ampersand. I'm using the PHP5 SoapClient interface and had to do some finageling to get it to work properly. My initialization starts something like this:
Code:
$soapClient = new SoapClient(null, array(
'location' => 'http://localhost/sugarcrm_path/soap.php',
'uri' => 'http://www.sugarcrm.com/sugarcrm',
'soap_version' => SOAP_1_1, //SOAP_1_2 - 1.2 not supported by sugar nusoap
'trace' => 1,
'exceptions' => 0,
//'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP | 5
));
Also, I had to wrap all my input params with utf8_encode() and trim() like this:
Code:
$parameters = array(
array(
'name' => 'name',
'value' => utf8_encode(trim($name))
),
// more params here....
); Be sure to see:
http://www.beanizer.org/site/index.p...cations-I.html
http://www.lornajane.net/posts/2008/...P-API-Examples
for useful examples. GL
Bookmarks