ID: 31880
User updated by: tschlottke at virtualminds dot de
Reported By: tschlottke at virtualminds dot de
-Status: Feedback
+Status: Open
Bug Type: SOAP related
Operating System: linux
PHP Version: 5.0.3
New Comment:
Uhm, shouldn't this be done transparently by ext/soap like in every
SOAP-Class I've used so far?
They all encode transparently on client-side and decode on server side.
Or is this just working correctly in wsdl-mode?
If I am wrong, just mark as bogus and I'll find another way workin'
around this.
Previous Comments:
------------------------------------------------------------------------
[2005-02-08 22:32:06] [EMAIL PROTECTED]
Are you sure you're using UTF-8? Try if utf8_encode()ing
the name of the method as proposed in the Exception.
------------------------------------------------------------------------
[2005-02-08 10:39:28] tschlottke at virtualminds dot de
Description:
------------
When I try to call a Soap-Method via SoapClient with any
umlaut-containing string, soapclient complains that the string is not a
valid utf8-encoded string.
It seems to differ from #29999,
which was a problem of libxml2.
I've upgraded libxml2 to cvs, the problem described in #29999 is fixed
in my libxml2 so I think this should be a PHP-issue.
Reproduce code:
---------------
<?php
$client = new
SoapClient(...);
$client->anyMethod("Benutzer hinzuf�gen");
?>
Actual result:
--------------
Uncaught SoapFault exception:
[SOAP-ENV:Client] SOAP-ERROR: Encoding: string 'Recht hinzuf�gen' is
not a valid utf-8 string in
/var/www/adition_gui/includes/classes/rpc.class.php:29 Stack trace: #0
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31880&edit=1