2014-06-12 48 views
1

我试图按照这里的步骤实现Web服务代理。 http://forum.spring.io/forum/spring-projects/integration/114641-how-to-implement-the-web-service-proxy-patternSpring-WS和Spring集成:获取SAXParseException:smartLifeCycleAttributeGroup

弹簧WS-config.xml中:

<int-ws:inbound-gateway id="proxy" request-channel="toOutbound"/> 

<int:channel id="toOutbound" /> 

<int-ws:outbound-gateway id="out" request-channel="toOutbound" uri="http://localhost:8080/helloproxy" /> 

获取此异常,同时部署代理服务。

org.xml.sax.SAXParseException; systemId:http://www.springframework.org/schema/integration/ws/spring-integration-ws.xsd; lineNumber:274; columnNumber:72; src- 解决方法:无法将名称'integration:smartLifeCycleAttributeGroup'解析为 (n)'属性组'组件。

有人可以帮我解决这个问题吗?在spring-ws-config xml中是否还需要添加其他内容?

感谢, 斯里兰卡

回答

1

或者你有弹簧集成版本的jar(SI-WS是一个版本,但SI-核心是另一个),或者它只是你的IDE的问题的混合。

Spring Nature(STS)应该有助于解决所有XSD验证问题。

+0

谢谢。错过了春季整合核心。添加最新版本有助于解决此问题。 – sri