To invoke the RESTful WCF service asynchronously

Source: Internet
Author: User

In the PEDRAMR blog last week, I saw someone ask if the RESTful WCF service can be invoked asynchronously, and the following is the implementation details of the WCF implementation of the asynchronous call restful. Through this study, the following knowledge is helpful to master:

How to set restful support for WCF

How to invoke the RESTful WCF service asynchronously

Step One: Create a solution: ASYCALLRESTFULWCF, which contains the following four projects:

Project name Note
Asycallrestfulwcf.contracts A contract project for a WCF service that contains the definition of a service contract and a data contract
Asycallrestfulwcf.service Specific implementations of WCF services
Asycallrestfulwcf.host Hosting of WCF Services
Asycallrestfulwcf.httpclient To invoke the WCF service client asynchronously in an HTTP manner

Step two: Create service contract IService.cs and data contract in Project Asycallrestfulwcf.contracts Person.cs

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.