maven中的Beans.xml

时间:2012-08-30 04:28:45

标签: java

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

1 个答案:

答案 0 :(得分:0)

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