Accessing a Web Service with Credentials
Some Web Services require that you access them using HTTP Authentication - using either Basic or Windows Security. To support this the generated Web Service Proxy class contains an HttpLogin method that can be used to pass the required credentials:
loProxy = CREATEOBJECT("WebStoreServiceProxy","V4")
*** Use HTTP level Authentication
loProxy.HttpLogin("user","SuperSeekrit")
loItem = loProxy.GetItem("WCONNECT")
Easy.
Pre-Authentication
You can also set an optional third logical parameter which determines whether pre-authentication is used. When set the proxy will send the authentication with every request following the initial authentication which reduces message overhead in subsequent authenticated requests. Note that this DOES NOT send authentication on the first request prior to hitting the server.
© West Wind Technologies, 2004-2020 • Updated: 09/29/15
Comment or report problem with topic