NuSoap返回额外的字符

时间:2011-04-18 05:28:07

标签: php web-services nusoap

我正在使用NoSoap来托管网络服务,这很奇怪,因为这个奇怪的问题发生了。对于xml输出,它将在soap xml之前产生额外的3个字符,这导致xml解析错误。我用Fiddler捕获输出。谁知道为什么这会发生?提前致谢

HTTP/1.1 200 OK
Date: Mon, 18 Apr 2011 06:00:45 GMT
Server: Apache/2.0.54 (Fedora)
X-Powered-By: PHP/4.4.0
X-SOAP-Server: NuSOAP/0.7.3 (1.114)
Content-Length: 36993
Connection: close
Content-Type: text/xml; charset=UTF-8

???<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w... ... ...

1 个答案:

答案 0 :(得分:0)

确保在PHP文件的任何开头没有BOM (使用UTF-8时长3个字节)