hnczljt 发表于 2008-7-19 00:37

调用WebServer错误问题 text/plain

高手帮我解决下这个问题吧
我调用了一个WebServer的方法,然后报了这个错:

System.Exception: 客户端发现响应内容类型为“text/plain; charset=utf-8”,但应为“text/xml”。
请求失败,错误信息为:

--
System.InvalidOperationException: UNMPWS/Notify.asmx Web 服务方法名无效。
  at System.Web.Services.Protocols.HttpServerProtocol.Initialize()
  at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)

--.

我改了web.Config 里的文件,
<globalization requestEncoding="GB2312" responseEncoding="GB2312" fileEncoding="GB2312"/>
然后去掉<?xml version="1.0" encoding="utf-8" ?>里的encoding="utf-8"

但还是 报错。。。。

哪个大虾帮我解决下啊


页: [1]

编程论坛