I need architecture suggestions for a web service
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?
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
精彩评论