Hi,
I Created my WCF Service and it was working properly when i was making its service reference in my local machine.
But the problem came when I hosted this WCF Service in the Production Server.
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 had <serviceMetadata httpGetEnabled="true"/> in the web.config. but still I got the error.
I resolved this issues by adding another endpoint 'mex' as below in my web.config.
I Created my WCF Service and it was working properly when i was making its service reference in my local machine.
But the problem came when I hosted this WCF Service in the Production Server.
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 had <serviceMetadata httpGetEnabled="true"/> in the web.config. but still I got the error.
I resolved this issues by adding another endpoint '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 Client Application.
Please try If you face the similar problem.
Happy Coding!
Shailendra Saxena