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:
- In MFPF 6.3, use Java in JavaScript adapters
- 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
标签:
ibm-mobilefirst