Anirudha Gupta
Anirudha Gupta

Reputation: 9299

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 a "405 Method Not Allowed" error. How can I allow this call from anywhere without any authentication?

Upvotes: 3

Views: 1111

Answers (4)

Exitos
Exitos

Reputation: 29750

Please run firebug and have a look at what is attempting to be posted and then set a breakpoint on your svc code...

Upvotes: 1

MattC
MattC

Reputation: 4014

Is your webserver set to only accept https requests? Making a request using http when the resource requires https can result in a 405.

Upvotes: 0

amelvin
amelvin

Reputation: 9061

Sounds like the web server is not correctly setup for wcf there are some settings documented on MSDN that may help.

Upvotes: 1

arthur86
arthur86

Reputation: 531

For disable authentication, you have to cahnge setting of your Web Server (IIS for examble). For your web site you have to enable Anonymous Authentication.

Try to open the URI "http://localhost:54507/Service1.svc" on your browser.

Upvotes: 1

Related Questions