开发者

I need architecture suggestions for a web service

开发者 https://www.devze.com 2023-01-08 17:54 出处:网络
I want to encapsulate every resource from the client application with only one web service which can use my classlib.

I want to encapsulate every resource from the client application with only one web service which can use my classlib.

I'm confused to access to other resources (web services, databases...) from the class library. Because i think ClassLib should only have classes to reach objects within hierarchy, calculate some things etc. If i set database queries or method calls from library i will hav开发者_Go百科e to maintain its connection strings etc...

What kind of an architecture should i use?

I need architecture suggestions for a web service

I need architecture suggestions for a web service


There is nothing wrong with this approach, you are refering to a service facade. You are going to have to maintain connection strings somewhere, why not on your web-service.

You may want to take a look at WCF services also

http://msdn.microsoft.com/en-us/library/bb332338.aspx

http://msdn.microsoft.com/en-us/library/aa480190.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消