Solved

Save a XML file through http/ftp

Posted on 2004-03-24
3
476 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
ID: 10671143
0
 
LVL 11

Expert Comment

by:YohanShminge
ID: 10671164
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
ID: 10671181
It appears I spoke too soon.  I believe EDDYKT's method is quite a bit easier!
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Determine Range to Select 5 48
Access Object Property from VBA Module in Excel 2010 2 31
Message not shown 5 49
Formula problem with Excel attachment 6 26
There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

786 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