Using Web service as business logic layer
-
Is it a proper to design the business logic layer & Data access layer as a web service in a n-tier application. What are the pros and cons of using this. when should i use it and when i should not. My UI may be a windows or web application does webservice affect it by any way. Another Query: What the typical functions required in dblibrary.? How can i optimize database access in a dblibrary? What are the things to be kept in mind when designing a dblibrary? How can i make my dblibrary also database independent i.e. tommorow i should be able to change the database without changing code just change the configuration settings in some resource file)? I am sorry if its unclear . Thanks to all who has answered my previous queries. Thanks in advance for any reply? I would like hear the answer of these queries with reason ie. why something is better or not? with regards anand
-
Is it a proper to design the business logic layer & Data access layer as a web service in a n-tier application. What are the pros and cons of using this. when should i use it and when i should not. My UI may be a windows or web application does webservice affect it by any way. Another Query: What the typical functions required in dblibrary.? How can i optimize database access in a dblibrary? What are the things to be kept in mind when designing a dblibrary? How can i make my dblibrary also database independent i.e. tommorow i should be able to change the database without changing code just change the configuration settings in some resource file)? I am sorry if its unclear . Thanks to all who has answered my previous queries. Thanks in advance for any reply? I would like hear the answer of these queries with reason ie. why something is better or not? with regards anand
It is typically dependent on the client’s wish. Some clients do not prefer to business logic sitting on the IIS machine and for Web Services you require the IIS machine. In such situation, the solution is to use .NET remoting to access services secured inside the firewall while your IIS Web Service sits outside the firewall in the DMZ and just serves requests. :wtf: The question you have raised is really important from the point of view of the *trust* users are going to put over IIS/.NET basde Web Services, while the recent IIS exploit memories are still fresh. I expect some interesting advice from the Microsoft guys and the pattern gurus. Your database questions are irrelevant for this forum, please use the ADO forum. Lets me tackle the only forum relevant question: Database independent programming: OBBC technology has been around for years to solve this problem. .NET has OLEDB and ODBC Adaptors, which you can read on and use to achieve the same purpose. The documentation clearly stating which one among these two is suited for which purpose, is a bit rare to find, but some experts will soon throw light on this. Lets wait a while… ;)
-
It is typically dependent on the client’s wish. Some clients do not prefer to business logic sitting on the IIS machine and for Web Services you require the IIS machine. In such situation, the solution is to use .NET remoting to access services secured inside the firewall while your IIS Web Service sits outside the firewall in the DMZ and just serves requests. :wtf: The question you have raised is really important from the point of view of the *trust* users are going to put over IIS/.NET basde Web Services, while the recent IIS exploit memories are still fresh. I expect some interesting advice from the Microsoft guys and the pattern gurus. Your database questions are irrelevant for this forum, please use the ADO forum. Lets me tackle the only forum relevant question: Database independent programming: OBBC technology has been around for years to solve this problem. .NET has OLEDB and ODBC Adaptors, which you can read on and use to achieve the same purpose. The documentation clearly stating which one among these two is suited for which purpose, is a bit rare to find, but some experts will soon throw light on this. Lets wait a while… ;)
-
thanks, how to use .net remoting to access services in secure mode. also let me know other ways of building web services. Thanks again for the reply. anand
If you are using Web Services, or using .NET Remoting over an HTTP channel, then simply buy yourself an SSL certificate from VeriSign[^], Thawte[^], or some other company and install it on IIS. These companies will have instructions, and please don't ask here because it's not a C#-related question. If you want more granularity with what in your body gets encrypted, read about the Microsoft Web Service Enhancements[^], and implementation of industry standard specifications to encrypt, sign, route, and do more with SOAP (what Web Services use, and what .NET Remoting can use for a formatting channel). If you want more information about how to build Web Services, I recommend you read some of the many articles on this site, or visit http://msdn.microsoft.com/webservices[^]. There is a lot of information available so this is not really a suitable subject for the forum, which is geared more toward specific questions. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles]