0
调用WCF服务的角码之下。在当地Angular2调用WCF服务失败
'http://localhost:34244/CitizenService.svc/register'
public customLogin(user: string, pass: string): Observable<string> {
let headers = new Headers({ 'Content-Type': 'application/json' });
let options = new RequestOptions({ method: "POST",headers: headers,body: user});
return this.http.post(this.url, user, options)
.map(this.extractData)
.catch(this.handleError);
}
WCF服务的URL;
它以405错误失败。
任何人都知道可能是什么问题?