Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UFT:A connection with server could not be established with xml objects
#1
Not Solved
Hi,

I am using DOM objects to get Json response from UFT GUI test instead of using add-ins. But I am getting error. URL contains HTTPS protocol.
...............................................................................................................................
Error : "-2146697202 . A security problem occurred" is displayed with below code.
Set oHttp=CreateObject("MSXML2.XMLHTTP")
oHttp.Open "GET",strURL,false
oHttp.Send
...............................................................................................................................
Error : "-2147012867 . A connection with server could not be established" is displayed with below code.
Set oHttp=CreateObject("MSXML2.SERVERXMLHTTP.6.0")
oHttp.Open "GET",strURL,false
oHttp.Send
...............................................................................................................................
Alternative approach: 
I tried to open the url from UFT editor manually for the first time, it prompted with certificate popup and after proving the password , got JSON response successfully. Now, if I try to run any of the above codes, I am getting response. Not sure what was the reason why its not asking for certificate prompt for first time.

Can anyone please help me on this?

Thanks in advance!!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  DevExpress v15.2 Objects are not identified using UFT 14.53 diwakar 0 1,449 11-19-2019, 06:26 PM
Last Post: diwakar
  UFT doesn't recognize SAP objects when it's openned by portal DevRenanGaspar 0 2,513 09-28-2017, 07:41 PM
Last Post: DevRenanGaspar
Exclamation Oracle Objects not identified by UFT 12.02 Deepnara 0 2,247 08-21-2017, 05:32 PM
Last Post: Deepnara
  UFT not recognizing Java Objects/ Elements YogeshCallappa 0 3,390 11-08-2016, 02:44 PM
Last Post: YogeshCallappa
Question JDBC connection for UFT Anjali09 0 3,667 10-05-2016, 02:19 PM
Last Post: Anjali09

Forum Jump:


Users browsing this thread: 1 Guest(s)