CXF与spring结合发布webservice

参照: CXF使用备忘

< jaxws:endpoint  id ="helloWorld"  implementor ="#helloWorldImpl"
        address ="/HelloWorld" />

address 的路径是相对于 CXFServlet的路径

     < servlet-mapping >
         < servlet-name > CXFServlet </ servlet-name >
         < url-pattern > /services/* </ url-pattern >
     </ servlet-mapping >


url-pattern 是 /services/*
访问路径就是 http://localhost:8080/project/services/HelloWorld?wsdl
url-pattern 是 /*
访问路径就是 http://localhost:8080/project/HelloWorld?wsdl

你可能感兴趣的:(spring,xml,webservice,servlet,Blog)