問題描述
使用 WSO2 peoplehr 連接器時出錯 (Error using WSO2 peoplehr connector)
我正在嘗試使用 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]
## 參考解法 #### 方法 1:
The documentation is under construction for that connector, and probably don't have enough information to set up. There is a JIRA reported already. We will be fixing this in future.
It seems, you have to get the PeopleHR's public key certificate and add it into client‑truststore.jks.
Please follow the documentation from connector's github repo here
(by Riyafa Abdul Hameed、Abimaran Kugathasan)