Solved

Save a XML file through http/ftp

Posted on 2004-03-24
3
467 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Copy a row 12 58
VB6 - Convert HH:MM into Decimal 8 51
Prevent user closing word document opened with VB6 6 67
Passing a Text Box name to a Sub 6 76
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

920 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

16 Experts available now in Live!

Get 1:1 Help Now