Martin Dodd

Martin Dodd

  • NA
  • 3
  • 0

Consuming a WCF service with a window service

Jun 25 2009 6:48 AM
Now can someone please help me, I have created a window service that consumes a WCF service. The service onStart creates a timer object that instantiates a handler to a method that periodically polls the WCF service. I am asking someone to give me some guidance as to how to consume the WCF service. The company I am working with has adviced me to process blocks of records, and then close and reopen the service, yet I have read that the WCF should be opened onStart and closed onStop. The WCF service is uploading and downloading approximately 100kb of data per record processed. Could someone also offer some advice as to the Service.model config parameters. I am using .NET Framework 3.5. Regards, Martin UPDATE: There has been lots of viewings, but little response, however I would like to share somethings I have learnt. First, try using largest values in you app.config for the parameters for the WCF model, don't spend time opening and closing WCF references as this takes a finite time to perform.

Answers (4)