php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69620 Wrong request message with cache mode WSDL_CACHE_BOTH
Submitted: 2015-05-11 11:14 UTC Modified: -
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: gielwijgergangs at gmail dot com Assigned:
Status: Open Package: SOAP related
PHP Version: 5.5.24 OS: Ubuntu
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: gielwijgergangs at gmail dot com
New email:
PHP Version: OS:

 

 [2015-05-11 11:14 UTC] gielwijgergangs at gmail dot com
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>


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 14:01:29 2024 UTC