Skip to Content
0

Call HTTP POST method with parameters in hierarchical request structure

Oct 04, 2017 at 12:00 AM

65

avatar image

Hi,

I have a requirement to pass request to HTTP web service as follows.

{ XYZ:

{ 'Par1': 'Val1',

'Par2': 'Val2'

}

}

i am able to use method set form fields to set fields Par1 and Par2 in request structure but getting error as "Failed to transform from "json" to "java.util.HashMap". (org.mule.api.transformer.TransformerMessagingException)."

Can you please suggest how to pass XYZ to request?

thank you.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Gouri Patil May 04 at 07:13 PM
-1

Solved. Issue was because web-service was not configured to accept multiple records (array).

Share
10 |10000 characters needed characters left characters exceeded