title: consuming web service in WPF
body: <p>i want to use a web Service(WSDL) in my WPF App.</p>
  <p>i have add it as a Service Reference to my app.</p>
  <p>Code to call it is as :</p>
  <pre><code>ServiceReference1.WebService_ISB_SAB_Interface_ExtSoapClient soap = 
      new ServiceReference1.WebService_ISB_SAB_Interface_ExtSoapClient();
  
  ServiceReference1.Request requestObj = new ServiceReference1.Request();
  requestObj.UserID = &quot;1001002_S1234534H&quot;;
  requestObj.DomainName = &quot;XXXX&quot;;
  requestObj.MessageContent = &quot;&lt;PcpsChronicBalanceEnquiry&gt;&quot; +
                              &quot;&lt;Request&gt;&quot; +
                              &quot;&lt;PatientNric&gt;S1234534H&lt;/PatientNric&gt;&quot; +
                              &quot;&lt;Year&gt;2015&lt;/Year&gt;&quot; +
                              &quot;&lt;BillType&gt;C&lt;/BillType&gt;&quot; +
                              &quot;&lt;/PcpsChronicBalanceEnquiry&gt;&quot;;
  
  var ss = soap.Operation_1(requestObj);
  </code></pre>
  <p>But i dint get any response.</p>
  <p>App.Config</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;
  &lt;configuration&gt;
  &lt;startup&gt; 
      &lt;supportedRuntime version=&quot;v4.0&quot; sku=&quot;.NETFramework,Version=v4.5&quot; /&gt;
  &lt;/startup&gt;
  &lt;system.serviceModel&gt;
      &lt;bindings&gt;
          &lt;basicHttpBinding&gt;
              &lt;binding name=&quot;WebService_ISB_SAB_Interface_ExtSoap&quot;&gt;
                  &lt;security mode=&quot;Transport&quot;&gt;
                      &lt;transport clientCredentialType=&quot;Windows&quot; /&gt;
                  &lt;/security&gt;
              &lt;/binding&gt;
              &lt;binding name=&quot;WebService_ISB_SAB_Interface_ExtSoap1&quot; /&gt;
              &lt;binding      name=&quot;ISB_SAB_Orchestration_Orchestration_1_Port_SAB_RequestSoap&quot; /&gt;
          &lt;/basicHttpBinding&gt;
      &lt;/bindings&gt;
        
      &lt;client&gt;
          &lt;endpoint address=&quot;https://u103-vw-bzap01.tst.cleo.sg:9320/ws/ISB_SAB_Interface_Ext_Proxy/ISB_SAB_Interface_Ext.asmx&quot;
              binding=&quot;basicHttpBinding&quot; bindingConfiguration=&quot;WebService_ISB_SAB_Interface_ExtSoap&quot;
              contract=&quot;ServiceReference1.WebService_ISB_SAB_Interface_ExtSoap&quot;
              name=&quot;WebService_ISB_SAB_Interface_ExtSoap&quot; /&gt;
          &lt;endpoint address=&quot;http://192.168.9.34/ISB_SAB_Interface_Proxy/ISB_SAB_Orchestration_Orchestration_1_Port_SAB_Request.asmx&quot;
              binding=&quot;basicHttpBinding&quot; bindingConfiguration=&quot;ISB_SAB_Orchestration_Orchestration_1_Port_SAB_RequestSoap&quot;
              contract=&quot;ServiceReference2.ISB_SAB_Orchestration_Orchestration_1_Port_SAB_RequestSoap&quot;
              name=&quot;ISB_SAB_Orchestration_Orchestration_1_Port_SAB_RequestSoap&quot; /&gt;
      &lt;/client&gt;
  &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>it throws exception as</p>
  <blockquote>
  <p>&quot;An unhandled exception of type 'System.ServiceModel.EndpointNotFoundException' occurred in mscorlib.dll</p>
  <p>Additional information: There was no endpoint listening at <a href="https://u103-vw-bzap01.tst.cleo.sg:9320/ws/ISB_SAB_Interface_Ext_Proxy/ISB_SAB_Interface_Ext.asmx" rel="nofollow noreferrer">https://u103-vw-bzap01.tst.cleo.sg:9320/ws/ISB_SAB_Interface_Ext_Proxy/ISB_SAB_Interface_Ext.asmx</a> that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.&quot;</p>
  </blockquote>
  <p>Please help to resolve.</p>