Methods and systems providing metadata in service signatures
Methods and systems providing metadata-containing messages that will minimize any adverse impact on processing of a service when raised. A metadata-containing message may be declared in a signature of a service. When a condition corresponding to the message occurs during service processing, the message may be generated while minimizing any adverse impact on processing of the service. The message may be made available to an entity interested in the message.
1 . A method, implemented by a computer processor coupled to a memory, for providing metadata-containing messages to interested entities while minimizing adverse impact on service processing comprising:
declaring a metadata-containing message in a signature of a service;
when a condition corresponding to the message occurs, generating the message in a manner minimizing adverse impact on service processing; and
making the message available to an entity interested in the message.
2 . The method of claim 1 , further comprising raising the message when the condition corresponding to the condition occurs.
3 . The method of claim 2 , further comprising catching the message.
4 . The method of claim 2 , further comprising catching the message immediately after it is raised.
5 . The method of claim 1 , further comprising creating the message when the condition corresponding to the message occurs.
6 . The method of claim 1 , wherein the message is modeled as an exception.
7 . The method of claim 1 , wherein the interested entity is a consumer that called the service.
8 . The method of claim 7 , further comprising remapping a field name upon crossing a contextual boundary between the service and the consumer.
9 . The method of claim 7 , further comprising remapping a node upon crossing a contextual boundary between the service provider and the service consumer.
10 . The method of claim 7 , further comprising remapping the message upon crossing a contextual boundary between the service provider and the service consumer.
11 . The method of claim 1 , wherein the interested entity provides the service.
12 . The method of claim 1 , wherein the interested entity listens for the message.
13 . A computer system comprising:
a memory; and
a processor coupled to the memory, the processor operable to:
declare a metadata-containing message in a signature of a service;
generate the message upon the occurrence of a condition corresponding to the message in a manner minimizing adverse impact on service processing; and
make the message available to an entity interested in the message.
14 . The system of claim 13 , wherein the processor is operable to raise the message when the condition corresponding to the condition occurs.
15 . The system of claim 14 , wherein the processor is operable to catch the message.
16 . The system of claim 13 , wherein the processor is operable to create the message when the condition corresponding to the message occurs.
17 . The system of claim 13 , wherein the processor is operable to model the message as an exception in the signature.
18 . The system of claim 13 , wherein the interested entity is a consumer that called the service.
19 . The system of claim 13 , wherein the interested entity is a provider of the service.
20 . A computer-readable medium storing a set of instructions that, when executed, performs a method, the method comprising:
declaring a metadata-containing message in a signature of a service;
when a condition corresponding to the message occurs, generating the message in a manner minimizing adverse impact on service processing; and
making the message available to an entity interested in the message.