Forum Discussion
AlexKaras
13 years agoChampion Level 3
Hi Praveen,
I had a similar problem and was told by Support that wsdl of web service must include information that the given web service requires authentication. If such information exists in wsdl, then in TestComplete9, in addition to your code, you should be able to write something like this (VBScript):
Set oService = WebServices.<YourWebService>
Set oServiceSecurity = oService.Credentials
oServiceSecurity.UserName.UserName = "Admin"
oServiceSecurity.UserName.Password = "Password"
...
If wsdl does not contain information about required authentication, then the only possible approach for now is to create request manually, like it is described in the http://support.smartbear.com/viewarticle/29074/ help article.
I hope that Support will correct me if I was incorrect at some point (and hope to get their comment).
I had a similar problem and was told by Support that wsdl of web service must include information that the given web service requires authentication. If such information exists in wsdl, then in TestComplete9, in addition to your code, you should be able to write something like this (VBScript):
Set oService = WebServices.<YourWebService>
Set oServiceSecurity = oService.Credentials
oServiceSecurity.UserName.UserName = "Admin"
oServiceSecurity.UserName.Password = "Password"
...
If wsdl does not contain information about required authentication, then the only possible approach for now is to create request manually, like it is described in the http://support.smartbear.com/viewarticle/29074/ help article.
I hope that Support will correct me if I was incorrect at some point (and hope to get their comment).
Related Content
Recent Discussions
- 3 years ago
- 3 years ago
- 4 years ago