【问题标题】:Error using WSO2 peoplehr connector使用 WSO2 peoplehr 连接器时出错
【发布时间】:2015-11-17 18:49:13
【问题描述】:

我正在尝试使用WSO2 peoplehr connector,我的代理服务如下:

<?xml version="1.0" encoding="UTF-8"?>
<proxy name="peopleHrEmployeeDetails" startOnLoad="true" trace="disable"
  transports="http https" xmlns="http://ws.apache.org/ns/synapse">
  <target>
    <inSequence>
      <peoplehr.getEmployee configKey="employee"/>
    </inSequence>
    <outSequence/>
    <faultSequence/>
  </target>
</proxy>

本地入口如下:

<?xml version="1.0" encoding="UTF-8"?>
<localEntry key="employee" xmlns="http://ws.apache.org/ns/synapse">
  <peoplehr.init>
    <apiUrl>https://api.peoplehr.net/</apiUrl>
    <apiKey>c85c2570-0602-4930-a0c7-847c1a26550c</apiKey>
    <employeeId>PW5</employeeId>
  </peoplehr.init>
</localEntry>

我已经在 WSO2 ESB 上启用了 peoplehr 连接器。当我在 WSO2 ESB 上部署代理服务并使用 tryit 工具尝试它时,消息正文中没有任何内容,我在 WSO2 服务器中收到很多异常并且消息未发送。

2015-11-15 21:56:28,933] ERROR - TargetHandler I/O error: General SSLEngine problem
javax.net.ssl.SSLHandshakeException: General SSLEngine problem
[2015-11-15 21:56:28,942]  WARN - EndpointContext Endpoint : AnonymousEndpoint will be marked SUSPENDED as it failed
[2015-11-15 21:56:28,944]  WARN - EndpointContext Suspending endpoint : AnonymousEndpoint - last suspend duration was : 30000ms and current suspend duration is : 30000ms - Next retry after : Sun Nov 15 21:56:58 IST 2015
[2015-11-15 21:57:28,572]  INFO - HTTPSender Unable to sendViaPost to url[http://riyafa-Dell-System-Vostro-3450:8280/services/peopleHrEmployeeDetails.peopleHrEmployeeDetailsHttpSoap12Endpoint]

【问题讨论】:

    标签: xml wso2 wso2esb wso2developerstudio


    【解决方案1】:

    该连接器的文档是under construction,可能没有足够的信息来设置。已经报告了JIRA。我们将在未来解决此问题。

    看来,您必须获取 PeopleHR 的公钥证书并将其添加到 client-truststore.jks 中。

    请按照连接器的 github repo here 中的文档进行操作

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多