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?.
答案 0 :(得分:1)
JavaScript适配器不支持多部分。
您有两种选择:
然后,您可以尝试实施以下内容(或针对您的特定用例的类似内容):How can I make a multipart/form-data POST request using Java?
如果表单帖子不是针对受Worklight安全框架保护的后端,那么您也可以选择不使用适配器:Sending multipart/formdata with jQuery.ajax