I understand the .NET stuff has Add-> Web Reference capability built in, where you simply supply the WSDL URL to the wizard but is there any way to do create a Web Reference in Visual Basic 6?
...if not, how can I do this using another method in Visual Basic 6?
Basically, the 3rd party company we wish to interact with has given us the WSDL URL, and two methods - sendRequest() and getResponse().
What about the following with the Inet control:
VB Code:
Dim PostData As String Dim Headers As String Inet1.Protocol = icHTTPS Inet1.RemoteHost = "companywebsite.com" Inet1.RemotePort = 443 Inet1.Document = "/stspost" Inet1.UserName = "userID" Inet1.Password = "password" PostData = "sendRequest=REQUEST GOES HERE (FIXED-LENGTH TEXT)" Headers = "Content-Type: application/x-www-form-urlencoded" & vbCrLf Inet1.Execute , "Post", PostData, Headers
Thanks for any help you guys can give!




Reply With Quote