Skip to main content

Example of SEI with Annotated Methods

The next example shows an SEI whose methods are annotated.

SEI with Annotated Methods

package org.apache.cxf;

import javax.jws.*;
import javax.xml.ws.*;

@WebService(name="quoteReporter")
public interface QuoteReporter {
   @WebMethod(operationName="getStockQuote")
   @RequestWrapper(targetNamespace="http://demo.mycompany.com/types",
      className="java.lang.String")
   @ResponseWrapper(targetNamespace="http://demo.mycompany.com/types",
      className="org.eric.demo.Quote")
   public Quote getQuote(String ticker);
}

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!