Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I want to write a web application (application A) containing XML file .
This web application will be invoked from an HTTP request (from another application - application B) .

Application A should then send the XML file to Application B and return back to Application A with returned data .

My first task is how do I create the XML - But I'm not sure how I go about doing it ???

using ASP.net???
Posted

1 solution

I am not clear. You are asking about creating XML but you didn't told what sort of data actually XML file will contain. I mean this is this file will be some serialized form of an object used for message passing or it could contain any data that you want to upload. Any how if you do have the XML file and want to post it webapplication you will need to make use of HttpWebRequest and HttpWebResponse. First create some generic handler in you web app and then create and post XML file contents via HttpWebRequest. Process contents in handler and return some suitable desired response. For example codes try googling or use code project search for "Posting Data via HttpWebRequest" keyword.

 
Share this answer
 


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900