Get API Operation in Webservices is not taking the json raw body provided in IDN

Hello,
I have configured a web service connector Account Aggregation API as following:

  • Operation type: Account aggregation
  • HTTP Method: GET
    Header is having Bearer [This one is working fine]
  • JSON body: (as raw)

{

"appname" : "text",

"type" : "user"

}

the above api call is to get all users but in IDN the api call is running as if json body is not exists.

Even i try to add the bode in before rule as follows but still the body is not going into GET API call. Can some one suggest how to pass the json body.

Map bodyMap = new HashMap();
      bodyMap.put("bodyFormat", "raw");
      String xmlBody = "{\"appname\":\"text\",\"type\":\"user\"}";
     
      bodyMap.put("jsonBody", JsonUtil.render(xmlBody)); 
      requestEndPoint.setBody(bodyMap);

Hi,

Can you try this in postman once? Generally GET API call will not require body to be sent.

-Abhinov

Hi @guttays Can you check the method is either GET or POST for xml you may get POST method for Account aggregation. Please verify once and lmk.

Thanks.

Ok thank you . Yes GET API doesn’t accept body we asked team to update the GET API

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.