Algorithm for updating XML schema registry using schema pass by value with message
First Claim
Patent Images
1. A system for transmitting a data object, the system comprising:
- a network; and
a sending device connected to the network, wherein the sending device includes a processor and a memory, and wherein the sending device places each schema in a plurality of schemas into a corresponding scope in a plurality of scopes within an overall schema registry composed of a plurality of schema registries, each schema registry corresponding to a different scope in the plurality of scopes;
organizes the plurality of schema registries into a hierarchy as defined by the plurality of scopes, wherein schemas within parent scopes are available to children scopes in the hierarchy and not available to other scopes that are not children;
consults the overall schema registry to determine a corresponding schema having a particular scope to marshal a first data object of a first data type into a first transmission format element;
marshals the first data object of the first data type into the first transmission format element;
adds schema information for the first data object of the first data type to the first transmission format element;
sends the first transmission format element to a recipient device via the network;
updates a schema registry at the recipient device with the schema information according to the particular scope of the corresponding schema, wherein the particular scope of the corresponding schema is mapped to a substitute scope in response to the particular scope being different from scopes in the schema registry at the recipient device;
marshals a second data object into a second transmission format element, wherein the second data object is of the first data type;
determines whether the first data type was previously transmitted to the recipient device; and
sends the second transmission format element without the schema information to the recipient device in response to a determination that the first data type was previously transmitted to the recipient device and the second data object is of the first data type.
0 Assignments
0 Petitions
Accused Products
Abstract
Schema information is provided with transmission of a data object. When a data object is converted to a transmission format, schema information for the object type is added to the transmission format element. The unmarshalling code uses the schema information to update a schema registry at the receiving end. The schema registry may then be used as a tool for converting the transmission format element back to the data element. The next time an object of that object type is sent to the recipient, the schema information is not added to the transmission format element.
-
Citations
19 Claims
-
1. A system for transmitting a data object, the system comprising:
-
a network; and a sending device connected to the network, wherein the sending device includes a processor and a memory, and wherein the sending device places each schema in a plurality of schemas into a corresponding scope in a plurality of scopes within an overall schema registry composed of a plurality of schema registries, each schema registry corresponding to a different scope in the plurality of scopes;
organizes the plurality of schema registries into a hierarchy as defined by the plurality of scopes, wherein schemas within parent scopes are available to children scopes in the hierarchy and not available to other scopes that are not children;
consults the overall schema registry to determine a corresponding schema having a particular scope to marshal a first data object of a first data type into a first transmission format element;
marshals the first data object of the first data type into the first transmission format element;
adds schema information for the first data object of the first data type to the first transmission format element;
sends the first transmission format element to a recipient device via the network;
updates a schema registry at the recipient device with the schema information according to the particular scope of the corresponding schema, wherein the particular scope of the corresponding schema is mapped to a substitute scope in response to the particular scope being different from scopes in the schema registry at the recipient device;
marshals a second data object into a second transmission format element, wherein the second data object is of the first data type;
determines whether the first data type was previously transmitted to the recipient device; and
sends the second transmission format element without the schema information to the recipient device in response to a determination that the first data type was previously transmitted to the recipient device and the second data object is of the first data type. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer program product stored in a non-transitory computer readable storage medium having computer usable program code embodied therein that is executable by a computer for transmitting a data object, the computer program product comprising:
-
computer usable program code for placing each schema in a plurality of schemas into a corresponding scope in a plurality of scopes within an overall schema registry composed of a plurality of schema registries, each schema registry corresponding to a different scope in the plurality of scopes; computer usable program code for organizing the plurality of schema registries into a hierarchy as defined by the plurality of scopes, wherein schemas within parent scopes are available to children scopes in the hierarchy and not available to other scopes that are not children; computer usable program code for consulting the overall schema registry to determine a corresponding schema having a particular scope to marshal a first data object of a first data type into a first transmission format element; computer usable program code for marshaling the first data object of the first data type into the first transmission format element; computer usable program code for adding schema information for the first data object of the first data type to the first transmission format element; computer usable program code for sending the first transmission format element from a sender to a recipient; computer usable program code for updating a schema registry at the recipient with the schema information according to the particular scope of the corresponding schema, wherein the particular scope of the corresponding schema is mapped to a substitute scope in response to the particular scope being different from scopes in the schema registry at the recipient; computer usable program code for marshaling a second data object into a second transmission format element, wherein the second data object is of the first data type; computer usable program code for determining by the sender whether the first data type was previously transmitted to the recipient; and computer usable program code for sending the second transmission format element without the schema information to the recipient in response to a determination by the sender that the first data type was previously transmitted to the recipient and the second data object is of the first data type. - View Dependent Claims (8, 9, 10, 11, 12, 13)
-
-
14. A computer implemented method for transmitting a data object, the computer implemented method comprising:
-
placing each schema in a plurality of schemas into a corresponding scope in a plurality of scopes within an overall schema registry composed of a plurality of schema registries, each schema registry corresponding to a different scope in the plurality of scopes; organizing the plurality of schema registries into a hierarchy as defined by the plurality of scopes, wherein schemas within parent scopes are available to children scopes in the hierarchy and not available to other scopes that are not children; consulting the overall schema registry to determine a corresponding schema having a particular scope to marshal a first data object of a first data type into a first transmission format element; marshaling the first data object of the first data type into the first transmission format element based on the corresponding schema having the particular scope; adding schema information for the first data object of the first data type to the first transmission format element; sending the first transmission format element from a sending device to a recipient device via a network; updating a schema registry at the recipient device with the schema information according to the particular scope of the corresponding schema, wherein the particular scope of the corresponding schema is mapped to a substitute scope in response to the particular scope being different from scopes in the schema registry at the recipient device; marshaling a second data object into a second transmission format element, wherein the second data object is of the first data type; determining by the sending device whether the first data type was previously transmitted to the recipient device; and responsive to a determination by the sending device that the first data type was previously transmitted to the recipient device and the second data object is of the first data type, sending the second transmission format element without the schema information to the recipient device. - View Dependent Claims (15, 16, 17, 18, 19)
-
Specification