[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
// [System.Web.Script.Services.ScriptService]
public class Service : System.Web.Services.WebService
{
public Service () {
//Uncomment the following line if using designed components
//InitializeComponent();
}
[WebMethod]
public void SaveString(string XMLToSave, string FileName)
{
string dir = @"C:\Inetpub\wwwroot\savefile\testfiles";
string File = dir + @"\" + FileName;
StreamWriter sw = new StreamWriter(File);
sw.Write(XMLToSave);
sw.Close();
}
}
Thank you very much.