constructing a multipart form request in a adapter using MobileFirst version 6.3

时间:2015-04-23 05:41:03

标签: ibm-mobilefirst

i have a application from which i need to construct a multipart form in a HTTP adapter and send it to webservice using WL.Server.invokeHttp. is there a way by which i can achieve this?.

1 个答案:

答案 0 :(得分:1)

JavaScript适配器不支持多部分。

您有两种选择:

  1. 在MFPF 6.3中,use Java in JavaScript adapters
  2. 升级到MFPF 7.0,现在提供Java adapters
  3. 然后,您可以尝试实施以下内容(或针对您的特定用例的类似内容):How can I make a multipart/form-data POST request using Java?

    如果表单帖子不是针对受Worklight安全框架保护的后端,那么您也可以选择不使用适配器:Sending multipart/formdata with jQuery.ajax