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錯誤失敗。
任何人都知道可能是什麼問題?