Cyberactiva - webmaster tutorials, programming and videogames tricks

webmaster menu webmaster menu webmaster menu webmaster menu webmaster menu webmaster menu webmaster menu webmaster menu
  

dynamically defined web methods

dynamically defined web methods
I have a bunch of reports that are defined as metadata in a database.
Each report has an ID and a collection of filters (e.g. filter the
report where X is between 5 and 8). I need to expose the reports
through a web service.

I could write a single web method that takes in a report ID and an
ArrayList of parameters, and returns the output for the requested
report. That would work.

But I think the generic method above is too generic. I would like a web
method for each report. E.g. executeReportA, executeReportB etc., and
each method's parameters correspond to the report's filters. The
problem is, the reports' metadata can change any time, so I think I
need to dynamically define the web methods to match what is in the
database.

I thought of implementing the generic function anyway, but overriding
the WSDL via wsdlHelpGenerator, and using SOAP extensions to translate
requests to use the generic function.

Is there a better way to do this? Is my idea too far fetched?

thanks


Register for freeMembers Area
Web MarketingLast Web Marketing
Web MarketingLast Programming Tips
Web MarketingLast News


Web Marketing Links and links exchange .