Forum Discussion
Hi nmroa
I'm currently using version 1.9.0. Unfortunately, I don't have a WSDL file so I cannot do it that way. I have also looks through that documentation and didn't find anything helpful.
That was a typo, it is wadl not wsdl if you are using a REST API.
wadl / swagger definition is something similar to wsdl for SOAP, acts a contract between the different parties who interact.
Otherwise, you have to add the artifacts manually which may be tedious if you many methods in the API.
You can have a look this video to get an idea
- mchiang9 years agoNew Contributor
The workaround to perform is to remove the name via Groovy. You can change it by using the below Groovy script in event handler FilterRequest.filterRequest:
def bodyPart1 = context.getProperty("httpMethod").requestEntity.message.content.getBodyPart(0)
bodyPart1.removeHeader("Content-Type")
bodyPart1.addHeader("Content-Type","application/json")