我对 Maven 很陌生,我有一个包含多个服务的项目。我们可以在 beans.xml 中使用多个 jaxws:endpoint。
例如:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
**<jaxws:endpoint id="accountSnapshot" implementor="AccountSnapshot" address="/AccountSnapshot" wsdlLocation="classpath:wsdl/ser/service/rs/AccountSnapshot/1.0/AccountSnapshot.wsdl">
<jaxws:endpoint id="accountSnapshot1" implementor="AccountSnapshot1" address="/AccountSnapshot" wsdlLocation="classpath:wsdl/ser/service/rs/AccountSnapshot1/1.0/AccountSnapshot1.wsdl">**
<jaxws:properties>
<entry key="schema-validation-enabled" value="false" />
</jaxws:properties>
</jaxws:endpoint>
</beans>