I don’t know about you, but I make a lot of use of WebMethods when developing a less than trivial Morfik application. WebMethods are extremely useful and actually quite easy to use, once you’ve got the hang of it. Depending on how much and what kind of information you want to exchange between your browser and server code, it can as simple as just invoking the RunWebMethod procedure.
One thing always leaves me with the feeling that I’m missing something, though. When you are using a Web Method from an imported Web Service, or even one of your own that requires more and more complex parameters, you end up having to use a callback to handle the method’s return. I have no problem with the concept there, but the implementation could be easier to write. Wouldn’t it be nice if you could just type your code for handling the method’s return in line with the method invocation?
Just about every major programming language in use today implements anonymous functions and/or anonymous methods. I think this would be a nice addition to Morfik. This kind of construct is already defined in the C# language and Microsoft implements it in its implementation of Basic for .Net. The Delphi language which is the most used implementation of Object Pascal, today, has also added support for this construct. This means that a syntax is already defined and could be adopted, for all the languages Morfik supports, in a future release of the product.
Considering the innovative ways in which the Morfik R&D team approaches such issues I wouldn’t be surprised if they came out with several other clever uses for this feature once it was implemented.