Solved

Save a XML file through http/ftp

Posted on 2004-03-24
3
449 Views
Last Modified: 2013-11-13
I have the following code:

    Dim xmlDoc As MSXML2.DOMDocument
    Dim blnSuccess As Boolean
   
    Set xmlDoc = New MSXML2.DOMDocument
   
    xmlDoc.async = False
    blnSuccess = xmlDoc.Load(WebServiceName)
   
    xmlDoc.save PathXMLFile
   
    ReadXMLFromWebService = blnSuccess

This saves a XML to local disk just fine.
The thing is that I want to save the file to another web server through http or ftp.
Giving the PathXMLFile such path I get an error.
How can I do this?
Thanks.
0
Comment
Question by:pmanso
  • 2
3 Comments
 
LVL 26

Accepted Solution

by:
EDDYKT earned 500 total points
Comment Utility
0
 
LVL 11

Expert Comment

by:YohanShminge
Comment Utility
I assume the server is not on a local area network.  If it were, then this would be easy - you would specify the path to the server like: \\server\sharename.  However, I don't think that's what you mean.  I would say the easiest way, though not necessarily the fastest, would be to use FTP.  You will have to add a Winsock control to your form, and you'll have to create quite a bit of code.  Here is an example of an FTP client: http://www.vbip.com/protocols/ftp/vb-ftp-client-library/tutorials/tutorial-04.asp
0
 
LVL 11

Expert Comment

by:YohanShminge
Comment Utility
It appears I spoke too soon.  I believe EDDYKT's method is quite a bit easier!
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article will show, step by step, how to integrate R code into a R Sweave document
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now