We need to know if the PVXWebServer is setup properly, as I am having doubts that it is. The directory listener is working just fine, but the webserver is NOT working even with Tim Plottner’s sample program provided. The response we are getting is attached.
What I need to be able to do, is envoke a program similar to what is seen below and it SHOULD work. I can get the response of what the directory contains, but then again, that is NOT what I need. I do need a contact person who has made the product work in order to bounce an idea or two their way. The demonstration video does use the web server, but I didn’t see it getting setup, just working.
Protected Sub AnotherTry()
Dim sendURL As New Uri("
devsvr1.corp.spisafety.com:4500") Dim request As HttpWebRequest = WebRequest.Create(sendURL)
Dim context As String = System.IO.File.ReadAllText(Server.MapPath("PriceCheck.xml"))
Dim byteData() As Byte
Dim postStream As Stream = Nothing
request.Method = "POST"
request.Accept = "*.*"
request.KeepAlive = True
request.ContentType = "text/xml"
byteData = UTF8Encoding.UTF8.GetBytes("context=" & HttpUtility.UrlEncode(context))
request.ContentLength = byteData.Length
postStream = request.GetRequestStream()
postStream.Write(byteData, 0, byteData.Length)
Dim response As HttpWebResponse = request.GetResponse()
Dim reader As StreamReader = New StreamReader(response.GetResponseStream())
Dim str As String = reader.ReadLine()
litResponse.Text = String.Empty
Do While str IsNot Nothing AndAlso str.Length > 0
litResponse.Text = litResponse.Text & "
" & str
str = reader.ReadLine()
Loop
postStream.Close()
response.Close()
End Sub