在WL.Client.InvokeProcedure中使用第三个参数 [英] Use of third parameter in the WL.Client.InvokeProcedure

查看:279
本文介绍了在WL.Client.InvokeProcedure中使用第三个参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在worklight 6中使用客户端API WL.Client.InvokeProcedure(invocationData,options,UseSendInvoke)但是我找不到参数的描述< API中的code> UseSendInvoke 。你们知道它是什么吗?

I am using the client side API WL.Client.InvokeProcedure(invocationData, options, UseSendInvoke) in worklight 6. But I could not find a description for the parameter UseSendInvoke in the API. Do you guys know what it is?

推荐答案

这个参数由WL认证框架在内部使用。从技术上讲,开发人员不应该有理由使用它。

This parameter is used internally by WL authentication framework. Technically there should not be a reason for developer to use it.

有几种方法可以调用适配器。

There are several ways to invoke adapters.

(1)第一个是通过客户端申请。这是您使用WL.Client.invokeProcedure(invocationData,options)API的地方。

(1) First one is via client application. This is where you use WL.Client.invokeProcedure(invocationData, options) API.

(2)其次是使用适配器调用服务 - http://pic.dhe.ibm.com/infocenter/wrklight/v6r0m0/index.jsp?话题=%2Fcom.ibm.worklight.help.doc%2Fdevref%2Fc_adapter_invocation_service.html 。基本上向WL服务器发出http请求并从适配器获取响应。 RPC风格。

(2) Second is by using adapter invocation service - http://pic.dhe.ibm.com/infocenter/wrklight/v6r0m0/index.jsp?topic=%2Fcom.ibm.worklight.help.doc%2Fdevref%2Fc_adapter_invocation_service.html. Basically issuing an http request to WL server and getting a response from adapter. RPC style.

当您通过(1)进行操作时 - 您有两个身份验证层 - 第一个是为应用程序定义的安全性测试,第二个是为适配器过程定义的安全性测试。

When you're doing it via (1) - you have two authentication layers - first is security test defined for application, second is security test defined for adapter procedure.

当您通过(2)进行操作时 - 只有一个安全层 - 为适配器程序定义的安全测试。

When you're doing it via (2) - there is only one security layer - security test defined for adapter procedure.

UseSendInvoke参数(再一次,用于内部使用)意味着您的应用程序将通过路径(2)而不是常规路径(1)。

UseSendInvoke param (which is, once again, for internal usage) means that your application will go via path (2) instead of regular path (1).

这篇关于在WL.Client.InvokeProcedure中使用第三个参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆