Annotating the service implementation
In addition to annotating the SEI with the @WebService annotation, you also have to annotate the service implementation class with the @WebService annotation. When adding the annotation to the service implementation class you only need to specify the endpointInterface property. As shown in the next example the property needs to be set to the full name of the SEI.
Annotated Service Implementation Class
package org.apache.cxf;
import javax.jws.*;
@WebService(endpointInterface="org.apache.cxf.quoteReporter",
targetNamespace="http://cxf.apache.org",
portName="StockQuotePort",
serviceName="StockQuoteReporter")
public class StockQuoteReporter implements QuoteReporter {
public Quote getQuote(String ticker) {
...
}
}