My issue seems simple, but I’m having a hard time solving it.
I have a XML string and I want to convert it to a document.
So far so good.
I use the service xmlNodeToDocument, passing the document type name as input and I have the document.
The problem is that my document have some Java types in it, like double, int, date and boolean.
When I use the xmlNodeToDocument, even though I’m passing the document type name as input, the result document is created with all fields as String, then, when I try to publish that document to the broker, I get an error complaining about these fields that not match the type.
Does anyone have a solution for that?