Hi,
Well, if your referring to WCF services, please refer to the following blog post:
Pull Not Push. For general information on web services, please refer to the following:
Web Services
Calling Application Example [PULL]:
Please take note that, I assumed that you already created and added the web service to the calling application.
private string _serviceAddress = string.Empty;
private string _baseAddress = "http://localhost:12345/Service1.svc";
private System.ServiceModel.WSHttpBinding _binding;
private System.ServiceModel.EndpointAddress _address;
public void Init()
{
this._binding = new System.ServiceModel.WSHttpBinding();
this._address = new System.ServiceModel.EndpointAddress(this._baseAddress);
}
public bool PerformWork(object someData)
{
WebServiceReference.ServiceClient client = new WebServiceReference.ServiceClientQmuzikSales.ServiceQmuzikSalesClient(this._binding, this._address);
return client.DoWork(someData);
}
Kind regards,