WSO2 ESB API资源中的内部服务器错误

WSO2 ESB API资源中的内部服务器错误,api,rest,wso2,wso2esb,Api,Rest,Wso2,Wso2esb,我试图通过WSO2 ESB中的api资源调用tomcat中的web服务 资源是: <resource methods="DELETE" url-mapping="/weight/delete"> <inSequence> <log level="custom"> <property name="Access token value" expression="$trp:Authorization"/> </log> &

我试图通过WSO2 ESB中的api资源调用tomcat中的web服务

资源是:

<resource methods="DELETE" url-mapping="/weight/delete">
<inSequence>
  <log level="custom">
    <property name="Access token value" expression="$trp:Authorization"/>
  </log>
  <oauthService remoteServiceUrl="https://host:port/services/" username="username" password="password"></oauthService>
  <header name="Authorization" scope="transport" action="remove"></header>
  <send>
    <endpoint>
      <address uri="http://host:8080/web-services/services/proyect1"></address>
    </endpoint>
  </send>
</inSequence>
请求是:

  • 方法:删除
  • 负责人:授权人:持证人89712389712hd97861h
  • 有效载荷:[{“id”:“307”}]

将请求直接发送到tomcat是正确的。

根据REST,HTTP中的delete方法不能包含内容负载。那么,这是不正确的

但是,为了解决这个问题,我可以在WSO2中使用PayLoadFactory中介将JSON发送到端点

Caused by: com.fasterxml.jackson.databind.JsonMappingException: No content to map due to end-of-input