You just need to annotate - Creating webservices with Java

 I have to admit... I can write a webservice(server) in .Net(with attributes) but not in Java. Why? Because writing one seems so hard... Ah ah ah! That was before! Because of this anxiety I tried to key in google for "webservice annotation" and my expectation for Java didn't fail me. My first hit was this article. It's good to know that creating a webservice in Java now(or was it since 2004?) only requires a few annotations.
 

One example provided in the article I've mentioned look like this:

import javax.jws.WebService;
import javax.jws.WebMethod;
@WebService
public class HelloWorldService {
@WebMethod
public String helloWorld() {
return "Hello World!";
}
}

It's all good. Ehem, ehem, ehem. :)

Published 08-09-2007 5:38 AM by lamia

Comments

Thursday, August 09, 2007 6:24 AM by jop

# re: You just need to annotate - Creating webservices with Java

Nice. Only proves that a little competition is a good thing.

Thursday, August 09, 2007 9:12 PM by lamia

# re: You just need to annotate - Creating webservices with Java

It sure is Jop!!!

Thursday, August 09, 2007 9:47 PM by cruizer

# re: You just need to annotate - Creating webservices with Java

so hindi rin totoo na .NET lang ang nanggagaya sa Java ;) we all benefit from their kopyahan. he he

Thursday, August 09, 2007 9:56 PM by lamia

# re: You just need to annotate - Creating webservices with Java

At least inaamin namin. Lolz! Ayaw patalo eh noh?

Thursday, August 09, 2007 11:19 PM by lamia

# re: You just need to annotate - Creating webservices with Java

Ei guys I hope you don't take it seriously when I say things such as the one above. I only meant to say those as "jokes".  I believe Java and .Net developers could live in peace together(and so are the technologies, DIE MICROSOFT!!!).

Thursday, August 09, 2007 11:28 PM by jop

# re: You just need to annotate - Creating webservices with Java

Wala namang masama sa panggagaya basta ba yung magaganda lang yung gagayahin. :D

Wala ring masama sa pangongopya, basta wag ka lang papahuli. :D

Thursday, August 09, 2007 11:30 PM by jop

# re: You just need to annotate - Creating webservices with Java

Hehehe... I like this quote: "Competition brings out the best in products and the worst in people." -- David Sarnoff

Thursday, August 09, 2007 11:38 PM by lamia

# re: You just need to annotate - Creating webservices with Java

That's true Jop. I'm very interested on how Microsoft would deal with Windows vs Opensource OSs, Silverlight vs Flash, Java(in general) vs .Net, VS.Net vs Opensource IDEs(especially Eclipse and Netbeans) and many others!

However, everyone should have their pick and I pick Java/Opensource as the winner. :)

Thursday, August 09, 2007 11:58 PM by leonidas

# re: You just need to annotate - Creating webservices with Java

Well, actually mas nauna pa ang Delphi sa pag implement ng WebServices. I guess the reason why .Net has the WebServices is because of Anders.=)

Friday, August 10, 2007 12:04 AM by jop

# re: You just need to annotate - Creating webservices with Java

"That's true Jop. I'm very interested on how Microsoft would deal with Windows vs

Opensource OSs, Silverlight vs Flash, Java(in general) vs .Net, VS.Net vs

Opensource IDEs(especially Eclipse and Netbeans) and many others!

However, everyone should have their pick and I pick Java/Opensource as the

winner. :)"

Hehehe... buti ka pa, nakapili na ng language/platform. Yung gusto kong piliin, hindi na yata kasama sa contest. :D

Pero kung OS ang paguusapan, Windows vs. Linux - Mac OSX and pipiliin ko. :D

Friday, August 10, 2007 12:57 AM by cruizer

# re: You just need to annotate - Creating webservices with Java

oo nga, there are other languages that are more expressive and beautiful than C# and Java ;)