使用WSO2 peoplehr连接器时出错

时间:2015-11-15 16:31:19

标签: xml wso2 wso2esb wso2developerstudio

我正在尝试使用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]

1 个答案:

答案 0 :(得分:0)

该连接器的文档为under construction,可能没有足够的信息可供设置。已经报告了JIRA。我们将来会解决这个问题。

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

请按照连接器的github repo here

中的说明进行操作