E
E
e1s2015-10-16 14:14:26
ASP.NET
e1s, 2015-10-16 14:14:26

How to upload xml file to web page?

There is an aspx page, I need to send it an xml file and get a response. How to implement this? Something like this
xmlResponse = LoadXML(patch, xmlRequest);

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Mike, 2015-10-16
@Goodilla

You can design a WCF service or use a library to handle the ServiceStack. It can be found on Nuget.
There is also an option to write a simple handler that will catch any requests. The first option is easier, in my opinion.
If there were more details on the task, it would be possible to give a more detailed answer.

R
Roman, 2015-10-17
@yarosroman

ASP.NET WebAPI is all.

A
Aram Aramyan, 2015-10-20
@GreenBee

Actually, both XmlDocument and XmlTextReader can load by URL (and not just by local path:
https://msdn.microsoft.com/ru-ru/library/875kz807(...
https://msdn.microsoft.com/ ru-ru/library/1af7xa52(...
If you need XML as a string, then you need to use the System.Net.WebClient class
https://msdn.microsoft.com/ru-ru/library/system.ne.. .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question