首页 新闻 会员 周边

ASP.NET调用php的webService问题,求解决,错误如下:

0
悬赏园豆:10 [待解决问题]

客户端发现响应内容类型为“text/html; charset=UTF-8”,但应为“text/xml”。
请求失败,错误信息为:
--
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:serviceMX" 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/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:Get_ScenicSpot_ListResponse><Get_ScenicSpot_List xsi:type="xsd:string"><?xml version="1.0" encoding="utf-8"?>

roxg的主页 roxg | 初学一级 | 园豆:186
提问于:2013-01-21 15:26
< >
分享
所有回答(2)
0

php那边的输出问题

DavidHHuan | 园豆:202 (菜鸟二级) | 2013-01-30 12:32

net 调用php的webService,方法中的参数 为空是“获取全部信息”,旦为空发生错误:分析 Name 时,出现意外的文件结尾

支持(0) 反对(0) roxg | 园豆:186 (初学一级) | 2013-01-30 17:41
0

请求和相应content-type要保持一致!如果是http请求方式一般不会有这个问题(除非你服务端content-type设置有误),这个有可能是你用WebService传输方式造成的,希望对你有所帮助

SharpBrother | 园豆:203 (菜鸟二级) | 2013-06-07 22:27
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册