K
Kai Fransson
We have a web application today in Framework 3.5. The application consists of
a Data Access Layer, Business Logic Layer and a Front Layer of ASP.NET
webpages. In the DAL, a number of typed datasets are defined, and it is these
typed datasets that are used as data transfer objects throughout the
application.
Now we want to expose functionality, from the application, to other .NET
systems, through a WCF service. What should we let the WCF service expose to
other systems?
Here are the alternatives we have talked about:
1. Expose the DataSets we already have (simply return the typed datasets as
regular DataSet)
- Very convinient, byt the existing typed datasets were originally created
for internal use, and look much like the database itself, when it comes to
fieldnames, tables etc.
2. Create new typed datasets in the front layer.
- Requires defining new typed datasets ("external datasets") in the front
layer, and implementing custom transfer of data from "internal dataset" to
"external dataset" in the front layer.
3. Expose only XML formatted strings.
- Requires custom transfer of data from typed dataset to XML in the front
layer.
All we know of the future consumers of this new service is that .NET and
Framework 3.5 is ok. We will of course be able to send them a documentation,
describing how to consume our new webservice.
What would be the best thing to return from the service? Any advice is
greatly appreciated!
a Data Access Layer, Business Logic Layer and a Front Layer of ASP.NET
webpages. In the DAL, a number of typed datasets are defined, and it is these
typed datasets that are used as data transfer objects throughout the
application.
Now we want to expose functionality, from the application, to other .NET
systems, through a WCF service. What should we let the WCF service expose to
other systems?
Here are the alternatives we have talked about:
1. Expose the DataSets we already have (simply return the typed datasets as
regular DataSet)
- Very convinient, byt the existing typed datasets were originally created
for internal use, and look much like the database itself, when it comes to
fieldnames, tables etc.
2. Create new typed datasets in the front layer.
- Requires defining new typed datasets ("external datasets") in the front
layer, and implementing custom transfer of data from "internal dataset" to
"external dataset" in the front layer.
3. Expose only XML formatted strings.
- Requires custom transfer of data from typed dataset to XML in the front
layer.
All we know of the future consumers of this new service is that .NET and
Framework 3.5 is ok. We will of course be able to send them a documentation,
describing how to consume our new webservice.
What would be the best thing to return from the service? Any advice is
greatly appreciated!