title: Consuming WCF service in VB application
body: <p>Correct me If I am doing wrong,</p>
  
  <p>I have just started to check WCF services so have created a sample WCF service application with two methods IService</p>
  
  <pre><code> [ServiceContract]
  public interface IService1
  {
  
      [OperationContract]
      string GetData(int value);
  
      [OperationContract]
      CompositeType GetDataUsingDataContract(CompositeType composite);
  
      // TODO: Add your service operations here
  }
  </code></pre>
  
  <p>And wanted to consume this service in VB application so added my service using 
  Servicereference>>Advanced>>AddWebreference </p>
  
  <p>after that trying to call the method in the service on a simple button click in VB form </p>
  
  <pre><code>   Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As    
     System.EventArgs) Handles Button1.Click
      Dim client As New localhost.Service1
      client.GetData(10, True)
  End Sub
  </code></pre>
  
  <p>But when am trying to execute the button click am getting the TimeOut Exception..
  Can some one assist me on what am I doing wrong.</p>
  
  <p>Thanks</p>