Exemplo n.º 1
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     ServiceReference1.Service1Client ob = new ServiceReference1.Service1Client();  //creating the service reference object for mapping the Verification service
         string xmltextbox = TextBox1.Text;   //textbox holding the XML url
         string xsdtextbox = TextBox2.Text;   //textbox holding the XSD url
         if(xmltextbox == "" || xsdtextbox =="")
         {
             Label3.Text = "Please enter data";  //label to display the value when no url is entered
             Label3.Visible = true;
         }
         else
         {
             Label3.Text = ob.verify(xmltextbox, xsdtextbox);   //label to display the validation value
             Label3.Visible = true;
         }
 }