Background
I am attempting to make a webservice using SOAP and JBOSS. I know that to make a webservice that you do something like this:
import javax.jws.WebService;
@WebService
public class HelloImpl {
/**
* @param name
* @return Say hello to the person.
*/
public String sayHello(String name) {
return "Hello, " + name + "!";
}
}
I understand in general how java annotations work:
@nnotations are defined by the Java language. An Annotation is a class. When you mark something with an annotation, the compiler and runtime arrange for an object of that class to be visible at runtime via java reflection.
Thanks to bmargulies from this thread.
I am not certain what jboss does with the annotaions.
Question 1: What I think is that jboss either generates xml OR wsdl based on the annotations. Is this correct? Note: I am refering to tags like @Webservice, @WebContent, @SecurityDomain, @Stateless
Question 2: If jboss does generate xml OR wsdl do I need the annotations? Am I allowed to just create that file myself?
Similar Pages: