File eXchange Protocol

[url]http://en.wikipedia.org/wiki/File_eXchange_Protocol[/url]

[table]
|File eXchange Protocol (FXP) and (FXSP) is a method of data transfer which uses the FTP protocol to transfer data from one remote server to another (inter-server) without routing this data through the client's connection.|
[/table]

[url]https://wmusers.com/forum/showthread.php?t=18491[/url]

[table]
|Consider using the proxy command. This command is not supported by all FTP servers, but see if yours support it.|
||
|It works kinda like this:|
|1) Login to your source FTP server|
|2) Issue a proxy open <target server>. You can do this using the quote service.|
|3) Issue a proxy user <username> <password>|
|4) Issue a proxy put <source server filename> <target server filename>|
||
|This way you transfer the file directly from one FTP server to another without having to worry about consuming resources on the webMethods server.|
||
|Good luck,|
|Percio |
[/table]


[table]
|The steps for using IS to transfer the file:|
||
|1. Login to the source FTP server (A).|
|2. Use get to retrieve the file from A. Specify 0 for the largefilethreshold and null for localfile. This will write the content to a temporary file and return an input stream.|
|3. Logout of A.|
|4. Login to the target FTP server (B).|
|5. Use put to put the file to B. Pass the stream returned by the get in step 2.|
|6. Close the stream (just to be safe in case put doesn't do so).|
|7. Logout of B.|
|8. Remove/archive the temp file--I'm not sure if IS automatically deletes the file on close. If it doesn't, then you'll want to use an explicit dynamic filename in the get in step 2 so you can move/delete it later.|
||
|Of course check errors after each step.|
||
|Be sure to use transfermode set to binary if appropriate (usually the case).|
|__________________|
|-Rob|
|http://reamon.squarespace.com|
[/table]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值