Solved

Save a XML file through http/ftp

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem to start Neon 20 120
recursion example 16 141
fso.FolderExists("\\server\HiddenFolder$") 4 78
Fastest way to find and count same items VB6 16 26
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
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…

828 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