Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
//1. Let be a service named GBTestXML
[WebService(Namespace="[URL unfurl="true"]http://localhost/GBTestXML/")[/URL]]
public class TestXMLSer : System.Web.Services.WebService
{
[WebMethod (Description="Process DS")]
public DataSet TestDS(DataSet ds)
{
// Alter the received DataSet
ds.Tables[0].Rows[1]["firstname"]="Blablabala";
// Send Back the DataSet
return ds;
}
}
//2. Add the GBTextXML web service as Reference in your web form application or windows form application.
//3. Let be "Button1" a button on the form and the next handler will pass a XML file to the GBTextXML service and the service returns some data.
public class WebForm1 : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Button Button1;
private void Button1_Click(object sender, System.EventArgs e)
{
DataSet ds = new DataSet();
ds.ReadXml("myfile.xml");
TestXMLSer ser = new TestXMLSer ();
ds = ser.TestDS(ds);
ds.WriteXml("myfile.xml");
//
}
}