WCF REST Service returns HTTP 400 Bad Request
问题 I've been trying to create a simple WCF RESTful web service, but it seems to work only in SOAP mode. I'm hosting my service with the local IIS. It looks really standard: [ServiceContract] public interface IMyService { [OperationContract] Guid Login(string username, string password); ... and: public class MyService : IMyService { [WebGet(UriTemplate = "login?user={user}&password={password}", BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json)] public Guid Login(string