0

我对 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>
4

1 回答 1

0

是的,你当然可以在 beans.xml 中有多个 jaxws:endpoint 元素......但是,正如评论所暗示的,这个问题与 Maven 无关。

于 2012-08-30T09:12:56.577 回答