SoapServer ISO-8859-1 encoding doesn't seem to work
[email protected] (Bruce Bailey)
| Newsgroups | php.soap |
|---|---|
| Message-ID | <[email protected]> |
Hi
I'm using php 5.2.3 (also tested on php 5.2.9). For some reason, even though I am setting the reply encoding:
ini_set("soap.wsdl_cache_enabled", "0"); // disable WSDL caching
$server = new SoapServer("test.wsdl", array('encoding'=>'ISO-8859-1'));
$server->setClass("ManualService");
$server->handle();
The reply from the server is:
Date: Wed, 27 May 2009 15:30:08 GMT
Server: Apache/1.3.37 (Unix) mod_gzip/1.3.26.1a PHP/5.2.9
X-Powered-By: PHP/5.2.9
Content-Length: 1058
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/xml; charset=utf-8
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://www.test.com/test/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns1:SyUserGetResponse>
<UserGetResponse>
-- trimmed and formatted for readability --
</UserGetResponse>
</ns1:SyUserGetResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
What am I doing wrong?
Thanks in advance,
Bruce
_________________________________________________________________
Hotmail® has ever-growing storage! Don’t worry about storage limits.
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage1_052009