Hi
i am reciving XML File and trying to send a rspone to it my code is:
string sProcess = "";
XmlDocument objXML = new XmlDocument();
DateTime NowD = DateTime.Now;
String DateD = NowD.ToString("yyyy-MM-ddThhmmss");
try
{
sProcess = "Load XML";
objXML.Load(Page.Request.InputStream);
objXML.Save(@"D:\Payment-" + DateD + ".xml");
objXML.Load(Request.InputStream);
XmlNode rootNode = objXML.DocumentElement;
XmlAttribute StoreIDXml = rootNode.Attributes["Main"];
XmlNodeList PartnerXML = objXML.GetElementsByTagName("Sender");
XmlNodeList ItemXML = objXML.GetElementsByTagName("Receiver");
Response.StatusCode = 200;
Response.StatusDescription = "OK";
Response.ContentType = "text/xml";
Response.ContentEncoding = Encoding.UTF8;
objXML.Save(Page.Response.OutputStream);
}
catch (System.Xml.XmlException ex)
{
Response.StatusCode = 500;
Response.StatusDescription = "Process: " + sProcess + " - " + ex.Message;
Response.ContentType = "text/plain";
Response.Write("HTTP Error " + Convert.ToString(Response.StatusCode) + ": Process: " + sProcess + " - " + ex.Message);
}
finally
{
objXML = null;
}
i'm saving the document with no problems but there is no response going out ... where it is the problem ... any help please ..