right now I have a web service that writes out a simple text file from a query string. I need the file to be written out to a different server, I think I need to do it with a vitual directory. I've set that up in IIS, but I can't find any examples of how it's accessed in the coding.
FOLDER_PATH below should be pointing to the virtual directory set up but I'm not sure how to do it. Does anyone know of a FAQ or artical or know the answer.
Thanks,
Sara
public class clientXML
{
public const string member_num = "unknown";
public const string EmpLast = "unknown";
public const string FOLDER_PATH = ("C:\\Orderstatus\\TOCXML\\AutoDialer\\");
public static string LoadXML()
{
string LogFile = FOLDER_PATH + "PostLog\\StreamRec.txt";
string myResponse = "";
myResponse = "here";
string empnum="000";
string EmpLast = Request.QueryString("employee_identifier");
string member_num = Request.QueryString("member_number");
string Emp_PATH = FOLDER_PATH + empnum + "\\";
string emp_PATH = Emp_PATH + member_num +".mn";
FileStream fs = new FileStream(emp_PATH, FileMode.CreateNew, FileAccess.Write);
StreamWriter sw = new StreamWriter(fs);
fs.Close();
return myResponse;
}
}
}
FOLDER_PATH below should be pointing to the virtual directory set up but I'm not sure how to do it. Does anyone know of a FAQ or artical or know the answer.
Thanks,
Sara
public class clientXML
{
public const string member_num = "unknown";
public const string EmpLast = "unknown";
public const string FOLDER_PATH = ("C:\\Orderstatus\\TOCXML\\AutoDialer\\");
public static string LoadXML()
{
string LogFile = FOLDER_PATH + "PostLog\\StreamRec.txt";
string myResponse = "";
myResponse = "here";
string empnum="000";
string EmpLast = Request.QueryString("employee_identifier");
string member_num = Request.QueryString("member_number");
string Emp_PATH = FOLDER_PATH + empnum + "\\";
string emp_PATH = Emp_PATH + member_num +".mn";
FileStream fs = new FileStream(emp_PATH, FileMode.CreateNew, FileAccess.Write);
StreamWriter sw = new StreamWriter(fs);
fs.Close();
return myResponse;
}
}
}