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.