ID: 44363 Comment by: jitka at darbujanova dot cz Reported By: ryanmhuc at yahoo dot com Status: No Feedback Bug Type: SOAP related Operating System: Windows XP PHP Version: 5.2.5 New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [2008-03-19 12:51:27] wim dot vanderveen at westlandenergie dot nl i get the same problem. i suspect it is caused by my server trying to return a (class containing an array containing some) NaN found about the same bug-description in #43045, therefore updated php (both client and server side) to 5.2.6-dev as indicated but alas, still the same problem Wim ------------------------------------------------------------------------ [2008-03-18 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2008-03-10 11:36:32] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [2008-03-07 13:02:57] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44363&edit=1