Ejemplo n.º 1
0
        public PartialViewResult GetPublicInformation()
        {
            CompanyPublicServiceClient client = new CompanyPublicServiceClient("BasicHttpBinding_ICompanyPublicService");
            string information = client.GetPublicInformation();

            return(PartialView("GetPublicInformation", information));
        }
Ejemplo n.º 2
0
 protected void Button2_Click(object sender, EventArgs e)
 {
     CompanyService.CompanyPublicServiceClient publicServiceClient = new CompanyPublicServiceClient("BasicHttpBinding_ICompanyPublicService");
     Label2.Text = publicServiceClient.GetPublicInformation();
 }