415 Unsupported Media Type when WSE is NOT configured
2009-02-14 09:24
211 查看
I have a web service that runs fine on my Windows XP. However, when I deploy to the production server, the web service returns 415 Unsupported Media Type when calling.
I have seen this error when WSE is not enabled on the client. The problem is, the web service is NOT using WSE. so I did the usual, uninstall ASP.Net, reinstalling, adding asmx extension to IIS, same error.
Now I need to fire a debugger to see what’s going on. Surprisingly, Microsoft.Web.Services3.dll is loaded even when there is no trace of it in my projects. Now I probably know what’s going on. There is another web service in a different virtual directory that uses WSE.
OK, I will isolate my web service to a new application pool. Well, that does not help. In the end I have to add WSE configuration to both my web service and my Windows client.
I have seen this error when WSE is not enabled on the client. The problem is, the web service is NOT using WSE. so I did the usual, uninstall ASP.Net, reinstalling, adding asmx extension to IIS, same error.
Now I need to fire a debugger to see what’s going on. Surprisingly, Microsoft.Web.Services3.dll is loaded even when there is no trace of it in my projects. Now I probably know what’s going on. There is another web service in a different virtual directory that uses WSE.
OK, I will isolate my web service to a new application pool. Well, that does not help. In the end I have to add WSE configuration to both my web service and my Windows client.
相关文章推荐
- Get 415: Unsupported Media Type when posting something to Restful WS
- AFNetworking 返回错误unsupported media type (415) 解决方案
- 415 unsupported media type
- System.Net.WebException : The remote server returned an error: (415) UNSUPPORTED MEDIA TYPE
- ajax,Unsupported media type-415(不 支持的媒体类型)
- 415 Unsupported Media Type
- Unsupported Media Type 415问题解决办法(Ajax)
- HTTP/1.1 415 Unsupported Media Type
- JS —— Http unsupported media type 415 错误
- 从jsp中向后台传送json格式数据,浏览器报415 Unsupported media type
- Unsupported Media Type 415
- Unsupported Media Type 415
- 关于springmvc,post请求的一点问题(415 unsupported media type,400,接不到参数等)
- 问题.springmvc错误.415:Unsupported Media Type
- springMVC用@RequestBody接受post json对象 (415 Unsupported media type)
- RestTemplate远程调用POST请求:HTTP 415 Unsupported Media Type
- SpringMVC 中HttpMessageConverter简介和Http请求415 Unsupported Media Type的问题
- HTTP 415 错误 – 不支持的媒体类型(Unsupported media type)
- 415 Unsupported Media Type
- Status Code:415 Unsupported Media Type