Message object model
First Claim
1. In a distributed messaging system, a method of using a single message class which supports each of a plurality of distinct message formats to create a message object for a particular message format, the particular message format being one of the plurality of distinct message formats, the method comprising:
- receiving a request to create a message object that is specific to a first message format, wherein the message object is a SOAP object;
accessing a message class which supports each of a plurality of distinct message formats, each of the plurality of distinct message formats comprising a complete message in the each message format, the message class including an envelope, and the envelope comprising a first set of fields and a second set of fields,the first set of fields corresponding to the first message format and used only upon receiving a request to create a message object specific to the first message format,the second set of fields corresponding to a second message format and used only upon receiving a request to create a message object specific to the second message format;
parsing a message contract corresponding to the request to create a message object;
identifying contract attributes, the contract attributes defining a mapping of elements of the message class to portions of the message object;
accessing a set of message values corresponding to the request wherein each of the set of message values is associated with a contract attribute;
based upon the identified attributes and mapping of elements to portions of the message object, populating the first set of fields with message values according to the association with the contract attributes and the mapping of elements;
not populating at least one field of the second set of fields which correspond to the second message format;
creating a message object specific to the first message format, the message object comprising fields corresponding to the first message format populated with corresponding message values, and the message object omitting at least one field from the second set of fields corresponding to the a second message format; and
creating a network protocol description language (NPDL) contract corresponding to the request, the NPDL contract defining how a client is to communicate with a service.
2 Assignments
0 Petitions
Accused Products
Abstract
Embodiments described herein provide for an overall object mode that allows for a single message object to represent multiple messaging formats. A general message object is populated with fields for multiple available messaging formats, which can be appropriately filled with information with fields for both versions 1.1 and 1.2. Depending on which version is being used or desired, the appropriate fields can be populated when creating an instance of the message object. The other fields that do not correspond to that version, however, are left blank.
146 Citations
10 Claims
-
1. In a distributed messaging system, a method of using a single message class which supports each of a plurality of distinct message formats to create a message object for a particular message format, the particular message format being one of the plurality of distinct message formats, the method comprising:
-
receiving a request to create a message object that is specific to a first message format, wherein the message object is a SOAP object; accessing a message class which supports each of a plurality of distinct message formats, each of the plurality of distinct message formats comprising a complete message in the each message format, the message class including an envelope, and the envelope comprising a first set of fields and a second set of fields, the first set of fields corresponding to the first message format and used only upon receiving a request to create a message object specific to the first message format, the second set of fields corresponding to a second message format and used only upon receiving a request to create a message object specific to the second message format; parsing a message contract corresponding to the request to create a message object; identifying contract attributes, the contract attributes defining a mapping of elements of the message class to portions of the message object; accessing a set of message values corresponding to the request wherein each of the set of message values is associated with a contract attribute; based upon the identified attributes and mapping of elements to portions of the message object, populating the first set of fields with message values according to the association with the contract attributes and the mapping of elements; not populating at least one field of the second set of fields which correspond to the second message format; creating a message object specific to the first message format, the message object comprising fields corresponding to the first message format populated with corresponding message values, and the message object omitting at least one field from the second set of fields corresponding to the a second message format; and creating a network protocol description language (NPDL) contract corresponding to the request, the NPDL contract defining how a client is to communicate with a service. - View Dependent Claims (2, 3, 4, 5, 9)
-
-
6. In a distributed messaging system, a computer program product comprising one or more physical computer-readable storage media having encoded thereon computer-executable instructions for implementing a method of using a single message class which supports each of a plurality of distinct message formats to create a message object for a particular message format, the particular message format being one of the plurality of distinct message formats, the method comprising:
-
receiving a request to create a message object that is specific to a first message format, wherein the message object is a SOAP object; accessing a message class which supports each of a plurality of distinct message formats, each of the plurality of distinct message formats comprising a complete message in the each message format, the message class including an envelope, and the envelope comprising a first set of fields and a second set of fields, the first set of fields corresponding to the first message format and used only upon receiving a request to create a message object specific to the first message format, the second set of fields corresponding to a second message format and used only upon receiving a request to create a message object specific to the second message format; parsing a message contract corresponding to the request to create a message object; identifying contract attributes, the contract attributes defining a mapping of elements of the message class to portions of the message object; accessing a set of message values corresponding to the request wherein each of the set of message values is associated with a contract attribute; based upon the identified attributes and mapping of elements to portions of the message object, populating the first set of fields with message values according to the association with the contract attributes and the mapping of elements; not populating at least one field of the second set of fields which correspond to the second message format; creating a message object specific to the first message format, the message object comprising fields corresponding to the first message format populated with corresponding message values, and the message object omitting at least one field from the second set of fields corresponding to the a second message format; and creating a network protocol description language (NPDL) contract corresponding to the request, the NPDL contract defining how a client is to communicate with a service. - View Dependent Claims (7, 8, 10)
-
Specification