This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Soap vs. FTP for file transfer  RSS feed

 
Elizabeth Fairchild
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to transfer pdf files from one application (written in C/C++) to another application (written in Java). I have the option of using SOAP or FTP....what is the best method for file transfer? the pro's and con's of each?

Thanks
-EF
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SOAP:
+ It goes through port 80 (assuming HTTP transport) so you can probably sneak past any existing firewalls on the way
- It's most probably overkill to use SOAP for "just" transferring files
- You need to include a web services engine into your application

FTP:
+ Dead simple
+ It's the standard protocol for transfering files
+ You can get away with very little coding
- FTP is not sexy these days (I had to come up with something for the cons...)
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is another con for FTP
The only control you have over what the receiving party does with it is through the file location and name.
With SOAP you have a whole XML message to communicate with.
A hybrid of FTP to send the file efficiently followed by a SOAP message to say what to do with it would combine the best features.
Bill
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!