Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using XML with Visual Basic 1

Status
Not open for further replies.

tekomni

Programmer
Nov 25, 2002
40
US
Hello:

I can currently send/receive XML from VB using the MSXML 3.0 objects. But I am unable to post XML over HTTPS using this method.

Any ideas on how to connect using HTTPS/SSL when posting XML as opposed to the unsecure HTTP?

Thanks a lot.
 
It's no different from sending text data over HTTP -- you just have a different URL that has some security/certificate stuff that happens before you send your data. It's all transparent to your code.

I would try and simplify things to find why you are unable to send over HTTPS. Perhaps just send a "hello" string over the connection first. If that doesn't work, you probably aren't really connecting, and I would troubleshoot that.

Chip H.
 
Chiph:

I tried what you posted. Just sending a hello string to the URL but that failed as well. If I use HTTP it works just fine but it's only when I use HTTPS I have a problem. The method "send" fails when trying to send the data.

I tried to use the "status" property of the XMLHTTP object but when I call it I get "an unspecified error has occurred" so I dont know how to troubleshoot it.

Thanks for any suggestions.
 
I figured this out and thought Id post it for anyone else who comes across this thread: I was attempting to use the XMLHTTP object but actually (for HTTPS), you need to use the ServerXMLHTTP object which is also contains in XML 3.0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top