webservice 调用格式无法识别

xymclone 2012-08-31 05:08:21
System.InvalidOperationException: 因 URL 意外地以“/$metadata”结束,请求格式无法识别。
在 System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response)
在 System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath)
在 System.Web.Script.Services.ScriptHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated)
在 System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
在 System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) AUTH:False USER_NAME: AGENT:Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol


System.InvalidOperationException: 因 URL 意外地以“/mex”结束,请求格式无法识别。
在 System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response)
在 System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath)
在 System.Web.Script.Services.ScriptHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated)
在 System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
在 System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
...全文
1711 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
xymclone 2012-08-31
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 的回复:]

用http抓包工具看看请求和返回的数据是什么。
[/Quote]
产生这个错误的时候不是每次请求都有,是偶尔一次,也可能一天都不会有这问题
xymclone 2012-08-31
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 的回复:]

用http抓包工具看看请求和返回的数据是什么。
[/Quote]
我这个不会每次产生,可能就偶尔一次。所以不好抓
threenewbee 2012-08-31
  • 打赏
  • 举报
回复
用http抓包工具看看请求和返回的数据是什么。

12,162

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 Web Services
社区管理员
  • Web Services社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧