Using the the code (below), I am able to establish a session and FTP files to a unix server. However, when this program is called from within MQSeries (via a trigger mechanism), I get the error message: "A connection with the server could not be established".
Any ideas ?
CInternetSession sess(_T("MyProgram/1.0"
);
CFtpConnection* pConnect = NULL;
try
{
pConnect = sess.GetFtpConnection(hostname,_T("user"
,_T("user02"
);
BOOL put_success = pConnect->PutFile(file1,file2);
......
}
catch (CInternetException* pEx)
{
TCHAR sz[1024];
pEx->GetErrorMessage(sz, 1024);
printf("ERROR! %s\n", sz);
pEx->Delete();
}
Any ideas ?
CInternetSession sess(_T("MyProgram/1.0"
CFtpConnection* pConnect = NULL;
try
{
pConnect = sess.GetFtpConnection(hostname,_T("user"
BOOL put_success = pConnect->PutFile(file1,file2);
......
}
catch (CInternetException* pEx)
{
TCHAR sz[1024];
pEx->GetErrorMessage(sz, 1024);
printf("ERROR! %s\n", sz);
pEx->Delete();
}