I've been trying with System.Net.WebClient but I'm not sure about what address should use. Here's an example of the code I'm using in a windows form aplication.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
webclient = New WebClient
Dim _address As New Uri(_url)
webclient.OpenWriteAsync(_address, _xml)
End Sub
PabloDFT
0 Points
1 Post
Send XML document to servlet
Apr 03, 2012 11:36 PM|LINK
Hi, please help me with this situation.
I need to reproduce the behavior of this site using asp net:
http://demo2.tourplan.com:8080/iComH2HDemo/conntest.html
I've been trying with System.Net.WebClient but I'm not sure about what address should use. Here's an example of the code I'm using in a windows form aplication.
Private Const _url As String = "http://demo2.tourplan.com:8080/iComH2HDemo/servlet/conn"
Private Const _xml As String = "<?xml version=""1.0""?> " & vbCrLf & _
"<!DOCTYPE Request SYSTEM ""hostConnect_2_77_000.dtd""> " & vbCrLf & _
"<Request> " & vbCrLf & _
"<PingRequest/> " & vbCrLf & _
"</Request> "
Private WithEvents webclient As WebClient
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
webclient = New WebClient
Dim _address As New Uri(_url)
webclient.OpenWriteAsync(_address, _xml)
End Sub