|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-08-18 14:22 UTC] sunfundev at gmail dot com
-Summary: XML Error when
+Summary: Error at a Soap request
[2011-08-18 14:22 UTC] sunfundev at gmail dot com
[2011-11-22 18:23 UTC] benbunk at gmail dot com
[2011-11-30 20:53 UTC] benbunk at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 05:00:01 2025 UTC |
Description: ------------ PHP 5.3.6 on Windows and FreeBSD There is a problem with soap-call when one of the parameters contains control characters. Expected result: ---------------- $options = array( "location" => Config::$config['soap_location'], "uri" => Config::$config['soap_uri'], "trace" => 1, "exceptions" => true ); $soap_client = new SoapClient(null, $options); $result = $soap_client->login(array('user_name'=>Config::$config['login'],'password'=Config::$config['password'])); $session_id = $result->id; $entrie = array( array('name' => 'first_name', 'value' => 'normal string'), array('name' => 'last_name', 'value' => (string)chr(0x1A)), array('name' => 'email1', 'value' => 'soaptest@soaptest.com') ); $soap_client->__soapCall("set_entries", array($session_id, 'Leads', array($entrie))); Actual result: -------------- Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Client] error in msg parsing: XML error parsing SOAP payload on line 2: Invalid character in H:\xampp\htdocs\test.php:55 Stack trace: #0 H:\xampp\htdocs\test.php(55): SoapClient->__soapCall('set_entries', Array) #1 {main} thrown in H:\xampp\htdocs\test.php on line 55