Имя: Пароль:
1C
1С v8
Web-сервис и FTP соединение
0 Наська72
 
17.02.14
14:21
Добрый день!

Дано:
Есть web-сервис, в нём через FTP соединение должны скачиваться файлики и сохраняться в 1С.
Есть прокси, указанный в FTP соединении.

Проблема:
Создаю обработку с кодом, скопированным из web-сервиса, все работает, файлы качаются.
При вызове web-сервиса файлики приходят размером 4 кб.
Всё запускается на одном сервере, с одним прокси, под одной и той же учеткой USR1CV82.
4-кбайтовые файлики внутри содержат следующее:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">;
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<style type="text/css"><!--
/*
Stylesheet for Squid Error pages
Adapted from design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
*/

/* Page basics */
* {
    font-family: verdana, sans-serif;
}

html body {
    margin: 0;
    padding: 0;
    background: #efefef;
    font-size: 12px;
    color: #1e1e1e;
}

/* Page displayed title area */
#titles {
    margin-left: 15px;
    padding: 10px;
    padding-left: 100px;
    background: url('http://www.squid-cache.org/Artwork/SN.png') no-repeat left;
}

/* initial title */
#titles h1 {
    color: #000000;
}
#titles h2 {
    color: #000000;
}

/* special event: FTP success page titles */
#titles ftpsuccess {
    background-color:#00ff00;
    width:100%;
}

/* Page displayed body content area */
#content {
    padding: 10px;
    background: #ffffff;
}

/* General text */
p {
}

/* error brief description */
#error p {
}

/* some data which may have caused the problem */
#data {
}

/* the error message received from the system or other software */
#sysmsg {
}

pre {
    font-family:sans-serif;
}

/* special event: FTP / Gopher directory listing */
#dirmsg {
    font-family: courier;
    color: black;
    font-size: 10pt;
}
#dirlisting {
    margin-left: 2%;
    margin-right: 2%;
}
#dirlisting tr.entry td.icon,td.filename,td.size,td.date {
    border-bottom: groove;
}
#dirlisting td.size {
    width: 50px;
    text-align: right;
    padding-right: 5px;
}

/* horizontal lines */
hr {
    margin: 0;
}

/* page displayed footer area */
#footer {
    font-size: 9px;
    padding-left: 10px;
}


body
:lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; }
:lang(he) { direction: rtl; float: right; }
--></style>
</head><body>
<div id="titles">
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
</div>
<hr>

<div id="content">
<p>The following URL could not be retrieved: <a href="ftp://213.174.148.109/5AF02BB1D67F2C25D3499E58AEAD58B0/ffa2d2ef770f490cf2fefe37b80276e4">ftp://213.174.148.109/5AF02BB1D67F2C25D3499E58AEAD58B0/ffa2d2ef770f490cf2fefe37b80276e4</a></p>;

<p>Squid sent the following FTP command:</p>
<blockquote id="data">
<pre>CWD 5AF02BB1D67F2C25D3499E58AEAD58B0
</pre>
</blockquote>

<p>The server responded with:</p>
<blockquote id="sysmsg">
<pre>5AF02BB1D67F2C25D3499E58AEAD58B0: No such file or directory.</pre>
<pre></pre>
</blockquote>

<p>This might be caused by an FTP URL with an absolute path (which does not comply with RFC 1738). If this is the cause, then the file can be found at <a href="ftp://213.174.148.109%2f/5AF02BB1D67F2C25D3499E58AEAD58B0/ffa2d2ef770f490cf2fefe37b80276e4">ftp://213.174.148.109%2f2f/5AF02BB1D67F2C25D3499E58AEAD58B0/ffa2d2ef770f490cf2fefe37b80276e4</a>.</p>;

<p>Your cache administrator is <a href="mailto:root?subject=CacheErrorInfo%20-%20ERR_FTP_NOT_FOUND&amp;body=CacheHost%3A%20ts-tm-proxy01v.techserv.ru%0D%0AErrPage%3A%20ERR_FTP_NOT_FOUND%0D%0AErr%3A%20%5Bnone%5D%0D%0ATimeStamp%3A%20Mon,%2017%20Feb%202014%2010%3A19%3A03%20GMT%0D%0A%0D%0AClientIP%3A%2010.172.30.85%0D%0AServerIP%3A%20213.174.148.109%0D%0A%0D%0AHTTP%20Request%3A%0D%0AGET%20%252f2f%2F5AF02BB1D67F2C25D3499E58AEAD58B0%2Fffa2d2ef770f490cf2fefe37b80276e4%20HTTP%2F1.1%0AAuthorization%3A%20Basic%20c3VlbmNvMWM6RDNnNkJFT1U%3D%0D%0AHost%3A%20213.174.148.109%3A21%0D%0APragma%3A%20no-cache%0D%0AAccept%3A%20*%2F*%0D%0AProxy-Connection%3A%20Keep-Alive%0D%0A%0D%0AFTP%20Request%3A%20CWD%205AF02BB1D67F2C25D3499E58AEAD58B0%0D%0A%0D%0AFTP%20Reply%3A%205AF02BB1D67F2C25D3499E58AEAD58B0%3A%20No%20such%20file%20or%20directory.%0D%0AFTP%20Msg%3A%20%0D%0A%0D%0A">root</a>.</p>;
<br>
</div>

<hr>
<div id="footer">
<p>Generated Mon, 17 Feb 2014 10:19:03 GMT by ts-tm-proxy01v.techserv.ru (squid/3.1.10)</p>
<!-- ERR_FTP_NOT_FOUND -->
</div>
</body></html>


Вопрос проблема в Прокси? Чем отличается работа web-сервиса от тонкого клиента?
1 Наська72
 
17.02.14
14:36
Вопрос снят!
2 sapphire
 
17.02.14
14:37
извращенка :)
3 Наська72
 
17.02.14
14:37
(2) полегче
4 sapphire
 
17.02.14
14:42
(3) куда уж мне :)
5 Torquader
 
17.02.14
14:45
Web-сервис, в котором ftp-соединение - да - кому-то было лень нормальный ftp-proxy настроить вот и решили сделать что-то чрезвычайно выдающееся.
6 Наська72
 
18.02.14
09:15
(5) Кроме ftp-соединение там еще много чего интересного.
7 Torquader
 
18.02.14
12:25
(6) Верю - в мире вообще много всего интересного.
2 + 2 = 3.9999999999999999999999999999999...