Solved

Save a XML file through http/ftp

Posted on 2004-03-24
3
488 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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
Publisher:   Unknown     VB.exe Application 1 32
Fastest way to find and count same items VB6 16 62
Macro problems with Excel file 6 52
Modify Text File with Excel Macro 13 51
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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 …

751 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