You said that you want to do a un-authenticated call ?
So I’m a little lost. You will need to authenticate in advance if you want to invoke a protected API. Do this by creating a login form and then calling a function like the one below
public connect(user: string, passswrd: string): Observable<string> {
const url: string = 'http://localhost:5555/invoke/wm.server/login'
const headers = GLOBALS.headers()
const data = {username: user, password: passswrd}
return this._http.post(url, data, { headers })
.pipe(catchError(error => {
return of(null)
}))
.pipe(map( (responseData: any) => {
if (responseData && responseData.metadata) {
return responseData.metadata.userType
} else {
return null
}
}))
}
#webMethods#Integration-Server-and-ESB