When to use SetWebReferenceCredentials

When to use SetWebReferenceCredentials

  

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

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.

Solution