Discussion Locked

xml

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am not too familiar with xml so hopefully I can get some help on this particular dilemma. I need to set up an IIS with SSL so a client can post xml scripts to it. The xml scripts will then be downloaded and imported to my application. The IIS and the import of the scripts is not the problem. I don't know how to set it up so the client can posts the scripts to my IIS. Any detailed suggestions and help is appreciated!

9 replies

by jay eckles

It sounds like that for your purposes, setting up an FTP or SCP site would be a much better choice than setting up a web site. But, if for whatever reason you're stuck with IIS, then what you need to do is write an ASP, CGI, or Java servlet that will accept HTTP file uploads. Since you're on IIS, obviously ASP is the easiest way to go, and there are tons of file upload examples in ASP. An example of one pure ASP solution can be found here:
http://www.asp101.com/articles/jacob/scriptupload.asp
(remember to remove spaces from URL).

There's no reason this shouldn't work over an SSL connection. You might want to put the upload script in a secured (password protected) directory so that random people can't upload files to your web server.

Comment if you need more details.

Jay Eckles
www.jayeckles.com

by paul

Thank You for the answer but I need information on creating asp pages to receive xml posts

by paul

where can I find information on creating an asp page to receive xml posts

by jay eckles

What's wrong with the link I provided in my original answer (http://www.asp101.com/articles/jacob/scriptupload.asp)? It seems pretty straightforward to me (but maybe that's because I've done it before). It shows you how to accept a file upload with only ASP. Then you just create a form with an input type=file, and the user will get a "Browse" button to locate the XML file, then when they hit submit, it's uploaded to your server. There's no difference between an XML file and any other kind of file.

Jay Eckles

PS - copying and pasting the contents of the XML file into a textarea as the previous poster describes will also work.

by paul

Thanks for the answer again Jay but the page is not meant for users to be able to browse and upload one file. The client is going to posts a multitude of xml scripts on to this site in which I will import and convert the scripts into my software application.

This discussion is closed to new replies.