php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66165 SOAP-ERROR: Encoding: Violation of encoding rules
Submitted: 2013-11-25 10:06 UTC Modified: 2025-05-29 18:55 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: asder2015 at ya dot ru Assigned:
Status: Not a bug Package: SOAP related
PHP Version: 5.5.6 OS: Ubuntu 13.10
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: asder2015 at ya dot ru
New email:
PHP Version: OS:

 

 [2013-11-25 10:06 UTC] asder2015 at ya dot ru
Description:
------------
After sending data to the server, the answer comes:
SOAP-ERROR: Encoding: Violation of encoding rules
This is a bug or some configuration C# client?

Test script:
---------------
Link to document, included all scripts : https://docs.google.com/document/d/137nTNdBEP5BbB_k0wDgcFsMr3wbmimpYPffC2f2NiR4

Expected result:
----------------
In method "_call" in class SoapService I expect next array:
Array
(
    [session_id] => vhjd4c9foqmuca4cucgp7sh6r6
    [activities] => Array
        (
            [activity_id] => Array
                (
                    [0] => 1
                    [1] => 2
                )
        )
)



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2025-05-29 18:55 UTC] nielsdos@php.net
-Status: Open +Status: Not a bug
 [2025-05-29 18:55 UTC] nielsdos@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Very late reply. I'm trying to get SOAP more maintained again and going through the issue list right now.

This is not a bug, the request sent from your C# client does not match the types defined in the WSDL.
Your WSDL declares that there must be a sequence of <activity_id> elements in the request of type xsd:int. However, there is a single <activity_id> element with type Array, instead of multiple <activity_id> elements with type int.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 21:01:35 2025 UTC