#42887 [Opn->Csd]: SOAP-ERROR: Encoding: string

From: Date: Thu, 18 Oct 2007 09:46:38 +0000
Subject: #42887 [Opn->Csd]: SOAP-ERROR: Encoding: string
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118653@lists.php.net to get a copy of this message
ID: 42887 User updated by: albert dot keil at gmail dot com Reported By: albert dot keil at gmail dot com -Status: Open +Status: Closed Bug Type: SOAP related Operating System: FreeBSD 5.4 PHP Version: 5.2.4 New Comment: The reason was wrong usage of substr with utf-8 (instead of mb_substr). Previous Comments: ------------------------------------------------------------------------ [2007-10-08 11:06:00] albert dot keil at gmail dot com Description: ------------ When I try to transfer via soap web service utf-8 encoded (by iconv) string I got the following error Trace response: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string '&#1500;&#1489;&#1491;&#1493;&#1511; &#1502;&#1492; &#1511;&#1493;&#1512;&#1492; &#1506;&#1501; &#1505;&#1496;&#1497;&#1497;&#1492; &#1489;&#1491;&#1493;&#1495; &#1495;&#1513;&#1489;&#1493;&#1504;&#1493;&#1514; &#1502;&#1493;&#1500; &#1491;&#1493;&#1495; &#1492;&#1499;&#1504;&#1505;&#1493;&#1514; </faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope> The most strange phenomena is that when I try to pass sub_str($str, 0, 56) string it doesn't work, but substr($str,0,55).substr($str,8) works ! Any suggestions ? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42887&edit=1

« previous php.bugs (#118653) next »