I'm new to object oriented programming so I just need help on the basics here. I have an xml string that I've tested in a separate program and is able to communicate with my soap server correctly. I'm trying to add a request in Visual Basic 2008 to essentially take the soap string, send it as an http POST, and display the xml that is returned. I basically have every part figured out (I think) except I don't know how to apply the actual SOAP string to the request.
Below is a sample of what I'm doing, I realize it's not the correct way to work with XML as it's totally unscalable but I just need to get the basics working for now and I will code it correctly later. (I'm in a time crunch and don't have enough .net experience to do it right yet)
'dim soap request strings
Dim TestEndPoint As String
TestEndPoint = "http://SoapEndPoint/bla/bla/bla"
Dim SOAPRqst As String
SOAPRqst = "comfirmed_Working_Soap_String_Goes_Here"
' create the request object
Dim wR As WebRequest = WebRequest.Create(TestEndPoint)
' Get the response.
Dim response As HttpWebResponse = CType(wR.GetResponse(), HttpWebResponse)
' Display the status.
MsgBox(response.StatusDescription)
' Get the stream containing content returned by the server.
Dim dataStream As Stream = response.GetResponseStream()
' Open the stream using a StreamReader for easy access.
Dim reader As New StreamReader(dataStream)
' Read the content.
Dim responseFromServer As String = reader.ReadToEnd()
' Display the content.
MsgBox(responseFromServer)
' Cleanup the streams and the response.
reader.Close()
dataStream.Close()
response.Close()