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

孤人 提交于 2019-12-13 04:49:23

问题


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:


JavaScript adapters do not support multi-part.

You have two options:

  1. In MFPF 6.3, use Java in JavaScript adapters
  2. Upgrade to MFPF 7.0, which now provides Java adapters

You can then try to implement the following (or similar for your specific use case): How can I make a multipart/form-data POST request using Java?

If the form post is not directed at a backend protected by Worklight's security framework, then you could also opt to not use adapters at all: Sending multipart/formdata with jQuery.ajax



来源:https://stackoverflow.com/questions/29814627/constructing-a-multipart-form-request-in-a-adapter-using-mobilefirst-version-6-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!