Claus Ibsen created CAMEL-27375:
-----------------------------------

             Summary: XML <-> JSON driven by an XML Schema (XSD), for SOAP 
payloads without generated classes
                 Key: CAMEL-27375
                 URL: https://issues.apache.org/jira/browse/CAMEL-27375
             Project: Camel
          Issue Type: New Feature
          Components: camel-cxf
            Reporter: Claus Ibsen


For low-code SOAP (YAML routes and Kamelets with camel-cxf PAYLOAD mode), a 
generic XML to JSON mapping (camel-xj) loses information: every value is text, 
one repeated element gives an object and two give an array, and the field order 
and namespaces must be known when going back to XML.

Proposal, as was done for Protobuf with CAMEL-27329: a data format or camel-xj 
option that takes an XSD (or the types of a WSDL) and a root element, and maps 
XML to JSON and back with the types, arrays, order and namespaces of the 
schema. Keep the schema handling in a separate module if it brings heavy 
dependencies.

Found while adding new Kamelets to the Kamelet catalog (apache/camel-kamelets, 
2026-11-21).



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to