WebService Development (iii) web service software factory

Source: Internet
Author: User

Want to know what it is? Http://www.codeplex.com/servicefactoryhere.
Install dotnetfx3.exe, guidanceautomationextensions. MSI, and Web Service software factory-December 2006 (refresh). MSI. Microsoft provides download. You can search for it and find it. After installation, create a project as follows:
There is also a WCF Project template under guidance packages. Someone in the garden is talking about a series of WCF articles recently. Next step

Let's take a look at the generated solution structure.

As the best practice of WebService, Microsoft suggests that our solution is like this. We are optimistic about its reference relationship, which is the best way to understand this framework.
1. businesslogic references businesstities and dataaccess ).
2. servicecontracts (Service Contract) References datatypes (data type ). Servicecontracts is usually the interface definition. We apply [WebService] and [webmethod] to interfaces and methods in the interfaces so that any class can inherit and implement interfaces ,. the ASMs file uses <% @ WebService Language = "C #" class = "class =" class implementing interfaces "%> to publish services externally. To separate operation definitions (service contracts) from Operation implementations.
3. serviceimplementation (service implementation) references the business entity, businesslogic, servicecontracts, and PES ypes layers. Serviceimplementation converts the datatypes (data type) and businessentities (Business Entity) layers using the translator to achieve loose coupling of service-related types. Another reason is that the business object (datatype) at the business layer may be different from the storage of the persistent layer (businessentities) or data layer (dataaccess.
4. WebService. Host references serviceimplementation to publish the service.

It provides an example solution called employeeservice. You can study it.

Related Article

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.