Unfortunately, the solution I've come up with does not solve exactly the given problem, but I've found a great workaround. If you are struggling to map input XML into some sort of class instance, you can try working it around by mapping the response into JsonNode, which gives you a Json-like tree, which is in turn is not an exact representation of source xml, because it doesn't contain attributes of tags, but it does contain values stored within the tags!
What you can do is:
- Accept response as String. So in my code:
...
.bodyToMono(OperationStateResponseBody.class)
...
becomes: