简体   繁体   English

使用Spring集成开发Web服务

[英]Developing Web Services Using Spring-Integration

I have had experience developing web services using Spring-WS before. 我以前有使用Spring-WS开发Web服务的经验。 However, I was wondering if I can develop a web service purely using Spring-Integration using Inbound Gateways etc. If you have experience developing Web-Services using Spring-Integration, can you please provide me some guidance and also provide some references? 但是,我想知道是否可以使用入站网关等完全使用Spring-Integration开发Web服务。如果您有使用Spring-Integration开发Web服务的经验,能否请您提供一些指导并提供一些参考?

I think the good point to start is Spring Integration samples 我认为开始的好点是Spring Integration示例

There is no nothing special: you configure Servlet Context as before and add bean: 没什么特别的:与以前一样配置Servlet Context并添加bean:

<bean class="org.springframework.ws.server.endpoint.mapping.UriEndpointMapping">
     <property name="defaultEndpoint" ref="ws-inbound-gateway"/>
</bean>

Everything other should be done using EIP components: Routers, Filters, Service-Activators etc. 其他所有其他操作都应使用EIP组件完成:路由器,过滤器,服务激活器等。

Another chioce to write service endpoints as before, but delegate hard work to Integration flows using <int:gateway> 像以前一样编写服务端点的另一个选择,但是使用<int:gateway>将辛苦的工作委托给Integration流

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM