S
Steve Y.
Hi, I need some input to help my thinking process. We have a multi layer
web application now but we didn't do a very good job separating the business
logic from the user interface logic. So as you can imagine as it is getting
bigger it is harder to maintain. We would really like to pull the business
logic into class objects but I am stuck on the concept. Today the web front
end reacts to events and makes web service calls. The web serivces use the
SQL Helper class (we're still on 1.1) to talk to SQL Server stored procs.
In the web service is the web.config with the server connection string.
We'd like to pull the business logic into separate dlls and reference them
from the front end. So if the front end then knows nothing about the web
services and instead talks to the business objects, how do the business
objects know about the location of the web services? Do we make the web
refrences in the business object class project(s) and have a config file
there? Does the dll and config file then go in the bin directory of the web
front end?
Lastly (sorry for so long of a post), we're thinking about AJAX. My
knowledge is limited, but doesn't ajax have to talk to web services? If so,
how do I use my business logic classes since the business logic classes will
hide the existance that the BO is talking to web services at all.
My hope is that these BOs will become the layer that the web site talks to,
and we can have some other front-ends down the road, not just web sites.
Steven
web application now but we didn't do a very good job separating the business
logic from the user interface logic. So as you can imagine as it is getting
bigger it is harder to maintain. We would really like to pull the business
logic into class objects but I am stuck on the concept. Today the web front
end reacts to events and makes web service calls. The web serivces use the
SQL Helper class (we're still on 1.1) to talk to SQL Server stored procs.
In the web service is the web.config with the server connection string.
We'd like to pull the business logic into separate dlls and reference them
from the front end. So if the front end then knows nothing about the web
services and instead talks to the business objects, how do the business
objects know about the location of the web services? Do we make the web
refrences in the business object class project(s) and have a config file
there? Does the dll and config file then go in the bin directory of the web
front end?
Lastly (sorry for so long of a post), we're thinking about AJAX. My
knowledge is limited, but doesn't ajax have to talk to web services? If so,
how do I use my business logic classes since the business logic classes will
hide the existance that the BO is talking to web services at all.
My hope is that these BOs will become the layer that the web site talks to,
and we can have some other front-ends down the road, not just web sites.
Steven