Algorithm to marshal/unmarshal XML schema annotations to SDO dataobjects
AssigneeInternational Business Machines Corporation
InventorsChristopher Shane Claussen, Zeenat Kulkarni, Yang Zhong
Life of this patent
Estimating the term…
Abstract
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.
Claims8
A method in a data processing system, for transmitting a data object from a sender to a recipient, the method comprising:
- identifying a type information for the data object, wherein the data object is a type of service data object;
- marshaling the data object into a transmission format element using an application program executing on a processor of the data processing system, wherein marshaling comprises retrieving a schema information from a sender extensible markup language schema registry and serializing the data object into extensible markup language according to the schema information, and wherein the data object comprises a representation of a data structure created by an application programming framework;
- annotating the transmission format element with the type information to create an annotated transmission format element;
- sending the annotated transmission format element from the sender to the recipient;
- receiving the annotated transmission format element at the recipient;
- extracting the type information from the annotated transmission format element at the recipient;
- using the type information extracted from the annotated transmission format element to retrieve the schema information from a recipient extensible markup language schema registry at the recipient;
- and
- unmarshaling the annotated transmission format element into the data object at the recipient based on the schema information retrieved from the recipient extensible markup language schema registry.
A system comprising:
- a network;
- a sending device connected to the network, wherein the sending device identifies a type information for the data object, marshals the data object into a transmission format element using an application program executing on a processor of a data processing system by retrieving a schema information from a sender extensible markup language schema registry connected to the sending device, serializes the data object into extensible markup language according to the schema information, annotates the transmission format element with the type information to create an annotated transmission format element, and sends the annotated transmission format element from the sending device to a recipient device, wherein the data object is a type of service data object comprising a representation of a data structure created by an application programming framework;
- and
- the recipient device connected to the network, wherein the recipient device receives the annotated transmission format element at the recipient, extracts the type information from the annotated transmission format element at the recipient device, uses the type information extracted from the annotated transmission format element to retrieve the schema information from a recipient extensible markup language schema registry, and unmarshals the annotated transmission format element into the data object at the recipient device based on the schema information retrieved from the recipient extensible markup language schema registry.
A computer program product comprising:
- a computer usable storage-type medium having computer usable program code for transmitting a data object, the computer usable program code configured to cause a processor of a computer to perform the following:
- identifying a type information for the data object, wherein the data object is a type of service data object;
- marshaling the data object into a transmission format element using an application program executing on a processor of the data processing system, wherein marshaling comprises retrieving a schema information from a sender extensible markup language schema registry and serializing the data object into extensible markup language according to the schema information, and wherein the data object comprises a representation of a data structure created by an application programming framework;
- annotating the transmission format element with the type information to create an annotated transmission format element;
- sending the annotated transmission format element from a sender to a recipient;
- receiving the annotated transmission format element at the recipient;
- extracting the type information from the annotated transmission format element at the recipient;
- using the type information extracted from the annotated transmission format element to retrieve the schema information from a recipient extensible markup language schema registry at the recipient;
- and
- unmarshaling the annotated transmission format element into the data object at the recipient based on the schema information retrieved from the recipient extensible markup language schema registry.
Dependencies are inferred from the claim text.