2432683
2432683

Reputation: 108

WCF send xml to Web Service and receive message

Please tell me, can i accomplished something like.. Some company has created CRM, this CRM provides some Web Services. I can communicate with this services via XML. So my question is can i create Windows Services with WCF which will be send some request ( every hour ) to Web Service and receive data from this web services.

Example:

  1. At 9am, 10 am... WCF has sent request ( XML ) to Web Service:Hey CRM how many users you have?
  2. Web Service received a message and response via XML: I got 10 users.
  3. WCF received message: I got 10 users... and did something with it.

Please for some help. Articles, code sample, or key words what should i look for.

Upvotes: 0

Views: 632

Answers (2)

Dani J
Dani J

Reputation: 174

If the provided web services are standard, WCF should be able to communicate with them. Add a service reference, specify the URL, and if discovery (WSDL) is available, Visual Studio will allow you to quickly generate a proxy class that makes using the server very easy.

Scheduling the requests every hour is not related to wcf, use task scheduler or a manual solution for that.

Upvotes: 1

T McKeown
T McKeown

Reputation: 12847

nothing in your question indicates the need for WCF, it sounds like all you need to do is create a SOAP reference (web reference) to this CRM Web Service and call it every hour. This could be a console app or any app for that matter.

Upvotes: 1

Related Questions