How can I call the WCF service without any authentication?

When I run this in Firefox:

$.post('http://localhost:54507/Service1.svc/IService1.GetData',{
value:1
},function(){
},);

I get the error "405 method not allowed". How to resolve this call from anywhere without any authentication?

+3
source share
4 answers

To disable authentication, you need to configure your web server (IIS for example). You must enable anonymous authentication for your website.

Try opening the URI "http: // localhost: 54507 / Service1.svc" in your browser.

+1
source

It looks like the web server is configured incorrectly for wcf, there are some parameters described in MSDN that may help.

+1
source

firebug , , svc...

+1

Is your web server set up to accept requests only https? Fulfilling a request using httpwhen a resource requires httpscan result in 405.

0
source

All Articles