Web services spring/metro/webservice问题
我们尝试使用spring和metro堆栈来实现Web服务 设置似乎正常,但applicationContext.xml中出现错误 cvc复杂类型。2.4.c:匹配 通配符是严格的,但没有声明 可以为元素找到 “wss:binding” 我认为已发布的示例已经过时,对于Spring3,必须以不同的方式定义绑定Web services spring/metro/webservice问题,web-services,spring,jax-ws,spring-ws,java-metro-framework,Web Services,Spring,Jax Ws,Spring Ws,Java Metro Framework,我们尝试使用spring和metro堆栈来实现Web服务 设置似乎正常,但applicationContext.xml中出现错误 cvc复杂类型。2.4.c:匹配 通配符是严格的,但没有声明 可以为元素找到 “wss:binding” 我认为已发布的示例已经过时,对于Spring3,必须以不同的方式定义绑定 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/sc
<?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://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
()就是这样!现在,这个例子来自works