简体   繁体   English

使用Spring Integration编写合同优先的Web服务

[英]Writing Contract-First Web Service using Spring Integration

I need to create a SOAP based Web Service using Spring Integration which will process the request payload in a Service Activator and then generate and send the appropriate response. 我需要使用Spring Integration创建一个基于SOAPWeb Service ,它将在Service Activator处理请求有效负载,然后生成并发送适当的响应。

WSDL file is in my hand along with XSDs for request and response message. WSDL文件与XSDs用于请求和响应消息。 So I need to create the web service using WSDL . 因此,我需要使用WSDL创建Web服务。

If anyone can provide any example or tutorial on this subject?? 是否有人可以提供有关此主题的任何示例或教程?

Looks like Spring Integration Sample on the matter gives you answers. 看起来像Spring Integration Sample上的内容可以为您提供答案。 And some info in the Reference Manual 还有参考手册中的一些信息

  1. You need to configure Spring WS infrastructure (see its documentations). 您需要配置Spring WS基础结构(请参阅其文档)。
  2. Refer your <int-ws:inbound-gateway> to the org.springframework.ws.server.endpoint.mapping.UriEndpointMapping as defaultEndpoint . 将您的<int-ws:inbound-gateway>引用到org.springframework.ws.server.endpoint.mapping.UriEndpointMapping作为defaultEndpoint
  3. And go ahead with other your business logic. 并继续其他业务逻辑。

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

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