(WCF) WCF and Service Debug

Source: Internet
Author: User

A multi-program communication is required, with WCF and WCF service being the current choice.

Requirements: communicates with the product, interacts with the user, and transmits the final result to a DB

Basic ideas:

1. Communicate with the WPF client program and product to obtain the necessary results.

2. The WPF client program calls the WCF proxy and sends the result to a WCF Service.

3. Another program obtains the result from another WCF proxy and transmits it to the DB

Control System (Service) <--------------------> WCF service (Host in Windows service) <------------- ----------> UI Application

| | (comunication)

WCF Client (Proxy, GetResult) Device.

|

Upload to DB

Basic implementation:

1. Create the WCF service Library to implement the interface for the WCF service.

2. Create a Windows service and set the WCF service Host to Windows service.

3. Create a WPF UI program that implements communication with device.

Problem and debug:

1. When there is a problem with the service, you can use EventViewer to assist with Debug.

Reference:

1. http://blog.csdn.net/hebeijg/article/details/6161228

2. http://www.codeproject.com/Articles/38160/WCF-Service-Library-with-Windows-Service-Hosting

(WCF) WCF and Service Debug

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.