Forum Discussion

smecham's avatar
smecham
New Contributor
14 years ago

Functional Testing Webservices with Basic Auth

I am setting up tests for webservices and some of these webservices are hosted on servers that require the use of a user and password using Basic Authorization.  When I attempt to execute my tests I am receiving a Unauthorized (401) error on my webservice call.  I have searched the help files and these forums and haven't found a solution to my problem.  If anyone could point me in the right direction I would appreciate it.



Thanks,



Shad Mecham

Progrexion

1 Reply


  • Hi Shad,





    Unfortunately, the Web Services testing feature does not support authentication at the moment. We have a corresponding suggestion in our database, and your request has increased its rating.





    If you cannot disable authentication for the service, as a workaround, you can make use of the MSXMLHTTP object. However, in this case, you will have to prepare outgoing requests and parse responses manually in a script. You can find some information on this approach here:

    http://www.sqaforums.com/showflat.php?Cat=0&Number=352016&page=0&fpart=all&vc=1&nt=2