The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:




Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> HP Functional Testing / Mercury QuickTest Pro / QTP

Pages: 1
Shrikant_Khadilkar
Member


Reged: 03/13/10
Posts: 118
Error Using WinHttp.WinHttpRequest.5.1
      #629645 - 06/07/10 05:32 PM

I am using the WinHttp.WinHttpRequest.5.1 to invoke a webservice and get the reponse text.

Here is what the code looks like
Code:

Set WebSrvc = CreateObject("WinHttp.WinHttpRequest.5.1")
WebSrvc.Open "POST", sWebServiceURL , False
WebSrvc.SetRequestHeader "Accept-Encoding","gzip,deflate"
WebSrvc.SetRequestHeader "Content-Type","text/xml;charset=UTF-8"
WebSrvc.SetRequestHeader "Authorization","SOME VALUE "
WebSrvc.SetRequestHeader "Host","test.myorg.com"

Const ForReading = 1
Set FS= CreateObject("Scripting.FileSystemObject")
Set File = FS.OpenTextFile ("C:\req1.txt",ForReading)
FileContent = ""
FileContent = FileContent & File.ReadAll

WebSrvc.Send FileContent




However when i execute the line

Code:

WebSrvc.Send FileContent



i get the following error
Code:

-2147012851
The certificate authority is invalid or incorrect



has anyone encountered this before ?


Post Extras: Print Post   Remind Me!   Notify Moderator  
Shrikant_Khadilkar
Member


Reged: 03/13/10
Posts: 118
Re: Error Using WinHttp.WinHttpRequest.5.1 [Re: Shrikant_Khadilkar]
      #629786 - 06/08/10 02:07 PM

Bringing to Top.

Edited by Shrikant_Khadilkar (06/08/10 03:12 PM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 48 anonymous users are browsing this forum.

Moderator:  IanFraser, Rajkumar_Rajangam, thorwath, TReddy, AJ, Tarun Lalwani, mwsrosso 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 3213

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5