Skip to Content
0
Aug 31, 2020 at 02:40 AM

SAP B1 Service Layer with Angular to post

179 Views

Hi All,

I am trying to create employee master data using service layer:

   SignUp =(formdata): Observable<any> =>
    { 
        let body = JSON.stringify(formdata);
        var url=this.actionUrl+'/EmployeesInfo';
        let options = {
            withCredentials: true
         }
         return this._http.post(url,body,options); 
    }

Error: 400 Bad Request: Invalid login credential.

Before calling SignUp function, i am calling Login service also.

But i don't understand , why it is giving Invalid login credential error.

Please help me out