This content has been marked as final. Show 1 reply
You don't have just a method. You have a method and a definition.
So first step is to design a data model that describes both the method and the details of running the method.
Certainly number of parameters would go in it. I bet type of parameter would help as well. As since probably the parameters are string a length is good. Even a regex might work for validation. But at any rate a collection of data attributes that describe how to run it. Probably includes the xml blob as well.
Then how to implement it. You could hard code it. Or put it in a database. Myself I would probably put it in a configuration file.