I have a java class which I need to annotate up for a web service. Everything is set up and compiles etc, the wsdl is generated using the maven plugin for wsprovide... the problem I have is that the class references an interface...
@WebService(name = "myWebService", targetNamespace = "......")
@SOAPBinding(style = SOAPBinding.Style.RPC)
public class MyClassImpl implements MyClass {
protected TheService m_theService;
/**
* @return the theService
*/
public TheService getTheService() {
return m_theService;
}
TheService is an interface, and so I get a JAXB error... TheService is an interface, and JAXB can't handle interfaces. The getTheService method does not need to be exposed in the web service, but I can't see how to get around it. Can anyone explain what to do in this situation?