I have gone through some topics and was able to call a service in vb6 by using the following code:
Dim sUrl As String
Dim response As String
Dim xmlHttp
Private Sub Form_Load()
sUrl = "http://abc.com/services/abc.svc"
Set xmlHttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlHttp.Open "POST", sUrl, False
xmlHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xmlHttp.send
Dim response As String
response = xmlHttp.responseText
Set xmlHttp = Nothing
End Sub
The question is how do i call a WCF service in vb6 and pass params to its methods and get the results?