Bug #69620 [NEW]: Wrong request message with cache mode WSDL_CACHE_BOTH

From: Date: Mon, 11 May 2015 11:14:21 +0000
Subject: Bug #69620 [NEW]: Wrong request message with cache mode WSDL_CACHE_BOTH
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192616@lists.php.net to get a copy of this message
From: gielwijgergangs at gmail dot com Operating system: Ubuntu PHP version: 5.5.24 Package: SOAP related Bug Type: Bug Bug description:Wrong request message with cache mode WSDL_CACHE_BOTH Description: ------------ The SoapClient class generates a different request message with cache WSDL_CACHE_BOTH if the SoapClient is called for the first times (and sometimes after). This script runs flawless when cache_wsdl => WSDL_CACHE_MEMORY or cache_wsdl => WSDL_CACHE_DISK is used. I checked the cache file on disk, this file is the same for option cache_wsdl=>WSDL_CACHE_DISK and cache_wsdl=>WSDL_CACHE_BOTH If required, I could provide additional information such as the WSDL file. (I removed the xml inside the <item> tag for readability) Test script: --------------- $soap_client = new \SoapClient($file, array('trace' => true, 'use' => SOAP_ENCODED, 'soap_version' => SOAP_1_1, 'features' => SOAP_USE_XSI_ARRAY_TYPE, 'cache_wsdl' => WSDL_CACHE_BOTH)); $result = $this->client->getabtariefgroep($this->wsUsername, $this->wsPassword, array($request_array)); echo $soap_client->__getLastRequest(); Expected result: ---------------- <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:enra:abverzaanvraag:abverzaanvraag" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:getabtariefgroep><pcServiceId xsi:type="xsd:string">xxx</pcServiceId><pcWachtwoord xsi:type="xsd:string">xxx</pcWachtwoord><ttWsAanvraag SOAP-ENC:arrayType="ns1:getabtariefgroep_ttWsAanvraagRow[1]" xsi:type="ns1:ArrayOfgetabtariefgroep_ttWsAanvraagRow"><item xsi:type="ns1:getabtariefgroep_ttWsAanvraagRow">........</item></ttWsAanvraag></ns1:getabtariefgroep></SOAP-ENV:Body></SOAP-ENV:Envelope> Actual result: -------------- <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:enra:abverzaanvraag:abverzaanvraag" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:getabtariefgroep><pcServiceId xsi:type="xsd:string">xxx</pcServiceId><pcWachtwoord xsi:type="xsd:string">xxx</pcWachtwoord><ttWsAanvraag SOAP-ENC:arrayType="SOAP-ENC:Struct[1]" xsi:type="ns1:ArrayOfgetabtariefgroep_ttWsAanvraagRow"><item xsi:type="SOAP-ENC:Struct">.........</item></ttWsAanvraag></ns1:getabtariefgroep></SOAP-ENV:Body></SOAP-ENV:Envelope> -- Edit bug report at https://bugs.php.net/bug.php?id=69620&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69620&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69620&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69620&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69620&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69620&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69620&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69620&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69620&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69620&r=support Expected behavior: https://bugs.php.net/fix.php?id=69620&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69620&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69620&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69620&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69620&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69620&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69620&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69620&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69620&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69620&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69620&r=mysqlcfg

« previous php.bugs (#192616) next »