是否可以将以下xml soap webservice配置重写为基于注释的spring config?
<jaxws:endpoint xmlns:tns="http://ws.sample.org/" id="helloservice"
implementor="org.sample.ws.HelloServiceImpl" wsdlLocation="wsdl/helloserviceimpl.wsdl"
endpointName="tns:HelloServiceImplPort" serviceName="tns:HelloServiceImplService"
address="/HelloServiceImplPort" />
未检测到以下方法:
@Service
@Webservice(serviceName="helloservice", wsdlLocation="wsdl/helloserviceimpl.wsdl", targetNamespace = "http://ws.sample.org/")
public class HelloServiceImpl {
@WebMethod
public String getVersion() {
return "1.0";
}
}