Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make SoapUI json request work with german umlauts?

We use SoapUI for many interfaces in our team project. We came across a problem with german special signs, called umlauts. When sending a POST request with Json body and a german umlaut, the we get com.fasterxml.jackson.databind.JsonMappingException. It cannot be parsed with com.fasterxml.jackson.databind.ObjectMapper.

SoapUI Json request

But when sending the same request using POSTMAN, then it works like a charm. Postman Json request

We use @Consumes({MediaType.APPLICATION_JSON + "; charset=utf-8"}) annotations and Content-Type: application/json; charset=utf-8 header. But still no effect. Has anyone ever came across such a problem or know how to solve it? We cannot change the testing tool.

like image 671
Mateusz Sobala Avatar asked Mar 22 '16 10:03

Mateusz Sobala


People also ask

Can we use JSON in SOAP UI?

SoapUI parses the REST messages for you, and makes it very easy to view and edit the request and response headers as well as the JSON and XML payloads.


1 Answers

In SoapUI there is an additional property for setting the encoding of your request.

It is available under the tab Request Properties. Property: Encoding, Value: UTF-8.

Setting it as above solved our problem.

like image 189
Mateusz Sobala Avatar answered Oct 02 '22 23:10

Mateusz Sobala