大家好,又见面了,我是你们的朋友全栈君。
I Created my WCF Service and it was working properly when i was making its service reference in my local machine. Also it can work well with tool WPF Test Client.
But the problem came when I invoked one of method.
When I was taking its reference in my local machine I got following error.
The remote server returned an error: (415)Cannot process the message because the content type ‘application/soap+xml;charset=utf-8’ In WCF.
I resolved this issues by adding anotherendpoint ‘mex’ as below in my web.config.
<endpoint address=“mex“ binding=“mexHttpBinding“ contract=“IMetadataExchange“ />
after adding above endpoint I got the service reference in my related(include invoked project which need to add above endpoint into app.config file) Client Application.
Please try If you face the similar problem.
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/141593.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...