|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-03-07 13:02 UTC] ryanmhuc at yahoo dot com
Description:
------------
I recieve the following error:
Fatal error: Uncaught SoapFault exception: [Client] SOAP-ERROR: Encoding: Violation of encoding rules in
When using the SOAP extension & WSDL on Windows XP w/ Apache 2.2 on PHP 5.2.5. This only occurs on types of requests. Others run successfully. I don't know but i suspect that a certain type of character(s) in the response is causing an issue for the SOAP extension in Windows. The same exact code, WSDL file runs on Linux without a problem.
The API URL is https so is is possible the problem could lie there.
Reproduce code:
---------------
The WSDL file is too long to post here. I would also have to provide the API files and a login to duplicate.
But i will do so if you contact me.
Expected result:
----------------
I would expect to be returned a stdClass object.
Actual result:
--------------
Fatal error: Uncaught SoapFault exception: [Client] SOAP-ERROR: Encoding: Violation of encoding rules in E:\Web\imagepath.net\intranet\lib\Attask\Attask.php:180 Stack trace: #0 [internal function]: SoapClient->__call('getTemplateTask...', Array) #1 [internal function]: SoapClient->getTemplateTasksByTemplateID('213110666430904...', 4085) #2 E:\Web\imagepath.net\intranet\lib\Attask\Attask.php(180): call_user_func_array(Array, Array) #3 [internal function]: Attask->__call('getTemplateTask...', Array) #4 E:\Web\imagepath.net\intranet\lib\Attask\TemplateBean.php(55): Attask->getTemplateTasksByTemplateID(4085) #5 E:\Web\imagepath.net\intranet\lib\Attask\TemplateBean.php(18): TemplateBean->getTasks() #6 E:\Web\imagepath.net\intranet\attask\template_importer.php(149): TemplateBean->deleteTasks() #7 {main} thrown in
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 23:00:01 2025 UTC |
same problem on php 5.2.6. It happened when some transmited ComplexType (eg. in PHP stdClass) have some member variable with mixing small and big letters (this was my case). For example this causes an error: class MyStdClass { var $cisloDokladu; } server code: $myStdClass = new MyStdClass(); $myStdClass->cisloDokladu = 'what you want'; return $myStdClass; when changing on $cislodokladu, it is ok. but some varibles doesn't cause this problem fo example: var $someElseVar; Thanks for reopening this issue. Not critical for me, I have only changed variable name but it is a bug.