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.