1
Webサービスを実装するためにメトロスタックでspringを使用しようとしています。spring/metro/webserviceの問題
設定はOKのようですが、私たちはapplicationContext.xmlを
CVC-複合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>
バインディングを構成する方法、またはどこで説明を見つけることができますか。
それだと! http://metro.java.net/guide/Using_Metro_With_Spring_and_NetBeans_6_1.htmlの例が表示されます – ABX