Click here to Skip to main content
15,887,450 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a WCF WebService having multiple svc files. I call the method in the svc file from vbscript using below code:


ScriptTimeOut = 6000000

Dim soapServer, soapMessage

soapServer = "https://www.emarketyard.in/marketyardwebservice/SchedulerClasses/MailIntimations.svc"

soapMessage = "<s:Envelope xmlns:s=" & GetQuotedUrl("http://schemas.xmlsoap.org/soap/envelope/") & ">" & _
"<s:body>" & _
"<AuctionWinnerSendMail xmlns=" & GetQuotedUrl("http://tempuri.org/") & ">" & _
"" & _
""

soapMessage = Replace(soapMessage, "'", chr(34))

Set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")

xmlhttp.SetOption 2, xmlhttp.GetOption(2)
Dim lResolve,lConnect,lSend,lReceive
lResolve = 5 * 1000
lConnect = 60 * 1000
lSend = 600 * 1000
lReceive = 600 * 1000

xmlhttp.setTimeouts lResolve, lConnect, lSend, lReceive

xmlhttp.open "POST", soapServer, False
xmlhttp.setRequestHeader "Man", POST & " " & soapServer & " HTTP/1.1"
xmlhttp.setRequestHeader "SOAPAction", "http://tempuri.org/IMailIntimations/AuctionWinnerSendMail"
xmlhttp.setRequestHeader "Content-Type", "text/xml; charset=utf-8"

xmlhttp.send(soapMessage)

Function GetQuotedUrl(ByVal value)
GetQuotedUrl = Chr(34) & value & Chr(34)
End Function



The above script gets executed properly when https is not enabled. But as soon as i enable HTTPS, I am getting the following error when the vbscript gets executed "A certificate is required to complete client authentication".

Please can anybody help me, as to how i can resolve this issue.
Thanks in advance

What I have tried:

We have enabled httpsGetEnabled attribute of serviceMetadata to true, but still it gives the same problem.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900