lphilippe_macau
12 years agoContributor
Accessing Sharepoint Service
Hi, I'm currently trying to access a sharepoint server through it's webservice in Test Complete.
I have no problem adding the service to the WebServices by pointing it to the WSDL document. I can see the service objects and methods, but I cannot use any of them.
I have tried using credentials to access the service but I keep getting a jscript runtime error.
Here is the code I'm using:
function ServiceSertificate()
{
WebServices.Sharepoint.Credentials.Windows.AllowNtlm = "True";
WebServices.Sharepoint.Credentials.Windows.ClientCredentials.UserName = "username";
WebServices.Sharepoint.Credentials.Windows.ClientCredentials.Domain = "na";
WebServices.Sharepoint.Credentials.Windows.ClientCredentials.Password = "password";
Log.Message(WebServices.Sharepoint.GetListCollection());
}
I keep getting the following error:
La demande HTTP n'est pas autorisée avec un schéma d'authentification client 'Anonymous'. L'en-tête d'authentification reçu du serveur était 'NTLM'
Sorry for the french but this basically translates to : The HTTP request is not authorized with an 'Anonymous" athentification schematic. The authentification header received by the server was 'NTLM'
I'm not sure why this won't work. I have looked at the help and cannot find anything. Does anyone have experience connecting to this kind of service?
Thanks,
Louis-Philippe
I have no problem adding the service to the WebServices by pointing it to the WSDL document. I can see the service objects and methods, but I cannot use any of them.
I have tried using credentials to access the service but I keep getting a jscript runtime error.
Here is the code I'm using:
function ServiceSertificate()
{
WebServices.Sharepoint.Credentials.Windows.AllowNtlm = "True";
WebServices.Sharepoint.Credentials.Windows.ClientCredentials.UserName = "username";
WebServices.Sharepoint.Credentials.Windows.ClientCredentials.Domain = "na";
WebServices.Sharepoint.Credentials.Windows.ClientCredentials.Password = "password";
Log.Message(WebServices.Sharepoint.GetListCollection());
}
I keep getting the following error:
La demande HTTP n'est pas autorisée avec un schéma d'authentification client 'Anonymous'. L'en-tête d'authentification reçu du serveur était 'NTLM'
Sorry for the french but this basically translates to : The HTTP request is not authorized with an 'Anonymous" athentification schematic. The authentification header received by the server was 'NTLM'
I'm not sure why this won't work. I have looked at the help and cannot find anything. Does anyone have experience connecting to this kind of service?
Thanks,
Louis-Philippe