【问题标题】:Consuming Salesforce outbound message using Spring Integration使用 Spring Integration 使用 Salesforce 出站消息
【发布时间】:2023-03-07 07:20:01
【问题描述】:

我想使用 Spring 使用 Salesforce Outbound Message 并按顺序处理它们并将数据保存在 MySQL 数据库中。此外,我必须在处理后将成功响应发送回 Salesforce。我有来自 Salesforce 的 WSDL。任何人都可以为我提供一种使用 Spring 框架的方法。任何示例或链接都会对我有很大帮助。

【问题讨论】:

    标签: salesforce spring-integration spring-ws


    【解决方案1】:

    由于您提供了 WSDL,这意味着您使用的是 SOAP WebService。

    为此,Spring Integration 提供 WeService Adapters 支持:http://docs.spring.io/spring-integration/docs/4.3.7.RELEASE/reference/html/ws.html

    您需要的是 WebService Inbound Gateway,这里有一些示例:https://github.com/spring-projects/spring-integration-samples/tree/master/basic/ws-inbound-gateway

    要将数据存储到 RDBMS 中,您需要 JDBC 适配器:http://docs.spring.io/spring-integration/docs/4.3.7.RELEASE/reference/html/jdbc.html

    这是一个示例:https://github.com/spring-projects/spring-integration-samples/tree/master/basic/jdbc

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-07-02
      • 2016-01-25
      • 2015-08-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多