Web Service as a designer in 1.1 and 2.0
HiIn 1.1 i was able to drag and drop a control on a ASMX file where as this feature is missing in 2.0
In 1.1 this feature enabled me to drop a SQLDataAdapter on the web service designer, then i was able to expose the dataset as a webmethod which can be accessed by any client. Now I need to code for the same as this feature is not available in 2.0 i.e. the Web Service is not a designer now.
Any reason why this feature is removed and also any workaround for the same.
Thanks
[700 byte] By [
Ams] at [2008-2-15]
The approach taken by 2.0 is better, since it helps developers seperate all the logics and data access from web services code.
To do this , you add a component class( the one the inherit from Component). now you can use this class for data access and other things. All you have to do is expose public members appropriately. then call the members from your web service code.
ps. using data set as the medium for web services isn't always a good idea, when web services primarly meant for integration. if you need to call the object remotely withinh .Net environment use remoting instead