Micro Focus QTP (UFT) Forums
QTP test webservice Unauthorized - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: QTP test webservice Unauthorized (/Thread-QTP-test-webservice-Unauthorized)



QTP test webservice Unauthorized - guoyang8013 - 09-04-2009

Hi All,
When I use QTP 9.5 to test webservice I met the issus as belowing:

The RetrieveDeviceKeysList operation call failed.
The .NET Framework 2.0 WSE 3.0 toolkit returned the following error:
Exception from: System.Web.Services
The request failed with HTTP status 401: Unauthorized.


This is pop up page
Code:
Set ssr0XML = WebService("ConfigurationManagementService").RetrieveDeviceKeysList(XMLWarehouse("RetrieveDeviceKeysListRequest2"))

The above are the code what I used in QTP, please tell me I should to do in QTP. Thank you very much...
Please give me a help, thank you. I up first....Give your suggestion, it may be a great help for me!


RE: QTP test webservice Unauthorized - Saket - 09-04-2009

Most likely 'HTTP status 401: Unauthorized' is an error through webserver, there is nothing to do with the QTP script.


RE: QTP test webservice Unauthorized - guoyang8013 - 09-04-2009

Hi Saket,

I think we can send the username and pasword get the authorized. I have the username and password. But I donot know how to write the QTP script about sending the username and password...

Thanks
Kobe
Hi Saket,

Thanks for your suggestion, I think it should not be the issue...

Regards,
Kobe