今日はGaroon API「ScheduleGetEventsByTarget」を使って、Bad responseのエラーメッセージを出てきた。
严重: SAAJ0008: 响应错误; Garoon Error
Exception in thread “main” cn.net.cybozu.webservice.garoon3.Garoon3WebServiceException: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Bad response: (520Garoon Error
at cn.net.cybozu.webservice.garoon3.Garoon3WebService.execute(Garoon3WebService.java:213)
at sample.ScheduleGet.main(ScheduleGet.java:53)
Caused by: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Bad response: (520Garoon Error
at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.call(Unknown Source)
at cn.net.cybozu.webservice.garoon3.Garoon3WebService.execute(Garoon3WebService.java:135)
… 1 more
Caused by: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Bad response: (520Garoon Error
at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.post(Unknown Source)
… 3 more
パラメータは開始と終了の日付、ObjectTypeは設備FACILITYを設定しました、設備のidも設定しました。
SimpleDateFormat formatter = new SimpleDateFormat(“yyyyMMdd’ 'HHmmss”);
formatter.setTimeZone(timezone);
Date startDate = formatter.parse(“20161212 000000”);
// end date
formatter = new SimpleDateFormat(“yyyyMMdd’ 'HHmmss”);
formatter.setTimeZone(timezone);
Date endDate = formatter.parse(“20161215 235959”);
action.setStartDate(startDate);
action.setEndDate(endDate);
action.setObjectType(ObjectType.FACILITY);
action.setId(“5”);
パラメータは何か間違ったですか?
解決方法をご存知の方がいらっしゃいましたら、ご教授頂けますと幸いです。