I think something like this might work for you:
/// <summary>
/// Sends an xml document over http, and returns the xml server response
/// </summary
public XmlDocument SubmitDocument(XmlDocument xDoc, string URL)
{
try
{
// get the data from the xml document into a byte stream
Byte[] bdata = System.Text.Encoding.ASCII.GetBytes(xDoc.OuterXml) ;
// instantiate a web client
System.Net.WebClient wc = new System.Net.WebClient();
Byte[] bresp;
// add appropriate headers
wc.Headers.Add("Content-Type","text/xml");
// send data to server, and wait for a response
bresp = wc.UploadData(URL, bdata);
// read the response
string resp = System.Text.Encoding.ASCII.GetString(bresp);
XmlDocument xresp = new XmlDocument();
xresp.LoadXml(resp);
// return the xml document response from the server
return xresp;
}
catch
{
// your error handler
SystemError();
}
}
"BuddyWork" <an*******@discussions.microsoft.com> wrote in message
news:36****************************@phx.gbl...
Hello,
I want to send a XML message (string) to an ASP.net page,
I don't want to use WebService because the ASP.net page
has been developed by an external company, can you please
point me to the correct location for examples on how to
send XML messages to an ASP.net page using C#.
Thanks,