简体   繁体   中英

How do I deploy my 3 tier wcf service

I am new to deploying WCF projects so I would appreciate a little guidance on deploying the project.

I have a VS2010 project that is using .NET 4 for the WCF service.

The WCF service accesses another project that I call the Data Access Layer (DAL). The WCF service simply passes the Request XML on to the DAL.

The DAL accesses a 3rd project that I use to communicate with SQL Server, dbConnection. dbConnection packages the information into a call to a stored procedure to be sent to a SQL Server. See the diagram below for a simple view.

在此处输入图片说明

So my first question is, how do I deploy the Data Access assembly. I was thinking I put the assembly on its own server and then register it on that box. And I would have a reference to the assembly's path in my WCF project.

My 2nd question is, do I deploy the dbConnection assembly the same way? Do I register it and the Data Access assembly has a reference to its path?

You decompose tiers wrong. If you think about 3 tier there will be:

1 - client pc that call your wcf service 2 - WCF service with its dataaccess layer 3 - SQl database.

在此处输入图片说明

If you want to speak about layered application, it is about application with n layers but this layers can be in one process.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM