Sending XML Soap Messages, C#
-
am writing an app that uses the .Net classes TCPClient and NetworkStream to read and write data between 2 machines. All works fine. I have recently found a need to be able to send Http 1.1 with a SOAP message as the Http body. Currently i am using an XmlDocument to load and parse the SOAP data. However to do this i first have to read in the HTTP header, search for the beginning of the body and construct my own XmlDocument. There must be a better way. I don't want to call a web service, i just want to send http with a soap body and receive the same. I am looking for a means of loading in the NetworkStream into some kind of HTTP object to read the http stuff and also load the body into some simple Soap object that can be used to pull out/ set values. Comments, Suggestions Welcomed. Carl
-
am writing an app that uses the .Net classes TCPClient and NetworkStream to read and write data between 2 machines. All works fine. I have recently found a need to be able to send Http 1.1 with a SOAP message as the Http body. Currently i am using an XmlDocument to load and parse the SOAP data. However to do this i first have to read in the HTTP header, search for the beginning of the body and construct my own XmlDocument. There must be a better way. I don't want to call a web service, i just want to send http with a soap body and receive the same. I am looking for a means of loading in the NetworkStream into some kind of HTTP object to read the http stuff and also load the body into some simple Soap object that can be used to pull out/ set values. Comments, Suggestions Welcomed. Carl