using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace ws_java_ee5_jboss_client { public partial class frmWsClient : Form { private DateServiceProxy.DateService ds; public frmWsClient() { InitializeComponent(); txtEndpoint.Text = "http://127.0.0.1:8080/java-ee-test-java-ee-test-ejb/DateServiceImpl"; try { ds = new DateServiceProxy.DateServiceClient(); } catch (Exception e) { txtWsResult.Text = e.Message; } } private void btnConsumir_Click(object sender, EventArgs e) { try { txtWsResult.Text = ds.getDate(); } catch (Exception ex) { txtWsResult.Text = ex.Message; } } } }