Ibm mobilefirst Worklight适配器调用Http删除方法不工作

Ibm mobilefirst Worklight适配器调用Http删除方法不工作,ibm-mobilefirst,worklight-adapters,http-delete,Ibm Mobilefirst,Worklight Adapters,Http Delete,请参阅此链接。 我在正文中添加了内容,但收到了500条回复。邮递员和其他客户也提出了同样的请求。我认为这是worklight的问题 我的请求: HEADERS Accept: xxxx Accept-Encoding: gzip, deflate Consumer: xxx Content-Length: 199 Content-Type: application/x-www-form-urlencoded Contract: x Cookie: xxxxx User-Agent: runsco

请参阅此链接。 我在正文中添加了内容,但收到了500条回复。邮递员和其他客户也提出了同样的请求。我认为这是worklight的问题

我的请求:

HEADERS
Accept: xxxx
Accept-Encoding: gzip, deflate
Consumer: xxx
Content-Length: 199
Content-Type: application/x-www-form-urlencoded
Contract: x
Cookie: xxxxx
User-Agent: runscope/0.1

PARAMETERS
list: {xxx:xxxx}
BODY view formatted
list= {xxx:xxx}
实施代码:

var input = {
   method : 'delete',
   returnedContentType : 'xml',
   path : 'xxx'

   headers : {
    Accept : 'xxx',
    Consumer : 'xxx',
    Contract : 'x',
    Cookie : xxx,
    contentType : 'application/x-www-form-urlencoded'
   },



      body : {
       contentType : 'application/x-www-form-urlencoded',
       content : 'list={"one": "two","key": "value"}'
    }
  };

var response = WL.Server.invokeHttp(input);

HTTP DELETE方法不允许使用正文中提供的任何内容。因此,服务器将返回错误也就不足为奇了。从技术上讲,响应应该是400,而不是500。

Worklight版本-6.2.0.0和内部版本号…?com.Worklight.studio.plugin_6.2.0.00-20140724-2139。请使用尝试使用DELETE方法调用的适配器实现代码编辑问题。您还可以尝试使用最新版本Worklight 6.2 Fix Pack 2吗?