From: vbrodsky at tremormedia dot com Operating system: CentOS release 5 (Final) PHP version: 5.2.5 PHP Bug Type: SOAP related Bug description: Error when parsing Akamain SOAP
Description: ------------ I am trying to access Akamai Cache Control Service using SOAP Client. Since Akamai officially does not support PHP, I am using Java wsdl https://ccuapi.akamai.com/ccuapi-axis.wsdl. I have created various tests, but no matter what I do I get PHP SOAP exception (see below). Is there is something wrong with the array of strings passed as a parameter? There apparently used to be idoox interoperatbility issue with an array of strings (http://aspn.activestate.com/ASPN/Mail/Message/soapbuilders/761488) but it is fixed, supposedly. BTW my php version is 1.5.6 (comes CentOS distribution) Reproduce code: --------------- echo "******************************<BR>"; echo "Example1: call using array() to pass ArrayOfString"; $client = new SoapClient("https://ccuapi.akamai.com/ccuapi-axis.wsdl"); var_dump($client->__getFunctions()); var_dump($client->__getTypes()); $params = array('xxx', 'yyy', NULL, NULL, "http://objects.dev.tremormedia.com/xml/val.xml"); try { $purgeResult = $client->purgeRequest($params); } catch(SoapFault $e){ echo "Exception <BR>"; var_dump($e); echo "<BR>"; } var_dump($purgeResult); echo "******************************<BR>"; echo "Example7: call using associative array() to pass parameters; ArrayOfString is passed as php array()" . "<BR>"; $client = new SoapClient("https://ccuapi.akamai.com/ccuapi-axis.wsdl"); var_dump($client->__getFunctions()); var_dump($client->__getTypes()); $params = array( "name" => "xxx", "pwd" => "yyy", "network" => array(''), "opt" => array("action=remove"), "uri"=> array("http://objects.dev.tremormedia.com/xml/val.xml") ); try { $purgeResult = $client->purgeRequest($params); } catch(SoapFault $e){ echo "Exception <BR>"; var_dump($e); echo "<BR>"; } var_dump($purgeResult); Expected result: ---------------- should return something... perhaps an Akamai error (url does not existetc.). Should not cause a php exception Actual result: -------------- object(SoapFault)[2] protected 'message' => string 'Exception: class com.idoox.soap.DemarshallException: Type in schema differs from type in SOAP message - expected [EMAIL PROTECTED]://www.w3.org/1999/XMLSchema; got [EMAIL PROTECTED]://www.akamai.com/purge' (length=199) private 'string' => string '' (length=0) protected 'code' => int 0 protected 'file' => string '/var/www/html/ais2/service/akamaisoap/test.php' (length=46) protected 'line' => int 13 private 'trace' => array 0 => array 'function' => string '__call' (length=6) 'class' => string 'SoapClient' (length=10) 'type' => string '->' (length=2) 'args' => array ... 1 => array 'file' => string '/var/www/html/ais2/service/akamaisoap/test.php' (length=46) 'line' => int 13 'function' => string 'purgeRequest' (length=12) 'class' => string 'SoapClient' (length=10) 'type' => string '->' (length=2) 'args' => array ... public 'faultstring' => string 'Exception: class com.idoox.soap.DemarshallException: Type in schema differs from type in SOAP message - expected [EMAIL PROTECTED]://www.w3.org/1999/XMLSchema; got [EMAIL PROTECTED]://www.akamai.com/purge' (length=199) public 'faultcode' => string 'SOAP-ENV:Server' (length=15) -- Edit bug report at http://bugs.php.net/?id=43910&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43910&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43910&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43910&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43910&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43910&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43910&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43910&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43910&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43910&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43910&r=support Expected behavior: http://bugs.php.net/fix.php?id=43910&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43910&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43910&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43910&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43910&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43910&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43910&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43910&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43910&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43910&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43910&r=mysqlcfg