首页 新闻 会员 周边

.net 调用 php的webservice 出现响应内容错误

0
悬赏园豆:60 [已关闭问题] 关闭于 2010-10-13 14:24

在使用.net调用一个PHP写的webservice,提示出现了“客户端发现响应内容类型为“text/html”,但应为“text/xml”。
请求失败,错误信息为:”

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:Studentinfo"><SOAP-ENV:Body><ns1:get_infoResponse><get_infoReturn>文字文字文字文字文字</get_infoReturn></ns1:get_infoResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

实际情况是已经取得的webservice的返回值。

小爪子的主页 小爪子 | 初学一级 | 园豆:10
提问于:2010-10-12 11:04
< >
分享
所有回答(2)
0

估计是web.config文件的问题。asmx所在的目录中有一个web.config文件删除,在重启iis试试看。

茂茂 | 园豆:2892 (老鸟四级) | 2010-10-12 15:50
0

问题怎么解决?

yanweinet | 园豆:125 (初学一级) | 2012-02-03 15:49
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册