XML Schema Annotation Marshaling for Data Object Reconstruction
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Developers face challenges in converting data objects between different formats during transmission, as they must manually write code to convert and reconstruct data objects, which is cumbersome and inefficient, especially when dealing with new object types.
Innovation Solution
Incorporating type information into the transmission format of data objects, allowing unmarshalling code to utilize this information to reconstruct the data object from the transmission format without prior knowledge of the specific schema.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If developers manually write conversion code for each data object type, then the conversion process can be completed, but the complexity and time required increases significantly
Solution Approach 1:
The patent introduces type information as an intermediary element that mediates between the transmission format and the unmarshalling code. This type information contains schema annotations that automatically guide the reconstruction process, eliminating the need for complex manual conversion code while ensuring accurate reconstruction of data objects.
Solution Approach 2:
The patent applies preliminary action by embedding type information and schema annotations into the transmission format before data transmission. This pre-prepared information allows the receiving system to automatically reconstruct data objects without requiring complex runtime conversion logic, thereby reducing code complexity while maintaining reliability.
2Adaptability or versatility
If developers manually write reconstruction code for new object types, then new types can be handled, but the development time and effort increase
Solution Approach 1:
The patent creates a universal solution by designing a transmission format that includes type information applicable to all data object types. This universal approach allows the same unmarshalling mechanism to handle any object type automatically through schema annotations, eliminating the need to write specialized reconstruction code for each new type and significantly reducing development time while maintaining full adaptability.
Solution Approach 2:
The patent enables self-service by allowing the transmission format to carry its own type information and schema annotations. When data objects are transmitted, they include embedded metadata that enables automatic self-reconstruction at the receiving end without requiring external conversion code, thereby accelerating the handling of new object types while maintaining versatility.
3Productivity
If type information is added to transmission format, then unmarshalling becomes automatic, but the transmission format complexity increases
Solution Approach 1:
The patent merges type information and schema annotations directly into the transmission format structure. By combining the data payload with its metadata in a unified format, the system achieves automatic unmarshalling without requiring separate complex processing systems. The merged format includes type identifiers and schema references that enable efficient automatic reconstruction while keeping the overall structure manageable through standardized XML schema definitions.
Data Source
AI summary
When a data object is sent from one application to another, the marshaling code includes type information with transmission of the data object. When the data object is converted to the transmission format, type information for the data object is added to the transmission format element. The unmarshaling code uses the type information to obtain schema information for converting the transmission format element back to the data element.


