当前位置:编程学习 > php >>

一个VB+PHP+Nusoap的乱码问题

答案:nusoap内的编码改为GB2312后response的xml:
HTTP/1.1 500 Internal Server Error
Date: Thu, 09 Sep 2004 04:15:03 GMT
Server: Apache/1.3.29 (Unix) PHP/4.3.4
X-Powered-By: PHP/4.3.4
Set-Cookie: PHPSESSID=b35fd0ac5381c048a5dc1a602fd66605; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-Accelerated-By: PHPA/1.3.3r2
Status: 500 Internal Server Error
X-SOAP-Server: NuSOAP/0.6.6 (1.70)
Content-Length: 709
Connection: close
Content-Type: text/xml; charset=GB2312

<?xml version="1.0" encoding="GB2312"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:si="http://soapinterop.org/xsd">
<SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>Server</faultcode><faultactor></faultactor><faultstring>error in msg parsing:
XML error parsing SOAP payload on line 1: not well-formed (invalid token)</faultstring><detail><soapVal xsi:type="xsd:string"></soapVal></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

上一个:PHP中cookies指南
下一个:根据已有报告文件创建Web服务

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,