春季/地铁/网络服务问题

问题描述 投票:1回答:2

我们尝试使用带有Metro堆栈的spring来实现Web服务。

安装程序似乎没问题,但在applicationContext.xml中出现错误

cvc-complex-type.2.4.c:匹配通配符很严格,但没有声明可以找到元素'wss:binding'。

[我认为已发布的示例已经过时,并且对于Spring 3,必须以不同的方式定义绑定。

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:p="http://www.springframework.org/schema/p"
       xmlns:aop="http://www.springframework.org/schema/aop"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xmlns:ws="http://jax-ws.java.net/spring/core"
       xmlns:wss="http://jax-ws.java.net/spring/servlet"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
       http://www.springframework.org/schema/aop
       http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
       http://www.springframework.org/schema/tx
       http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">

    <wss:binding url="/ws">
        <wss:service>
            <ws:service bean="#webService"/>
        </wss:service>
    </wss:binding>
    <!-- this bean implements web service methods -->
    <bean id="webService" class="com.test.TestService"/>
</beans>

我必须如何配置绑定,或者在哪里可以找到描述。

web-services spring jax-ws spring-ws java-metro-framework
2个回答
3
投票
http://jax-ws.java.net/spring/core http://jax-ws.java.net/spring/core.xsd http://jax-ws.java.net/spring/servlet http://jax-ws.java.net/spring/servlet.xsd

([more here, but I guess you've seen it already


0
投票
© www.soinside.com 2019 - 2024. All rights reserved.