This is my first post in this forum.
I am writing a small module for my company that send XML data to a gateway (Asp page) and get the response in XML format
I have to send the data (request) in XML format to a web site and need to get the response for the request
First I tried with Webclient (System.Net.WebClient) with following codes
Expand|Select|Wrap|Line Numbers
- Client.UploadFile("http://sample_site/upload.aspx", @"C://Regsitering_Data.xml");
- Client.DownloadFile("http://sample_site/downloaddata.aspx","C:\\Responses.asp")
I know that I am doing wrong. I tried with HttpWebRequest and HttpWebResponse, but I dont know how to post XML data into the with using
HttpWebRequest
Please help me on this. Is there any way that I can send a request to website along with XML data