如何使用Spring注释定义jaxws-endpoint?

时间:2014-07-21 11:15:09

标签: java spring web-services soap wsdl

是否可以将以下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";
    }
}

0 个答案:

没有答案