0

WL 5.0.6.1 を使用していますが、ドキュメントにすべての情報が見つかりませんでした。

http://pic.dhe.ibm.com/infocenter/wrklight/v5r0m6/topic/com.ibm.worklight.help.doc/apiref/r_wl_client_connect.html _

  • onSuccess(??) はパラメータ/オブジェクトを入力として受け取りますか? もしそうなら、どのタイプ/JSON構造ですか?
  • onFailure は WL.FailResponse 入力オブジェクトを受け取ります - 利用可能なタイプ/JSON 構造定義はありますか?

: http://pic.dhe.ibm.com/infocenter/wrklight/v5r0m6/topic/com.ibm.worklight.help.doc/apiref/r_wl_client_invokeprocedure.html

  • 「失敗ハンドラーは標準の応答オブジェクトを受け取ります」と書かれています。...「標準応答オブジェクト」の型定義はありますか?

: http://pic.dhe.ibm.com/infocenter/wrklight/v5r0m6/topic/com.ibm.worklight.help.doc/apiref/r_wl_client_setheartbeatinterval.html

WorkingOffline PDF: http://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v600/05_04_Working_offline.pdfそれは言う: " WL.Events.WORKLIGHT_IS_CONNECTED および WL.Events.WORKLIGHT_IS_DISCONNECTED イベントの両方指定された場合にハートビートで解雇される」

  • 「指定事案」とは?
    • ハートビートが初めて (または毎回) サーバーへの接続に失敗した場合、イベント WL.Events.WORKLIGHT_IS_DISCONNECTED が発生しますか?
    • WL.Events.WORKLIGHT_IS_DISCONNECTED が起動された後、ハートビートは引き続き実行/試行されますか、それとも手動でリセット/再起動する必要がありますか?
    • 実行し続ける場合、ハートビートがサーバーへの最初の接続に成功すると、イベント WL.Events.WORKLIGHT_IS_CONNECTED が発生しますか?
4

1 に答える 1

0

onSuccess で受信するオブジェクトは、バックエンドから返された任意の (JSON) オブジェクトであり、 isSuccessful および errors 属性と共に invocationResult にラップされます。

An object that contains the data that is returned by the invoked procedure, and the invocation status. Its format is as follows:
**invocationResult = {
    isSuccessful: Boolean,
    errors : "Error Message"
    // Procedure results go here
}**
Where:

isSuccessful – Contains true if the procedure invocation succeeded, false otherwise. If the invocation failed, the failure handler for the request is called.
errors – An optional array of strings containing error messages.

そして失敗のために:

The procedure was called but failed. In this case, the invocationResult property is added to the response received by the failure handler. This property has the same structure as the invocationResult property returned to the success handler, but the value of the isSuccessful attribute is false. For the structure of the invocationResult property, see invocationResult.
于 2013-08-22T21:19:49.730 に答える