134
Views
1
Comments
Solved
When to use SetWebReferenceCredentials
Question

Hi,


I need to use the SetWebReferenceCredentials action in the EnhancedWebReferences extension to set basic authentication on my SOAP services.


Can I call this action once for each web reference at logon and have those credentials persist for the entire users session or do I have to call SetWebReferenceCredentials before each call to the service?


Thanks

2019-09-30 07-35-56
Aurelio Junior
Solution

Hi,

The credentials will persist only during the request where the action was invoked. So if you need to use the same credentials on all requests, you will have to invoke the action each time.

A good alternative might be to wrap the webservice call in an action that takes care of all the necessary logic that can then be reused.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.