Scott Hanselman

Tomato, Tomato, [WebMethod], @Remote, Kosher, Halaal, them's good eatin'.

May 10, '03 Comments [0] Posted in Web Services | XML
Sponsored By

Would it have killed them to just call it [WebMethod]?

In Java 2, Version 1.5 (I don't understand the versioning either) attributes look like this:

import javax.xml.rpc.*; 
public class CoffeeOrder
{
@Remote public Coffee [] getPriceList() { ... }
@Remote public String orderCoffee(String name, int quantity) { ... }
}

which is equivalent to this:

public interface CoffeeOrderIF extends java.rmi.Remote 
{
public Coffee [] getPriceList() throws java.rmi.RemoteException;
public String orderCoffee(String name, int quantity) throws java.rmi.RemoteException;
}

public class CoffeeOrderImpl implements CoffeeOrderIF
{
public Coffee [] getPriceList() { ... }
public String orderCoffee(String name, int quantity) { ... }
}

It's good to see Java catching up linguisticly. 

I've mentioned my aversion to language arguments before using the oft-heard extended "religion" analogy.  Far from being a religious zealot (though I have been known to genuflect at the site of the occasional semi-colon) I am neither agnostic nor atheist...I consider myself a staunch apathist in these matters.

I say it, [WebMethod], @Remote, call it Kosher, call it Halaal, I call it good eatin'.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb
Comments are closed.

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.