Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello everyone,

I just want to know that webservice is whether push or pull process??

if it is push process then do we have to use pull process for getting data from somewhere??

and if we dont have pull process then how do we get data??

please explain me giving some example!!

Regards,
Krunal Panchal
Posted
Comments
Sandeep Mewara 16-May-11 4:18am    
I would say nor a push or a pull. A middle man it is.
Member 11484624 16-Apr-15 5:34am    
hi i need method that make my service web stop pulling when i don't have a notification means (my list of notification is empty ) how can di that ?

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,
 
Share this answer
 
Comments
Member 11484624 16-Apr-15 5:34am    
hi i need method that make my service web stop pulling when i don't have a notification means (my list of notification is empty ) how can di that ?
Pull - a web service cannot act without a request from a client.
 
Share this answer
 
Comments
Member 11484624 16-Apr-15 5:40am    
hi i need method that make my service web stop pulling when i don't have a notification means (my list of notification is empty ) how can di that ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900