Web service connection fails invalid client error

Thank you all for replies and suggestions.

We were able to fix this issue, steps followed are:

  1. Selected Authentication type as custom authentication in connection settings. Filled user name, password, baseURL, client id, secret

  2. Added custom authentication in http operations, provided token url. In body Raw settings, as per below screenshot.