# Web Services API: Http 401 error

**URL:** <https://discuss.workflowgen.com/t/web-services-api-http-401-error/323>\
**Category:** Web API\
**Created:** [April 15, 2014, 11:05pm UTC](https://discuss.workflowgen.com/t/web-services-api-http-401-error/323 "2014-04-15T23:05:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wfg-admin](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/wfg-admin/32/714_2.png) [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Post date:** [April 15, 2014, 11:05pm UTC](https://discuss.workflowgen.com/t/web-services-api-http-401-error/323/1 "2014-04-15T23:05:03Z")

</div>

### Issue

When trying to call a WorkflowGen web service (`\wfgen\ws\ProcessesRuntime.asmx`), I receive an HTTP `401` error code.

### Solution

The `\wfgen\ws` folder must be secured by using HTTP Basic authentication (secured with SSL if possible). Windows Integrated authentication is not supported.

You can also secure the `\wfgen\ws` folder with a custom HTTP module, which has to support application-to-application authentication (e.g. a form based authentication is not compatible because the web service is called by an another application).
