php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68189 "Violation of encoding rules" after PHP 5.5.17 -> PHP 5.6.1
Submitted: 2014-10-08 16:14 UTC Modified: 2014-12-30 10:42 UTC
Votes:9
Avg. Score:4.6 ± 0.7
Reproduced:9 of 9 (100.0%)
Same Version:7 (77.8%)
Same OS:1 (11.1%)
From: jan dot reges at siteone dot cz Assigned:
Status: No Feedback Package: SOAP related
PHP Version: 5.6.1 OS: Gentoo Linux
Private report: No CVE-ID: None
 [2014-10-08 16:14 UTC] jan dot reges at siteone dot cz
Description:
------------
Hi,

after upgrade from PHP 5.5.17 from to PHP 5.6.1, one of our SoapClient is not working.

After __call() the result is only "SOAP-ERROR: Encoding: Violation of encoding rules".

Below is tcpdump of SOAP request/response from server, where SoapClient is.

Do you have some tips, how to debug it?

After downgrade back to 5.5.17, it work's fine.

Thank you.

Actual result:
--------------
Saved tcpdump of SOAP request/response.

POST /1.0/lrm HTTP/1.1
Host: REMOVED-FOR-BUG-REPORT
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.6.1
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 931

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="REMOVED-FOR-BUG-REPORT"><SOAP-ENV:Body><ns1:call><context><clientSessionId><loggingRoot>true</loggingRoot><sessionId>5e2t9sm7eo2ae2h85q8evlmpaj53ib1q</sessionId></
clientSessionId><ipAddress>192.168.2.48</ipAddress><lng>cs</lng><{L5T/...N...N.....ms.&.%..P...E..@..@.@.d............P.b0t..a.P.r.6...merchantId>siteone</merchantId></context><digestedData><data>0</data><digest><digest>RrwHIXl18RUj024kpa3hIFTaZR7oh/xNjsJW
VcQ+qbb6B06L3Vfmks+hCRLL+9f30KZEFHEwxGdM2c+sXU42j+BqCUceAUp+zhqWqrReIfq32h05nz4pXZ6GZ08MbONezkPQoTD2qmK+wOSyc+iYB9X9WQvhKjxr8XgI++19cZs1m1othzaq5tNMPSNb72uIcBpZ/wITCM6hUOG/Ud+cknWhDJn5VPQ2NVyipNXc7nA2jZbOkIdpM1Is/tATOS3QLyXXgI9vuJhMBYFGHOmgw228RbwLeJWbejMm
j9Y+XauzEjGhjn9tIlFnjfMeiG9vAmX5ESknkCXJFfb4aBdSiw==</digest><keyId>mystyle</keyId></digest></digestedData><interfaceVersion>v1</interfaceVersion></ns1:call></{L5T2...Y...Y.....ms.&.%..P...E..K..@.@.f............P.b2...a.P.r.4#..SOAP-ENV:Body></SOAP-ENV:En
velope>
{L5TX"..<...<....%..P...ms.&..E..(....8.ab.........P....a..b0tP.<.C.........{L5T."..<...<....%..P...ms.&..E..(....8.aa.........P....a..b2.P.@.=.........{L5T.#..<...<....%..P...ms.&..E..(....8.a`.........P....a..b2.P.@.=t........{L5TV^..N...N....%..P...ms.&
..E..@....8._G.........P....a..b2.P.@. ...
HTTP/1.1 200 OK
Date: Wed, 08 Oct 2014 14:38:51 GMT
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=UTF-8
Content-Length: 479
X-UA-Compatible: IE=EmulateIE7
Connection: close

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:callResponse xmlns:ns2="REMOVED-FOR-BUG-REPORT"><return><data>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHJlcGx5PjxjYWxsUmVzdWx0PkVSUk9SPC9jYWxsUmVzdWx0Pjxl
eGNlcHRpb24+PGNvZGU+Y29tcG9uZW50Lm1hcnNoYWxsZXIuaW52YWxpZC54bWw8L2NvZGU+PHVzZXJNZXNzYWd{L5TY^..6...6.....ms.&.%..P...E..(..@.@.f............P.b2...c.P.u@4...{L5T.^...........%..P...ms.&..E.......8.`..........P....c..b2.P.@.....lPkludmFsaWQgaW5wdXQgWE1MITwv
dXNlck1lc3NhZ2U+PC9leGNlcHRpb24+PC9yZXBseT4=</data></return></ns2:callResponse></soap:Body></soap:Envelope>{L5T.^..6...6.....ms.&.%..P...E..(..@.@.f............P.b2...ddP.yp4...{L5T.^..6...6.....ms.&.%..P...E..(..@.@.f............P.b2...ddP.yp4...{L5T.^..<
...<....%..P...ms.&..E..(....8.a].........P....dd.b2.P.@.:.........{L5T.^..6...6.....ms.&.%..P...E..(..@.@.f............P.b2...deP.yp4...{L5T.d..<...<....%..P...ms.&..E..(....8.a\.........P....de.b2.P.@.:.........


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-10-08 16:22 UTC] jan dot reges at siteone dot cz
Here is also related WSDL (with replace "http://" to "URL-"):

<?xml version='1.0' encoding='UTF-8'?><wsdl:definitions xmlns:xsd="URL-www.w3.org/2001/XMLSchema" xmlns:wsdl="URL-schemas.xmlsoap.org/wsdl/" xmlns:tns="REMOVE-FOR-BUG-REPORT" xmlns:soap="URL-schemas.xmlsoap.org/wsdl/soap/" xmlns:ns1="URL-schemas.xmlsoap.org/soap/http" name="core1Lite" targetNamespace="REMOVE-FOR-BUG-REPORT">
  <wsdl:types>
<xs:schema xmlns:xs="URL-www.w3.org/2001/XMLSchema" xmlns:tns="REMOVE-FOR-BUG-REPORT" targetNamespace="REMOVE-FOR-BUG-REPORT" version="1.0">
<xs:element name="call" type="tns:call"/>
<xs:element name="callResponse" type="tns:callResponse"/>
<xs:complexType name="call">
    <xs:sequence>
      <xs:element minOccurs="0" name="context" type="tns:context"/>
      <xs:element minOccurs="0" name="digestedData" type="tns:digestedData"/>
      <xs:element minOccurs="0" name="interfaceVersion" type="xs:string"/>
    </xs:sequence>
  </xs:complexType>
<xs:complexType name="context">
    <xs:sequence>
      <xs:element minOccurs="0" name="clientSessionId" type="tns:session"/>
      <xs:element minOccurs="0" name="ipAddress" type="xs:string"/>
      <xs:element minOccurs="0" name="lng" type="xs:string"/>
      <xs:element minOccurs="0" name="merchantId" type="xs:string"/>
    </xs:sequence>
  </xs:complexType>
<xs:complexType name="session">
    <xs:sequence>
      <xs:element minOccurs="0" name="callId" type="xs:string"/>
      <xs:element name="loggingRoot" type="xs:boolean"/>
      <xs:element minOccurs="0" name="sessionId" type="xs:string"/>
    </xs:sequence>
  </xs:complexType>
<xs:complexType name="digestedData">
    <xs:sequence>
      <xs:element minOccurs="0" name="data" type="xs:base64Binary"/>
      <xs:element minOccurs="0" name="digest" type="tns:digest"/>
    </xs:sequence>
  </xs:complexType>
<xs:complexType name="digest">
    <xs:sequence>
      <xs:element minOccurs="0" name="digest" type="xs:string"/>
      <xs:element minOccurs="0" name="keyId" type="xs:string"/>
    </xs:sequence>
  </xs:complexType>
<xs:complexType name="callResponse">
    <xs:sequence>
      <xs:element minOccurs="0" name="return" type="tns:digestedData"/>
    </xs:sequence>
  </xs:complexType>
</xs:schema>
  </wsdl:types>
  <wsdl:message name="callResponse">
    <wsdl:part element="tns:callResponse" name="parameters">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="call">
    <wsdl:part element="tns:call" name="parameters">
    </wsdl:part>
  </wsdl:message>
  <wsdl:portType name="core1LiteEntrypoint">
    <wsdl:operation name="call">
      <wsdl:input message="tns:call" name="call">
    </wsdl:input>
      <wsdl:output message="tns:callResponse" name="callResponse">
    </wsdl:output>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="core1LiteSoapBinding" type="tns:core1LiteEntrypoint">
    <soap:binding style="document" transport="URL-schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="call">
      <soap:operation soapAction="" style="document"/>
      <wsdl:input name="call">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="callResponse">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="core1Lite">
    <wsdl:port binding="tns:core1LiteSoapBinding" name="core1LiteEntrypointPort">
      <soap:address location="REMOVE-FOR-BUG-REPORT"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>
 [2014-10-15 15:56 UTC] tyrael@php.net
-Status: Open +Status: Feedback
 [2014-10-15 15:56 UTC] tyrael@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.


 [2014-12-30 10:42 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC