cancel
Showing results for 
Search instead for 
Did you mean: 

Call HTTP POST method with parameters in hierarchical request structure

former_member215917
Active Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member215917
Active Participant
0 Kudos

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