-
xml in vb.net
in vb 6 i used the msxml2.dll to post xml documents to a server and received the response back.
how do i go about doing that in vb.net? there is a wealth of new things in vb.net and im sure that it is quite easy but i dont really know where to look.
here is how my code looks in vb 6:
[CODE]
Private xmlHttp As New MSXML2.XMLHTTP40
Private xmlDocReq As New MSXML2.DOMDocument40
Private xmlRoot As MSXML2.IXMLDOMElement
Dim xmlItem As MSXML2.IXMLDOMElement
Dim xmlItemChild As MSXML2.IXMLDOMElement
xmlDocReq.async = False
xmlDocReq.loadXML("my xml document")
xmlHttp.open("POST", "http://ip address", False)
xmlHttp.setRequestHeader("HOST", "host")
xmlHttp.setRequestHeader("User-Agent", "Ingenico/1.00")
xmlHttp.setRequestHeader("Content-Type", "application/xml")
xmlHttp.send(xmlDocReq.xml)
[CODE]
this does work in vb.net if i reference the msxml2.dll but i am sure there must be a way from within vb.net. im also trying to put this in a web service but by using the code above, it just hangs on the xmlHttp.send part and does not return my xml response.
any help would be very appreciated.
thank you
Similar Threads
-
By vega in forum VB Classic
Replies: 0
Last Post: 11-07-2005, 03:52 PM
-
By Randy Charles Morin in forum XML
Replies: 5
Last Post: 07-19-2002, 04:21 AM
-
Replies: 3
Last Post: 06-15-2002, 01:10 PM
-
By CHRISTOS STAVRINOU in forum Database
Replies: 0
Last Post: 11-16-2000, 04:56 PM
-
By Extensibility in forum web.announcements
Replies: 0
Last Post: 07-20-2000, 06:20 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|