0

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

<?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]
4

1 回答 1

0

该连接器的文档正在构建中,可能没有足够的信息来设置。已经报告了一个JIRA。我们将在未来解决这个问题。

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

请在此处遵循连接器的 github 存储库中的文档

于 2015-11-16T06:12:47.197 回答