当客户端调用RESTful服务时,是否可以在客户端系统上创建HTML文件? HTML文件的内容作为输入传递给服务。
public void GetHTML(string ID, string serviceName, string description)
{
string content = description;
string filename = "id_" + ID.Trim();
string location = @"C:\sd\files\" + filename + ".html";
FileStream file =
new FileStream( location, FileMode.OpenOrCreate, FileAccess.Write);
file.Close();
File.WriteAllText(location, content);
}