<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.expertiza.ncsu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Chargers</id>
	<title>Expertiza_Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.expertiza.ncsu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Chargers"/>
	<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Special:Contributions/Chargers"/>
	<updated>2026-07-01T21:18:44Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki3_19_rn&amp;diff=29801</id>
		<title>CSC/ECE 517 Fall 2009/wiki3 19 rn</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki3_19_rn&amp;diff=29801"/>
		<updated>2009-11-21T17:11:16Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* '''INTRODUCTION''' */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;='''PROBLEM STATEMENT'''=&lt;br /&gt;
The principle that an access (read or write) to a feature of an object should be written the same whether the feature is an instance variable or method. Look at the current Wikipedia article on the subject and expand on it. Consider the reason for this principle and try to find countervailing arguments against it. Note that since you are expanding on the current article, it is fine to lift text that is in the Wikipedia article right now.&lt;br /&gt;
&lt;br /&gt;
='''INTRODUCTION'''=&lt;br /&gt;
The '''Uniform Access Principle''' was put forth by [[Bertrand Meyer]].  It states &amp;quot;All services offered by a module should be available through a uniform notation, which does not betray whether they are implemented through storage or through computation.&amp;quot;  This principle applies generally to [[object-oriented]] [[programming languages]].  In simpler form, it states that there should be no difference between working with an [[Attribute (computing)|attribute]], precomputed [[Property (programming)|property]], or [[Method (computer science)|method]]/[[query]].&lt;br /&gt;
&lt;br /&gt;
Many languages have various degrees of support for UAP, where some of the implementations violate the spirit of UAP. The inclusion of 'properties' in some programming languages is another way to address the problem that Meyer discusses. Properties don't provide a uniform notation, but they do make the call to the method which provides a service opaque .&lt;br /&gt;
&lt;br /&gt;
= '''UAP Example''' =&lt;br /&gt;
If a language allows access to a variable via dot-notation and assignment &amp;lt;pre&amp;gt;Foo.bar = 5 //Assigns 5 to the object variable &amp;quot;bar&amp;quot;&amp;lt;/pre&amp;gt; then these operations should be the same :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//Assume print displays the variable passed to it, with or without parens&lt;br /&gt;
//Assume Foo.bar = 5 for now&lt;br /&gt;
print Foo.bar&lt;br /&gt;
print Foo.bar()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
When executed, should display :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
5&lt;br /&gt;
5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This allows the object to still hide information as well as being easy to access.&lt;br /&gt;
&lt;br /&gt;
The same should be true for setting the data.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Foo.bar = 5&lt;br /&gt;
Foo.bar(5)&lt;br /&gt;
//These should achieve the same goal&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''EXPLAINATION OF EXAMPLE''' &lt;br /&gt;
&lt;br /&gt;
Say that bar is a feature of a class named Foo. For languages that do not support the Uniform Access Principle, the notation used to access bar differs depending on whether it is an attribute (storage) or a function (computation). For example, in Java you would use foo.bar if it were an attribute, but you would use foo.bar() if it were a function. Having this notational difference means that users of Foo are exposed to unnecessary implementation details and are tightly coupled to Foo. If bar is changed from attribute to method (or vice versa), then any users of Foo must also be changed. &lt;br /&gt;
&lt;br /&gt;
='''UAP SUPPORT IN LANGUAGES'''=&lt;br /&gt;
'''The Languages that Support UAP are:'''&lt;br /&gt;
&lt;br /&gt;
* Eiffel &lt;br /&gt;
* Ruby &lt;br /&gt;
* Visual Basic &lt;br /&gt;
&lt;br /&gt;
'''The Languages that don't support UAP are:'''&lt;br /&gt;
&lt;br /&gt;
* Ada&lt;br /&gt;
* Java&lt;br /&gt;
* C #&lt;br /&gt;
* C++ &lt;br /&gt;
* Perl&lt;br /&gt;
* Small Talk&lt;br /&gt;
&lt;br /&gt;
[[Image:Uap.png]]&lt;br /&gt;
&lt;br /&gt;
'''Explanation:''' As we can see in the figure, in the languages that do not support UAP, the method balance has to be called in a specific manner, depending upon its prototype of the method in the class in which it is defined. Where as in Eiffel, a language that supports UAP, the specific details of balance are not important to the function call.&lt;br /&gt;
&lt;br /&gt;
= '''Languages Supporting UAP WITH EXAMPLES''' =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== [[Ruby programming language|Ruby]] ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 class Foo&lt;br /&gt;
  attr_reader :x&lt;br /&gt;
  def initialize(x)&lt;br /&gt;
    @x = x&lt;br /&gt;
  end&lt;br /&gt;
  def squared_x&lt;br /&gt;
    return @x * @x&lt;br /&gt;
  end&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
y = Foo.new(2)&lt;br /&gt;
puts y.x&lt;br /&gt;
puts y.squared_x&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Output for Above Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2&lt;br /&gt;
4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Observation:''' Note how even though &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; is an attribute and &amp;lt;code&amp;gt;squared_x&amp;lt;/code&amp;gt; is a parameterless method call, they are accessed the same way.&lt;br /&gt;
&lt;br /&gt;
=== [[Python (programming language)|Python]] ===&lt;br /&gt;
&lt;br /&gt;
The following example uses python properties.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
class Foo(object):&lt;br /&gt;
    def __init__(self, x):&lt;br /&gt;
        self.setx(x)&lt;br /&gt;
&lt;br /&gt;
    def getx(self):&lt;br /&gt;
        return self.__x&lt;br /&gt;
&lt;br /&gt;
    def setx(self, x):&lt;br /&gt;
        if type(x) != int:&lt;br /&gt;
            raise ValueError('Not an integer')&lt;br /&gt;
        self.__x = x&lt;br /&gt;
&lt;br /&gt;
    def getsquared_x(self):&lt;br /&gt;
        return self.x * self.x&lt;br /&gt;
    &lt;br /&gt;
    x = property(getx,setx, doc=&amp;quot;x attribute of Foo object&amp;quot;)&lt;br /&gt;
    squared_x = property(getsquared_x, doc=&amp;quot;getter for squared x&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
y = Foo(2)&lt;br /&gt;
print y.x&lt;br /&gt;
print y.squared_x&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Outputs for the Above Example&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2&lt;br /&gt;
4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''Observation:''' [[Python (programming language)#Objects|Python properties]] may be used to allow a method&lt;br /&gt;
to be invoked with the same syntax as accessing an attribute.  Whereas Meyer's UAP would have&lt;br /&gt;
a single notation for both attribute access and method invocation (method invocation syntax), &lt;br /&gt;
a language with support for properties still supports separate notations for attribute&lt;br /&gt;
and method access.  Properties allow the attribute notation to be used to invoke a method &lt;br /&gt;
where that is desirable.&lt;br /&gt;
&lt;br /&gt;
=== [[Php|PHP]] ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
class Foo{&lt;br /&gt;
    private $x;&lt;br /&gt;
&lt;br /&gt;
    function __construct($x){&lt;br /&gt;
        $this-&amp;gt;x = $x;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    function x(){&lt;br /&gt;
        return $this-&amp;gt;x;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    function squared_x(){&lt;br /&gt;
        return $this-&amp;gt;x * $this-&amp;gt;x;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$y = new Foo(2);&lt;br /&gt;
echo $y-&amp;gt;x();&lt;br /&gt;
echo $y-&amp;gt;squared_x();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Outputs for the above Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2&lt;br /&gt;
4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Observation:''' There are many other ways to achieve the same functionality in PHP, for example making &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; &amp;lt;code&amp;gt;public&amp;lt;/code&amp;gt; and accessing it directly or using magic methods &amp;lt;code&amp;gt;function __get($variable)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= '''Languages NOT Supporting UAP WITH EXAMPLES''' =&lt;br /&gt;
=== [[Java programming language|Java]] ===&lt;br /&gt;
 import java.util.* ;&lt;br /&gt;
 class BankAccount {&lt;br /&gt;
 ….&lt;br /&gt;
 public int balance(){&lt;br /&gt;
 int depositSum = 0;&lt;br /&gt;
 int withdrawalSum = 0;&lt;br /&gt;
 for (int i = 0; i &amp;lt; deposits.size(); i++){&lt;br /&gt;
 depositSum = depositSum + ((Integer)deposits.get(i)).intValue();&lt;br /&gt;
 }&lt;br /&gt;
 for (int i = 0; i &amp;lt; withdrawals.size(); i++){&lt;br /&gt;
 withdrawalSum = withdrawalSum +&lt;br /&gt;
 ((Integer) withdrawals.get(i)).intValue();&lt;br /&gt;
 }&lt;br /&gt;
 return depositSum – withdrawalSum;&lt;br /&gt;
 }&lt;br /&gt;
 …&lt;br /&gt;
 protected ArrayList deposits;&lt;br /&gt;
 protected ArrayList withdrawals;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
'''Observation:''' When looking at the code deposits.size(), the client can immediately see that deposits is an attribute (a “field” in Java terminology) and that size is a routine of class ArrayList (a “method” in Java terminology) because there is no opening and closing parentheses to access attributes whereas parentheses are compulsory for routine calls. This policy breaks the principle of Uniform Access; clients should not know whether a service is implemented by computation (routine) or by storage (attribute).&lt;br /&gt;
&lt;br /&gt;
=== [[Small Talk programming language|Small Talk]] ===&lt;br /&gt;
&lt;br /&gt;
In SmalltalkLanguage, UAP is not supported. But since variables are local to objects, you only have to worry about the difference within that object's methods, and nowhere else. By insisting that every variable access (even local ones) be through a getter/setter, UAP can be supported in Smalltalk. This is also extraordinarily helpful if the object in question is persistent, and therefore subject to various db synchronization/transaction issues.&lt;br /&gt;
&lt;br /&gt;
= '''ADVANTAGES OF UAP''' =&lt;br /&gt;
&lt;br /&gt;
Some of the Advantages of using UAP are as follows:-&lt;br /&gt;
&lt;br /&gt;
*Hiding implementation from the client (i.e. hiding the fact a service is implemented by computation or by storage) provides flexibility. It is possible to change the implementation (for example, decide to use an attribute rather than a routine) at no cost for the clients. The supplier does not have to tell its clients about this change; the client code will continue to work.&lt;br /&gt;
&lt;br /&gt;
*The Uniform Access Principle seeks to eliminate this needless coupling. A language supporting the Uniform Access Principle does not exhibit any notational differences between accessing a feature regardless of whether it is an attribute or a function. Thus, in our earlier example, access to bar would always be in the form of foo.bar, regardless of how bar is implemented. This makes clients of Foo more resilient to change.&lt;br /&gt;
&lt;br /&gt;
= '''DISADVATAGES OF UAP''' =&lt;br /&gt;
&lt;br /&gt;
Dis-advantage of using UAP is as follows:-&lt;br /&gt;
&lt;br /&gt;
The UAP is only appropriate in a system that supports [http://en.wikipedia.org/wiki/Information_hiding information hiding] to the full (and in a way, implies this), as otherwise a client would be entirely justified in trying to perform an operation such as &lt;br /&gt;
&lt;br /&gt;
x.f = y; &lt;br /&gt;
&lt;br /&gt;
Where f is in fact a routine defined on x! Whereas if they are aware that everything in the public interface of a class is a function, they would not be justified in trying to perform such an action.&lt;br /&gt;
&lt;br /&gt;
='''SUMMARY'''=&lt;br /&gt;
&lt;br /&gt;
The article discusses about uniform access principle by expanding the current wiki article. The features discussed include the necessity for UAP, the Languages that support it, specific examples for the same and the advantages of the principle. Also we continue to discuss the languages that do not support this principle with reasons and a specific example in Java supporting it. Disadvantage of the principle has also been cited as a countervailing argument.&lt;br /&gt;
&lt;br /&gt;
= '''GLOSSARY''' =&lt;br /&gt;
[http://en.wikipedia.org/wiki/Information_hiding Information Hiding]: Information hiding in computer science is the principle of segregation of design decisions in a computer program that are most likely to change, thus protecting other parts of the program from extensive modification if the design decision is changed. The protection involves providing a stable interface which protects the remainder of the program from the implementation (the details that are most likely to change).&lt;br /&gt;
&lt;br /&gt;
='''REFERENCES'''=&lt;br /&gt;
* http://en.wikipedia.org/wiki/Uniform_access_principle&lt;br /&gt;
* [http://c2.com/cgi/wiki?UniformAccessPrinciple The UniformAccessPrinciple on the c2 wiki]&lt;br /&gt;
* http://www.eiffel.com/general/monthly_column/2005/Sept_October.html&lt;br /&gt;
* http://everything2.com/title/Uniform+Access+Principle&lt;br /&gt;
* http://www.jvoegele.com/software/langcomp.html&lt;br /&gt;
* http://en.wikipedia.org/wiki/Information_hiding&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki3_16_rn&amp;diff=29799</id>
		<title>CSC/ECE 517 Fall 2009/wiki3 16 rn</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki3_16_rn&amp;diff=29799"/>
		<updated>2009-11-21T05:35:48Z</updated>

		<summary type="html">&lt;p&gt;Chargers: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;='''PROBLEM STATEMENT'''=&lt;br /&gt;
The principle that an access (read or write) to a feature of an object should be written the same whether the feature is an instance variable or method. Look at the current Wikipedia article on the subject and expand on it. Consider the reason for this principle and try to find countervailing arguments against it. Note that since you are expanding on the current article, it is fine to lift text that is in the Wikipedia article right now.&lt;br /&gt;
&lt;br /&gt;
='''INTRODUCTION'''=&lt;br /&gt;
The '''Uniform Access Principle''' was put forth by [[Bertrand Meyer]].  It states &amp;quot;All services offered by a module should be available through a uniform notation, which does not betray whether they are implemented through storage or through computation.&amp;quot;  This principle applies generally to [[object-oriented]] [[programming languages]].  In simpler form, it states that there should be no difference between working with an [[Attribute (computing)|attribute]], precomputed [[Property (programming)|property]], or [[Method (computer science)|method]]/[[query]].&lt;br /&gt;
&lt;br /&gt;
Many languages have various degrees of support for UAP, where some of the implementations violate the spirit of UAP. The inclusion of 'properties' in some programming languages is another way to address the problem that Meyer discusses. Properties don't provide a uniform notation, but they do make the call to the method which provides a service opaque.&lt;br /&gt;
&lt;br /&gt;
= '''UAP Example''' =&lt;br /&gt;
If a language allows access to a variable via dot-notation and assignment &amp;lt;pre&amp;gt;Foo.bar = 5 //Assigns 5 to the object variable &amp;quot;bar&amp;quot;&amp;lt;/pre&amp;gt; then these operations should be the same :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//Assume print displays the variable passed to it, with or without parens&lt;br /&gt;
//Assume Foo.bar = 5 for now&lt;br /&gt;
print Foo.bar&lt;br /&gt;
print Foo.bar()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
When executed, should display :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
5&lt;br /&gt;
5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This allows the object to still hide information as well as being easy to access.&lt;br /&gt;
&lt;br /&gt;
The same should be true for setting the data.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Foo.bar = 5&lt;br /&gt;
Foo.bar(5)&lt;br /&gt;
//These should achieve the same goal&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''EXPLAINATION OF EXAMPLE''' &lt;br /&gt;
&lt;br /&gt;
Say that bar is a feature of a class named Foo. For languages that do not support the Uniform Access Principle, the notation used to access bar differs depending on whether it is an attribute (storage) or a function (computation). For example, in Java you would use foo.bar if it were an attribute, but you would use foo.bar() if it were a function. Having this notational difference means that users of Foo are exposed to unnecessary implementation details and are tightly coupled to Foo. If bar is changed from attribute to method (or vice versa), then any users of Foo must also be changed. &lt;br /&gt;
&lt;br /&gt;
='''UAP SUPPORT IN LANGUAGES'''=&lt;br /&gt;
'''The Languages that Support UAP are:'''&lt;br /&gt;
&lt;br /&gt;
* Eiffel &lt;br /&gt;
* Ruby &lt;br /&gt;
* Visual Basic &lt;br /&gt;
&lt;br /&gt;
'''The Languages that don't support UAP are:'''&lt;br /&gt;
&lt;br /&gt;
* Ada&lt;br /&gt;
* Java&lt;br /&gt;
* C #&lt;br /&gt;
* C++ &lt;br /&gt;
* Perl&lt;br /&gt;
* Small Talk&lt;br /&gt;
&lt;br /&gt;
[[Image:Uap.png]]&lt;br /&gt;
&lt;br /&gt;
'''Explanation:''' As we can see in the figure, in the languages that do not support UAP, the method balance has to be called in a specific manner, depending upon its prototype of the method in the class in which it is defined. Where as in Eiffel, a language that supports UAP, the specific details of balance are not important to the function call.&lt;br /&gt;
&lt;br /&gt;
= '''Languages Supporting UAP WITH EXAMPLES''' =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== [[Ruby programming language|Ruby]] ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 class Foo&lt;br /&gt;
  attr_reader :x&lt;br /&gt;
  def initialize(x)&lt;br /&gt;
    @x = x&lt;br /&gt;
  end&lt;br /&gt;
  def squared_x&lt;br /&gt;
    return @x * @x&lt;br /&gt;
  end&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
y = Foo.new(2)&lt;br /&gt;
puts y.x&lt;br /&gt;
puts y.squared_x&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Output for Above Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2&lt;br /&gt;
4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Observation:''' Note how even though &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; is an attribute and &amp;lt;code&amp;gt;squared_x&amp;lt;/code&amp;gt; is a parameterless method call, they are accessed the same way.&lt;br /&gt;
&lt;br /&gt;
=== [[Python (programming language)|Python]] ===&lt;br /&gt;
&lt;br /&gt;
The following example uses python properties.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
class Foo(object):&lt;br /&gt;
    def __init__(self, x):&lt;br /&gt;
        self.setx(x)&lt;br /&gt;
&lt;br /&gt;
    def getx(self):&lt;br /&gt;
        return self.__x&lt;br /&gt;
&lt;br /&gt;
    def setx(self, x):&lt;br /&gt;
        if type(x) != int:&lt;br /&gt;
            raise ValueError('Not an integer')&lt;br /&gt;
        self.__x = x&lt;br /&gt;
&lt;br /&gt;
    def getsquared_x(self):&lt;br /&gt;
        return self.x * self.x&lt;br /&gt;
    &lt;br /&gt;
    x = property(getx,setx, doc=&amp;quot;x attribute of Foo object&amp;quot;)&lt;br /&gt;
    squared_x = property(getsquared_x, doc=&amp;quot;getter for squared x&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
y = Foo(2)&lt;br /&gt;
print y.x&lt;br /&gt;
print y.squared_x&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Outputs for the Above Example&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2&lt;br /&gt;
4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''Observation:''' [[Python (programming language)#Objects|Python properties]] may be used to allow a method&lt;br /&gt;
to be invoked with the same syntax as accessing an attribute.  Whereas Meyer's UAP would have&lt;br /&gt;
a single notation for both attribute access and method invocation (method invocation syntax), &lt;br /&gt;
a language with support for properties still supports separate notations for attribute&lt;br /&gt;
and method access.  Properties allow the attribute notation to be used to invoke a method &lt;br /&gt;
where that is desirable.&lt;br /&gt;
&lt;br /&gt;
=== [[Php|PHP]] ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
class Foo{&lt;br /&gt;
    private $x;&lt;br /&gt;
&lt;br /&gt;
    function __construct($x){&lt;br /&gt;
        $this-&amp;gt;x = $x;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    function x(){&lt;br /&gt;
        return $this-&amp;gt;x;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    function squared_x(){&lt;br /&gt;
        return $this-&amp;gt;x * $this-&amp;gt;x;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$y = new Foo(2);&lt;br /&gt;
echo $y-&amp;gt;x();&lt;br /&gt;
echo $y-&amp;gt;squared_x();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Outputs for the above Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2&lt;br /&gt;
4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Observation:''' There are many other ways to achieve the same functionality in PHP, for example making &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; &amp;lt;code&amp;gt;public&amp;lt;/code&amp;gt; and accessing it directly or using magic methods &amp;lt;code&amp;gt;function __get($variable)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= '''Languages NOT Supporting UAP WITH EXAMPLES''' =&lt;br /&gt;
=== [[Java programming language|Java]] ===&lt;br /&gt;
 import java.util.* ;&lt;br /&gt;
 class BankAccount {&lt;br /&gt;
 ….&lt;br /&gt;
 public int balance(){&lt;br /&gt;
 int depositSum = 0;&lt;br /&gt;
 int withdrawalSum = 0;&lt;br /&gt;
 for (int i = 0; i &amp;lt; deposits.size(); i++){&lt;br /&gt;
 depositSum = depositSum + ((Integer)deposits.get(i)).intValue();&lt;br /&gt;
 }&lt;br /&gt;
 for (int i = 0; i &amp;lt; withdrawals.size(); i++){&lt;br /&gt;
 withdrawalSum = withdrawalSum +&lt;br /&gt;
 ((Integer) withdrawals.get(i)).intValue();&lt;br /&gt;
 }&lt;br /&gt;
 return depositSum – withdrawalSum;&lt;br /&gt;
 }&lt;br /&gt;
 …&lt;br /&gt;
 protected ArrayList deposits;&lt;br /&gt;
 protected ArrayList withdrawals;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
'''Observation:''' When looking at the code deposits.size(), the client can immediately see that deposits is an attribute (a “field” in Java terminology) and that size is a routine of class ArrayList (a “method” in Java terminology) because there is no opening and closing parentheses to access attributes whereas parentheses are compulsory for routine calls. This policy breaks the principle of Uniform Access; clients should not know whether a service is implemented by computation (routine) or by storage (attribute).&lt;br /&gt;
&lt;br /&gt;
=== [[Small Talk programming language|Small Talk]] ===&lt;br /&gt;
&lt;br /&gt;
In SmalltalkLanguage, UAP is not supported. But since variables are local to objects, you only have to worry about the difference within that object's methods, and nowhere else. By insisting that every variable access (even local ones) be through a getter/setter, UAP can be supported in Smalltalk. This is also extraordinarily helpful if the object in question is persistent, and therefore subject to various db synchronization/transaction issues.&lt;br /&gt;
&lt;br /&gt;
= '''ADVANTAGES OF UAP''' =&lt;br /&gt;
&lt;br /&gt;
Some of the Advantages of using UAP are as follows:-&lt;br /&gt;
&lt;br /&gt;
*Hiding implementation from the client (i.e. hiding the fact a service is implemented by computation or by storage) provides flexibility. It is possible to change the implementation (for example, decide to use an attribute rather than a routine) at no cost for the clients. The supplier does not have to tell its clients about this change; the client code will continue to work.&lt;br /&gt;
&lt;br /&gt;
*The Uniform Access Principle seeks to eliminate this needless coupling. A language supporting the Uniform Access Principle does not exhibit any notational differences between accessing a feature regardless of whether it is an attribute or a function. Thus, in our earlier example, access to bar would always be in the form of foo.bar, regardless of how bar is implemented. This makes clients of Foo more resilient to change.&lt;br /&gt;
&lt;br /&gt;
= '''DISADVATAGES OF UAP''' =&lt;br /&gt;
&lt;br /&gt;
Dis-advantage of using UAP is as follows:-&lt;br /&gt;
&lt;br /&gt;
The UAP is only appropriate in a system that supports [http://en.wikipedia.org/wiki/Information_hiding information hiding] to the full (and in a way, implies this), as otherwise a client would be entirely justified in trying to perform an operation such as &lt;br /&gt;
&lt;br /&gt;
x.f = y; &lt;br /&gt;
&lt;br /&gt;
Where f is in fact a routine defined on x! Whereas if they are aware that everything in the public interface of a class is a function, they would not be justified in trying to perform such an action.&lt;br /&gt;
&lt;br /&gt;
='''SUMMARY'''=&lt;br /&gt;
&lt;br /&gt;
The article discusses about uniform access principle by expanding the current wiki article. The features discussed include the necessity for UAP, the Languages that support it, specific examples for the same and the advantages of the principle. Also we continue to discuss the languages that do not support this principle with reasons and a specific example in Java supporting it. Disadvantage of the principle has also been cited as a countervailing argument.&lt;br /&gt;
&lt;br /&gt;
= '''GLOSSARY''' =&lt;br /&gt;
[http://en.wikipedia.org/wiki/Information_hiding Information Hiding]: Information hiding in computer science is the principle of segregation of design decisions in a computer program that are most likely to change, thus protecting other parts of the program from extensive modification if the design decision is changed. The protection involves providing a stable interface which protects the remainder of the program from the implementation (the details that are most likely to change).&lt;br /&gt;
&lt;br /&gt;
='''REFERENCES'''=&lt;br /&gt;
* http://en.wikipedia.org/wiki/Uniform_access_principle&lt;br /&gt;
* [http://c2.com/cgi/wiki?UniformAccessPrinciple The UniformAccessPrinciple on the c2 wiki]&lt;br /&gt;
* http://www.eiffel.com/general/monthly_column/2005/Sept_October.html&lt;br /&gt;
* http://everything2.com/title/Uniform+Access+Principle&lt;br /&gt;
* http://www.jvoegele.com/software/langcomp.html&lt;br /&gt;
* http://en.wikipedia.org/wiki/Information_hiding&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Uap.png&amp;diff=27480</id>
		<title>File:Uap.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Uap.png&amp;diff=27480"/>
		<updated>2009-11-17T18:54:38Z</updated>

		<summary type="html">&lt;p&gt;Chargers: uniform access principle&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;uniform access principle&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=26240</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=26240"/>
		<updated>2009-10-15T01:53:33Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Design Patterns proposed */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This article focuses on the design patterns which are proposed and utilized in the [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture]. As the SOA provides its services through the protocols and API, this article throws light on the design patterns that specifically provide services through protocols like [http://www.soapatterns.org/canonical_protocol.asp Canonical protocol], [http://www.soapatterns.org/dual_protocols.asp Dual protocols] and [http://www.soapatterns.org/protocol_bridging.asp Protocol Bridging]. In a broader perspective, other design patterns have been explained tersely. In addition to explanation of the SOA design patterns, this compares the SOA design patterns with the traditional design patterns proposed by the ‘Gang of Four’ (Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides) and comes up with the differences and similarities between them.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture] is an architecture that provides collection of services. These services need to inter-operate with each other to provide the functionality. This architecture requires a loose coupling with operating systems and other technologies that form the basis of the application. The loose coupling between services is required because each interaction has to be independent of the other. The communication between services could be either simple data being passed or it could be either an activity coordinated between distinct entities or services. Some means of interoperability is required to provide the services in larger terms. Instead of defining the [http://en.wikipedia.org/wiki/API API], the SOA implements the interfaces using the protocols and functionality. SOA separates functions into unique entities or services, which are accessed in a network by the users to combine and reuse them to develop the applications.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Various businesses in the field of [http://en.wikipedia.org/wiki/Information_technology Information Technology] have to justify their projects with a return on their investments. This creates a pressure in Information Technology by making it a demanding field. Information Technology needs to have requirements in a way that it has to responsive and adapt to the changing requirements. &lt;br /&gt;
&lt;br /&gt;
Information Technology companies must also be able to provide the services that are compatible with other services making it interoperable, thus creating dynamic services. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money. [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture] offers a solution to satisfy the above needs of the industry&lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include &lt;br /&gt;
i)   business services across several platforms &lt;br /&gt;
ii)  location independence &lt;br /&gt;
iii) authentication as well as authorization support on different platforms &lt;br /&gt;
iv ) loosely coupled approach, dynamic search and connectivity to other services.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A [http://en.wikipedia.org/wiki/Design_pattern design pattern] is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be applied in different scenarios. Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges may make projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed. Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories. They are listed below and corresponding patterns in &lt;br /&gt;
each category are given. Detailed explanation of the design patterns given in the example can be found in the link provided for each category.&lt;br /&gt;
&lt;br /&gt;
1. [http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic.&lt;br /&gt;
&lt;br /&gt;
Examples include Enterprise Inventory, Domain Inventory, Service Normalization, Logic Centralization, Service Layers Canonical Protocol, Canonical Schema &lt;br /&gt;
&lt;br /&gt;
2. [http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently.&lt;br /&gt;
&lt;br /&gt;
Examples for this category are Utility Abstraction, Entity Abstraction, Process Abstraction&lt;br /&gt;
&lt;br /&gt;
3. [http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
Examples for this category are Process Centralization, Schema Centralization, Policy Centralization, Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
4. [http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
Examples for this category are Dual Protocols, Canonical Resources, State Repository, Stateful Services, Service Grid, Inventory Endpoint, Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
5. [http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
Examples include Canonical Expression, Metadata Centralization, Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
6. [http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
Examples for this category are Functional Decomposition, Service Encapsulation, Agnostic Context, Non-Agnostic Context, Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
7. [http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability and availability of the service&lt;br /&gt;
&lt;br /&gt;
Examples include Service Facade, Redundant Implementation, Service Data Replication, Partial State Deferral, Partial Validation, UI Mediator&lt;br /&gt;
  &lt;br /&gt;
8. [http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
Examples for this category are Exception Shielding, Message Screening, Trusted Subsystem, Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
9. [http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
Examples for this category are Decoupled Contract, Contract Centralization, Contract De normalization, Concurrent Contracts, Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
10. [http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
Examples for this category are Legacy Wrapper, Multi-Channel Endpoint, File Gateway&lt;br /&gt;
&lt;br /&gt;
11. [http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
Examples for this category are Compatible Change, Version Identification, Termination Notification, Service Refactoring, Service Decomposition, Proxy Capability, Decomposed Capability, Distributed Capability&lt;br /&gt;
&lt;br /&gt;
12. [http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
Examples for this category are Capability Composition, Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
13. [http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
Examples in this category are Service Messaging, Messaging Metadata, Service Agent, Intermediate Routing, State Messaging, Service Callback, Service Instance Routing, Asynchronous Queuing, Reliable Messaging, Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
14. [http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
Examples for this category are Agnostic SubController, Composition Autonomy, Atomic Service Transaction, Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
15. [http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
Examples include Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
16. [http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
Examples for this category are Data Model Transformation, Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
17. [http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
Examples include Orchestration, Enterprise Service Bus, Service Broker, Canonical Schema Bus, Official Endpoint, Federated Endpoint Layer, Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA. The described patterns provide the problem and corresponding solution.The figures for the following examples are taken from corresponding sections of [http://www.soapatterns.org/masterlist_a.asp soapatterns.org]&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
''Canonical Protocol Figure as given in SOA Patterns website''&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that the services are delivered by three different communication technologies A,B and C.These services are made to conform to one centralized communications technology, making them technologically compatible.with this these services can be delivered to consumers without much difficulty&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
''Dual Protocol figure as given in SOA Pattern Official Website''&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
''Protocol Bridging Figure as given in the SOA Patterns Official Website''&lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features.The consumer programs may be using different protocols like [http://java.sun.com/products/jms/ JMS] or SOAP 1.1.In order to translate the two incompatible protocols in to the required SOAP 1,2 with HTTP separate protocol adapters are used in the broker. The broker then transmits the messages to the service on behalf of the consumers.Therefore the protocol bridging is achieved.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
''Figure of UI Mediator as given in Official SOA Patterns Website''&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this method as can be observed from the figure the three services A,B and C work behind the scenes to complete the given task.The mediator service (D) regularly updates the user interface there by hiding the underlying logic to the consumer.&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
''Figure for Service Facade as given in the official SOA Pattern Site''&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.The objective of loose coupling is achieved by this process.the core logic abstraction is obtained by this way.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
1) The [http://en.wikipedia.org/wiki/Composite_pattern composite pattern] organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
''Figure to illustrate above difference''&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite_example.png]]&lt;br /&gt;
&lt;br /&gt;
2)&lt;br /&gt;
The traditional [http://en.wikipedia.org/wiki/Bridge_pattern bridge pattern] separates the abstraction from its implementation in order to vary independently. Whereas the [http://www.soapatterns.org/canonical_protocol.asp canonical protocol] avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
''Figure to illustrate above difference''&lt;br /&gt;
&lt;br /&gt;
[[Image:Traditional_bridge.png]]&lt;br /&gt;
&lt;br /&gt;
''Figure for Traditional bridge pattern (Source: Elements of Reusable Object-Oriented Software by Gang of Four)''&lt;br /&gt;
&lt;br /&gt;
For canonical protocol refer to the explanation given in example design patterns&lt;br /&gt;
&lt;br /&gt;
3) The traditional [http://en.wikipedia.org/wiki/Builder_pattern builder pattern] decouples the construction of the object from its representation so that the same construction process can be used to develop different representations. The different representations (contracts) are addressed in SOA by the [http://www.soapatterns.org/concurrent_contracts.asp Concurrent Contracts] with the application of [http://www.soapatterns.org/service_facade.asp Service-façade] design pattern.  With service-façade design pattern, an abstraction is created to support the interaction between different contracts. As a result, different contracts can be created for a single service.&lt;br /&gt;
&lt;br /&gt;
In the below figure, the conversion of the text document is separated from the reader of RTF document, so that the text document can be represented in different forms like ASCIIText, TeXText and TextWidget. The different representation is achieved by decoupling of construction and abstraction. In the case of concurrent contracts pattern, the different contracts or services (invoices) are created for different consumer through service-façade by creating a new abstraction.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Builder.png]]&lt;br /&gt;
&lt;br /&gt;
''Figure for Traditional Builder pattern (Source: Elements of Reusable Object-Oriented Software by Gang of Four)''&lt;br /&gt;
&lt;br /&gt;
[[Image:Concurrent_pattern.png]]&lt;br /&gt;
&lt;br /&gt;
''Figure for Concurrent Contracts pattern (Source: SOA Patterns website)''&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
1) The [http://www.soapatterns.org/service_facade.asp Service-façade] design pattern is similar to the [http://en.wikipedia.org/wiki/Facade_pattern façade] (traditional) pattern in the manner that it implements the façade logic which is creating an abstraction for intra-communication within objects to the service architecture. The advantage by adding the façade logic to the service architecture is that it preserves the underlying logic from run-time changes.&lt;br /&gt;
&lt;br /&gt;
2) The [http://www.soapatterns.org/ui_mediator.asp UI Mediator] design pattern implements the [http://en.wikipedia.org/wiki/Mediator_pattern mediator] logic of traditional mediator pattern. The mediator logic aims to provide the user responses in a way that user understands, independently of what the underlying services perform.&lt;br /&gt;
&lt;br /&gt;
3) The [http://www.soapatterns.org/intermediate_routing.asp Intermediate routing] pattern in SOA is similar to [http://en.wikipedia.org/wiki/Decorator_pattern Decorator pattern] (traditional) in the functionality that it adds the required logic at run-time. The decorator adds the additional functionality to the object at run-time. The intermediate routing pattern is about placing the routing logic to address the run-time scenarios.&lt;br /&gt;
&lt;br /&gt;
4)The [http://www.soapatterns.org/capability_composition.asp Capability Composition] pattern in SOA implements the [http://en.wikipedia.org/wiki/Composite_pattern Composite pattern] (traditional). The Capability Composition is about composing one or more capabilities outside the service’s context to address the large, complex problem. &lt;br /&gt;
&lt;br /&gt;
5) The [http://www.soapatterns.org/decoupled_contract.asp Decoupled Contract] pattern implements the traditional [http://en.wikipedia.org/wiki/Bridge_pattern Bridge pattern] in the manner that service contract is separated from the implementation. The Bridge pattern decouples the abstraction from implementation to facilitate the variation of both (abstraction and implementation).&lt;br /&gt;
&lt;br /&gt;
6) The [http://www.soapatterns.org/legacy_wrapper.asp Legacy Wrapper] pattern is related to traditional [http://en.wikipedia.org/wiki/Adapter_pattern Adapter pattern]. The Legacy Wrapper pattern protects the legacy logic by providing a standard service that takes of protecting the legacy details by encapsulating, extraction or elimination. The encapsulation, extraction or elimination is done in order to change the service as the consumer requires it. This is related to adapter in a way that it converts the interface of one class to another as the client expects.&lt;br /&gt;
&lt;br /&gt;
=Summary=&lt;br /&gt;
The various patterns in Service oriented Architecture which have been currently proposed were studied and an attempt was made to document all of them by categories.Few detailed examples are documented to get an understanding of the underlying process.Specific comparison of  design patterns in SOA domain and corresponding traditional patterns has been carried out.The design patterns in SOA are still under development and many patterns are coming up due to vast technology used in this domain.&lt;br /&gt;
&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]: SOA Terminology is all about Service, architecture, governance and business terms.&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]: SOA is an architectural style used for creating IT architecture that supports a strong relationship between business and information systems.&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]: An interface used by the application to obtain the services from libraries or operating system.&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]: A protocol used for the exchange of structured information in Web Services implementation.&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]: A protocol used for distributing hypertext documents (mostly used in the web pages implementation)&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]: Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]: Comprehensive list of glossaries used in SOA domain.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;br /&gt;
&lt;br /&gt;
8.[http://www.oracle.com/technology/pub/articles/erl_soa_design_patterns_app_sequences.html SOA Design patterns application sequences by oracle]&lt;br /&gt;
&lt;br /&gt;
9.SOA Design Patterns by Thomas Erl&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=26146</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=26146"/>
		<updated>2009-10-14T23:45:41Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Example Design Patterns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This article focuses on the design patterns which are proposed and utilized in the [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture]. As the SOA provides its services through the protocols and API, this article throws light on the design patterns that specifically provide services through protocols like [http://www.soapatterns.org/canonical_protocol.asp Canonical protocol], [http://www.soapatterns.org/dual_protocols.asp Dual protocols] and [http://www.soapatterns.org/protocol_bridging.asp Protocol Bridging]. In a broader perspective, other design patterns have been explained tersely. In addition to explanation of the SOA design patterns, this compares the SOA design patterns with the traditional design patterns proposed by the ‘Gang of Four’ (Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides) and comes up with the differences and similarities between them.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture] is an architecture that provides collection of services. These services need to inter-operate with each other to provide the functionality. This architecture requires a loose coupling with operating systems and other technologies that form the basis of the application. The loose coupling between services is required because each interaction has to be independent of the other. The communication between services could be either simple data being passed or it could be either an activity coordinated between distinct entities or services. Some means of interoperability is required to provide the services in larger terms. Instead of defining the [http://en.wikipedia.org/wiki/API API], the SOA implements the interfaces using the protocols and functionality. SOA separates functions into unique entities or services, which are accessed in a network by the users to combine and reuse them to develop the applications.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Various businesses in the field of [http://en.wikipedia.org/wiki/Information_technology Information Technology] have to justify their projects with a return on their investments. This creates a pressure in Information Technology by making it a demanding field. Information Technology needs to have requirements in a way that it has to responsive and adapt to the changing requirements. &lt;br /&gt;
&lt;br /&gt;
Information Technology companies must also be able to provide the services that are compatible with other services making it interoperable, thus creating dynamic services. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money. [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture] offers a solution to satisfy the above needs of the industry&lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include &lt;br /&gt;
i)   business services across several platforms &lt;br /&gt;
ii)  location independence &lt;br /&gt;
iii) authentication as well as authorization support on different platforms &lt;br /&gt;
iv ) loosely coupled approach, dynamic search and connectivity to other services.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A [http://en.wikipedia.org/wiki/Design_pattern design pattern] is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be applied in different scenarios. Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges may make projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed. Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories. They are listed below and corresponding patterns in &lt;br /&gt;
each category are given. Detailed explanation of the design patterns given in the example can be found in the link provided for each category.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic.&lt;br /&gt;
&lt;br /&gt;
Examples include Enterprise Inventory, Domain Inventory, Service Normalization, Logic Centralization, Service Layers Canonical Protocol, Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA. The described patterns provide the problem and corresponding solution.The figures for the following examples are taken from corresponding sections of [http://www.soapatterns.org/masterlist_a.asp soapatterns.org]&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that the services are delivered by three different communication technologies A,B and C.These services are made to conform to one centralized communications technology, making them technologically compatible.with this these services can be delivered to consumers without much difficulty&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features.The consumer programs may be using different protocols like [http://java.sun.com/products/jms/ JMS] or SOAP 1.1.In order to translate the two incompatible protocols in to the required SOAP 1,2 with HTTP separate protocol adapters are used in the broker. The broker then transmits the messages to the service on behalf of the consumers.Therefore the protocol bridging is achieved.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this method as can be observed from the figure the three services A,B and C work behind the scenes to complete the given task.The mediator service (D) regularly updates the user interface there by hiding the underlying logic to the consumer.&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.The objective of loose coupling is achieved by this process.the core logic abstraction is obtained by this way.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
1) The [http://en.wikipedia.org/wiki/Composite_pattern composite pattern] organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
Figure to illustrate above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite_example.png]]&lt;br /&gt;
&lt;br /&gt;
2)&lt;br /&gt;
The traditional [http://en.wikipedia.org/wiki/Bridge_pattern bridge pattern] separates the abstraction from its implementation in order to vary independently. Whereas the [http://www.soapatterns.org/canonical_protocol.asp canonical protocol] avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
Figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Traditional_bridge.png]]&lt;br /&gt;
Figure for Traditional bridge pattern&lt;br /&gt;
&lt;br /&gt;
For canonical protocol refer to the explanation given in example design patterns&lt;br /&gt;
&lt;br /&gt;
3) The traditional [http://en.wikipedia.org/wiki/Builder_pattern builder pattern] decouples the construction of the object from its representation so that the same construction process can be used to develop different representations. The different representations (contracts) are addressed in SOA by the [http://www.soapatterns.org/concurrent_contracts.asp Concurrent Contracts] with the application of [http://www.soapatterns.org/service_facade.asp Service-façade] design pattern.  With service-façade design pattern, an abstraction is created to support the interaction between different contracts. As a result, different contracts can be created for a single service.&lt;br /&gt;
&lt;br /&gt;
In the below figure, the conversion of the text document is separated from the reader of RTF document, so that the text document can be represented in different forms like ASCIIText, TeXText and TextWidget. The different representation is achieved by decoupling of construction and abstraction. In the case of concurrent contracts pattern, the different contracts or services (invoices) are created for different consumer through service-façade by creating a new abstraction.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Builder.png]]&lt;br /&gt;
Figure for Traditional Builder pattern&lt;br /&gt;
&lt;br /&gt;
[[Image:Concurrent_pattern.png]]&lt;br /&gt;
Figure for Concurrent pattern&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
1) The [http://www.soapatterns.org/service_facade.asp Service-façade] design pattern is similar to the [http://en.wikipedia.org/wiki/Facade_pattern façade] (traditional) pattern in the manner that it implements the façade logic which is creating an abstraction for intra-communication within objects to the service architecture. The advantage by adding the façade logic to the service architecture is that it preserves the underlying logic from run-time changes.&lt;br /&gt;
&lt;br /&gt;
2) The [http://www.soapatterns.org/ui_mediator.asp UI Mediator] design pattern implements the [http://en.wikipedia.org/wiki/Mediator_pattern mediator] logic of traditional mediator pattern. The mediator logic aims to provide the user responses in a way that user understands, independently of what the underlying services perform.&lt;br /&gt;
&lt;br /&gt;
3) The [http://www.soapatterns.org/intermediate_routing.asp Intermediate routing] pattern in SOA is similar to [http://en.wikipedia.org/wiki/Decorator_pattern Decorator pattern] (traditional) in the functionality that it adds the required logic at run-time. The decorator adds the additional functionality to the object at run-time. The intermediate routing pattern is about placing the routing logic to address the run-time scenarios.&lt;br /&gt;
&lt;br /&gt;
4)The [http://www.soapatterns.org/capability_composition.asp Capability Composition] pattern in SOA implements the [http://en.wikipedia.org/wiki/Composite_pattern Composite pattern] (traditional). The Capability Composition is about composing one or more capabilities outside the service’s context to address the large, complex problem. &lt;br /&gt;
&lt;br /&gt;
5) The [http://www.soapatterns.org/decoupled_contract.asp Decoupled Contract] pattern implements the traditional [http://en.wikipedia.org/wiki/Bridge_pattern Bridge pattern] in the manner that service contract is separated from the implementation. The Bridge pattern decouples the abstraction from implementation to facilitate the variation of both (abstraction and implementation).&lt;br /&gt;
&lt;br /&gt;
6) The [http://www.soapatterns.org/legacy_wrapper.asp Legacy Wrapper] pattern is related to traditional [http://en.wikipedia.org/wiki/Adapter_pattern Adapter pattern]. The Legacy Wrapper pattern protects the legacy logic by providing a standard service that takes of protecting the legacy details by encapsulating, extraction or elimination. The encapsulation, extraction or elimination is done in order to change the service as the consumer requires it. This is related to adapter in a way that it converts the interface of one class to another as the client expects.&lt;br /&gt;
&lt;br /&gt;
=Summary=&lt;br /&gt;
The various patterns in Service oriented Architecture which have been currently proposed were studied and an attempt was made to document all of them by categories.Few detailed examples are documented to get an understanding of the underlying process.Specific comparison of  design patterns in SOA domain and corresponding traditional patterns has been carried out.The design patterns in SOA are still under development and many patterns are coming up due to vast technology used in this domain.&lt;br /&gt;
&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;br /&gt;
&lt;br /&gt;
8.[http://www.oracle.com/technology/pub/articles/erl_soa_design_patterns_app_sequences.html SOA Design patterns application sequences by oracle]&lt;br /&gt;
&lt;br /&gt;
9.SOA Design Patterns by Thomas Erl&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25514</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25514"/>
		<updated>2009-10-10T03:13:18Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This article focuses on the design patterns which are proposed and utilized in the [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture]. As the SOA provides its services through the protocols and API, this article throws light on the design patterns that specifically provide services through protocols like [http://www.soapatterns.org/canonical_protocol.asp Canonical protocol], [http://www.soapatterns.org/dual_protocols.asp Dual protocols] and [http://www.soapatterns.org/protocol_bridging.asp Protocol Bridging]. In a broader perspective, other design patterns have been explained tersely. In addition to explanation of the SOA design patterns, this compares the SOA design patterns with the traditional design patterns proposed by the ‘Gang of Four’ (Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides) and comes up with the differences and similarities between them.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture] is an architecture that provides collection of services. These services need to inter-operate with each other to provide the functionality. This architecture requires a loose coupling with operating systems and other technologies that form the basis of the application. The loose coupling between services is required because each interaction has to be independent of the other. The communication between services could be either simple data being passed or it could be either an activity coordinated between distinct entities or services. Some means of interoperability is required to provide the services in larger terms. Instead of defining the API, the SOA implements the interfaces using the protocols and functionality. SOA separates functions into unique entities or services, which are accessed in a network by the users to combine and reuse them to develop the applications.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Various businesses in the field of [http://en.wikipedia.org/wiki/Information_technology Information Technology] have to justify their projects with a return on their investments. This creates a pressure in Information Technology by making it a demanding field. Information Technology needs to have requirements in a way that it has to responsive and adapt to the changing requirements. &lt;br /&gt;
&lt;br /&gt;
Information Technology companies must also be able to provide the services that are compatible with other services making it interoperable, thus creating dynamic services. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money. [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture] offers a solution to satisfy the above needs of the industry&lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include &lt;br /&gt;
i)   business services across several platforms &lt;br /&gt;
ii)  location independence &lt;br /&gt;
iii) authentication as well as authorization support on different platforms &lt;br /&gt;
iv ) loosely coupled approach, dynamic search and connectivity to other services.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A [http://en.wikipedia.org/wiki/Design_pattern design pattern] is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be applied in different scenarios. Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges may make projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed. Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories. They are listed below and corresponding patterns in &lt;br /&gt;
each category are given. Detailed explanation of the design patterns given in the example can be found in the link provided for each category.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic.&lt;br /&gt;
&lt;br /&gt;
Examples include Enterprise Inventory, Domain Inventory, Service Normalization, Logic Centralization, Service Layers Canonical Protocol, Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA. The described patterns provide the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that the services are delivered by three different communication technologies A,B and C.These services are made to conform to one centralized communications technology, making them technologically compatible.with this these services can be delivered to consumers without much difficulty&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features.The consumer programs may be using different protocols like [http://java.sun.com/products/jms/ JMS] or SOAP 1.1.In order to translate the two incompatible protocols in to the required SOAP 1,2 with HTTP separate protocol adapters are used in the broker. The broker then transmits the messages to the service on behalf of the consumers.Therefore the protocol bridging is achieved.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this method as can be observed from the figure the three services A,B and C work behind the scenes to complete the given task.The mediator service (D) regularly updates the user interface there by hiding the underlying logic to the consumer.&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.The objective of loose coupling is achieved by this process.the core logic abstraction is obtained by this way.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
1) The [http://en.wikipedia.org/wiki/Composite_pattern composite pattern] organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
Figure to illustrate above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite_example.png]]&lt;br /&gt;
&lt;br /&gt;
2)&lt;br /&gt;
The traditional [http://en.wikipedia.org/wiki/Bridge_pattern bridge pattern] separates the abstraction from its implementation in order to vary independently. Whereas the [http://www.soapatterns.org/canonical_protocol.asp canonical protocol] avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
Figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Traditional_bridge.png]]&lt;br /&gt;
Figure for Traditional bridge pattern&lt;br /&gt;
&lt;br /&gt;
For canonical protocol refer to the explanation given in example design patterns&lt;br /&gt;
&lt;br /&gt;
3) The traditional [http://en.wikipedia.org/wiki/Builder_pattern builder pattern] decouples the construction of the object from its representation so that the same construction process can be used to develop different representations. The different representations (contracts) are addressed in SOA by the [http://www.soapatterns.org/concurrent_contracts.asp Concurrent Contracts] with the application of [http://www.soapatterns.org/service_facade.asp Service-façade] design pattern.  With service-façade design pattern, an abstraction is created to support the interaction between different contracts. As a result, different contracts can be created for a single service.&lt;br /&gt;
&lt;br /&gt;
In the below figure, the conversion of the text document is separated from the reader of RTF document, so that the text document can be represented in different forms like ASCIIText, TeXText and TextWidget. The different representation is achieved by decoupling of construction and abstraction. In the case of concurrent contracts pattern, the different contracts or services (invoices) are created for different consumer through service-façade by creating a new abstraction.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Builder.png]]&lt;br /&gt;
Figure for Traditional Builder pattern&lt;br /&gt;
&lt;br /&gt;
[[Image:Concurrent_pattern.png]]&lt;br /&gt;
Figure for Concurrent pattern&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
1) The [http://www.soapatterns.org/service_facade.asp Service-façade] design pattern is similar to the [http://en.wikipedia.org/wiki/Facade_pattern façade] (traditional) pattern in the manner that it implements the façade logic which is creating an abstraction for intra-communication within objects to the service architecture. The advantage by adding the façade logic to the service architecture is that it preserves the underlying logic from run-time changes.&lt;br /&gt;
&lt;br /&gt;
2) The [http://www.soapatterns.org/ui_mediator.asp UI Mediator] design pattern implements the [http://en.wikipedia.org/wiki/Mediator_pattern mediator] logic of traditional mediator pattern. The mediator logic aims to provide the user responses in a way that user understands, independently of what the underlying services perform.&lt;br /&gt;
&lt;br /&gt;
3) The [http://www.soapatterns.org/intermediate_routing.asp Intermediate routing] pattern in SOA is similar to [http://en.wikipedia.org/wiki/Decorator_pattern Decorator pattern] (traditional) in the functionality that it adds the required logic at run-time. The decorator adds the additional functionality to the object at run-time. The intermediate routing pattern is about placing the routing logic to address the run-time scenarios.&lt;br /&gt;
&lt;br /&gt;
4)The [http://www.soapatterns.org/capability_composition.asp Capability Composition] pattern in SOA implements the [http://en.wikipedia.org/wiki/Composite_pattern Composite pattern] (traditional). The Capability Composition is about composing one or more capabilities outside the service’s context to address the large, complex problem. &lt;br /&gt;
&lt;br /&gt;
5) The [http://www.soapatterns.org/decoupled_contract.asp Decoupled Contract] pattern implements the traditional [http://en.wikipedia.org/wiki/Bridge_pattern Bridge pattern] in the manner that service contract is separated from the implementation. The Bridge pattern decouples the abstraction from implementation to facilitate the variation of both (abstraction and implementation).&lt;br /&gt;
&lt;br /&gt;
6) The [http://www.soapatterns.org/legacy_wrapper.asp Legacy Wrapper] pattern is related to traditional [http://en.wikipedia.org/wiki/Adapter_pattern Adapter pattern]. The Legacy Wrapper pattern protects the legacy logic by providing a standard service that takes of protecting the legacy details by encapsulating, extraction or elimination. The encapsulation, extraction or elimination is done in order to change the service as the consumer requires it. This is related to adapter in a way that it converts the interface of one class to another as the client expects.&lt;br /&gt;
&lt;br /&gt;
=Summary=&lt;br /&gt;
The various patterns in Service oriented Architecture which have been currently proposed were studied and an attempt was made to document all of them by categories.Few detailed examples are documented to get an understanding of the underlying process.Specific comparison of  design patterns in SOA domain and corresponding traditional patterns has been carried out.The design patterns in SOA are still under development and many patterns are coming up due to vast technology used in this domain.&lt;br /&gt;
&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;br /&gt;
&lt;br /&gt;
8.[http://www.oracle.com/technology/pub/articles/erl_soa_design_patterns_app_sequences.html SOA Design patterns application sequences by oracle]&lt;br /&gt;
&lt;br /&gt;
9.SOA Design Patterns by Thomas Erl&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25500</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25500"/>
		<updated>2009-10-10T03:06:26Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Summary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This article focuses on the design patterns which are proposed and utilized in the [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture]. As the SOA provides its services through the protocols and API, this article throws light on the design patterns that specifically provide services through protocols like [http://www.soapatterns.org/canonical_protocol.asp Canonical protocol], [http://www.soapatterns.org/dual_protocols.asp Dual protocols] and [http://www.soapatterns.org/protocol_bridging.asp Protocol Bridging]. In a broader perspective, other design patterns have been explained tersely. In addition to explanation of the SOA design patterns, this compares the SOA design patterns with the traditional design patterns proposed by the ‘Gang of Four’ (Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides) and comes up with the differences and similarities between them.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture] is an architecture that provides collection of services. These services need to inter-operate with each other to provide the functionality. This architecture requires a loose coupling with operating systems and other technologies that form the basis of the application. The loose coupling between services is required because each interaction has to be independent of the other. The communication between services could be either simple data being passed or it could be either an activity coordinated between distinct entities or services. Some means of interoperability is required to provide the services in larger terms. Instead of defining the API, the SOA implements the interfaces using the protocols and functionality. SOA separates functions into unique entities or services, which are accessed in a network by the users to combine and reuse them to develop the applications.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Various businesses in the field of [http://en.wikipedia.org/wiki/Information_technology Information Technology] have to justify their projects with a return on their investments. This creates a pressure in Information Technology by making it a demanding field. Information Technology needs to have requirements in a way that it has to responsive and adapt to the changing requirements. &lt;br /&gt;
&lt;br /&gt;
Information Technology companies must also be able to provide the services that are compatible with other services making it interoperable, thus creating dynamic services. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money. [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture] offers a solution to satisfy the above needs of the industry&lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include &lt;br /&gt;
i)   business services across several platforms &lt;br /&gt;
ii)  location independence &lt;br /&gt;
iii) authentication as well as authorization support on different platforms &lt;br /&gt;
iv ) loosely coupled approach, dynamic search and connectivity to other services.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A [http://en.wikipedia.org/wiki/Design_pattern design pattern] is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be applied in different scenarios. Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges may make projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed. Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories. They are listed below and corresponding patterns in &lt;br /&gt;
each category are given. Detailed explanation of the design patterns given in the example can be found in the link provided for each category.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic.&lt;br /&gt;
&lt;br /&gt;
Examples include Enterprise Inventory, Domain Inventory, Service Normalization, Logic Centralization, Service Layers Canonical Protocol, Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA. The described patterns provide the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that the services are delivered by three different communication technologies A,B and C.These services are made to conform to one centralized communications technology, making them technologically compatible.with this these services can be delivered to consumers without much difficulty&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features.The consumer programs may be using different protocols like [http://java.sun.com/products/jms/ JMS] or SOAP 1.1.In order to translate the two incompatible protocols in to the required SOAP 1,2 with HTTP separate protocol adapters are used in the broker. The broker then transmits the messages to the service on behalf of the consumers.Therefore the protocol bridging is achieved.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this method as can be observed from the figure the three services A,B and C work behind the scenes to complete the given task.The mediator service (D) regularly updates the user interface there by hiding the underlying logic to the consumer.&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.The objective of loose coupling is achieved by this process.the core logic abstraction is obtained by this way.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
1) The [http://en.wikipedia.org/wiki/Composite_pattern composite pattern] organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
Figure to illustrate above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite_example.png]]&lt;br /&gt;
&lt;br /&gt;
2)&lt;br /&gt;
The traditional [http://en.wikipedia.org/wiki/Bridge_pattern bridge pattern] separates the abstraction from its implementation in order to vary independently. Whereas the [http://www.soapatterns.org/canonical_protocol.asp canonical protocol] avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
Figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Traditional_bridge.png]]&lt;br /&gt;
Figure for Traditional bridge pattern&lt;br /&gt;
&lt;br /&gt;
For canonical protocol refer to the explanation given in example design patterns&lt;br /&gt;
&lt;br /&gt;
3) The traditional [http://en.wikipedia.org/wiki/Builder_pattern builder pattern] decouples the construction of the object from its representation so that the same construction process can be used to develop different representations. The different representations (contracts) are addressed in SOA by the [http://www.soapatterns.org/concurrent_contracts.asp Concurrent Contracts] with the application of [http://www.soapatterns.org/service_facade.asp Service-façade] design pattern.  With service-façade design pattern, an abstraction is created to support the interaction between different contracts. As a result, different contracts can be created for a single service.&lt;br /&gt;
&lt;br /&gt;
In the below figure, the conversion of the text document is separated from the reader of RTF document, so that the text document can be represented in different forms like ASCIIText, TeXText and TextWidget. The different representation is achieved by decoupling of construction and abstraction. In the case of concurrent contracts pattern, the different contracts or services (invoices) are created for different consumer through service-façade by creating a new abstraction.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Builder.png]]&lt;br /&gt;
Figure for Traditional Builder pattern&lt;br /&gt;
&lt;br /&gt;
[[Image:Concurrent_pattern.png]]&lt;br /&gt;
Figure for Concurrent pattern&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
1) The Service-façade design pattern is similar to the façade (traditional) pattern in the manner that it implements the façade logic which is creating an abstraction for intra-communication within objects to the service architecture. The advantage by adding the façade logic to the service architecture is that it preserves the underlying logic from run-time changes.&lt;br /&gt;
&lt;br /&gt;
2) The UI Mediator design pattern implements the mediator logic of traditional mediator pattern. The mediator logic aims to provide the user responses in a way that user understands, independently of what the underlying services perform.&lt;br /&gt;
&lt;br /&gt;
3) The Intermediate routing pattern in SOA is similar to Decorator pattern (traditional) in the functionality that it adds the required logic at run-time. The decorator adds the additional functionality to the object at run-time. The intermediate routing pattern is about placing the routing logic to address the run-time scenarios.&lt;br /&gt;
&lt;br /&gt;
4)The Capability Composition pattern in SOA implements the Composite pattern (traditional). The Capability Composition is about composing one or more capabilities outside the service’s context to address the large, complex problem. &lt;br /&gt;
&lt;br /&gt;
5) The Decoupled Contract pattern implements the traditional Bridge pattern in the manner that service contract is separated from the implementation. The Bridge pattern decouples the abstraction from implementation to facilitate the variation of both (abstraction and implementation).&lt;br /&gt;
&lt;br /&gt;
6) The Legacy Wrapper pattern is related to traditional Adapter pattern. The Legacy Wrapper pattern protects the legacy logic by providing a standard service that takes of protecting the legacy details by encapsulating, extraction or elimination. The encapsulation, extraction or elimination is done in order to change the service as the consumer requires it. This is related to adapter in a way that it converts the interface of one class to another as the client expects.&lt;br /&gt;
&lt;br /&gt;
=Summary=&lt;br /&gt;
The various patterns in Service oriented Architecture which have been currently proposed were studied and an attempt was made to document all of them by categories.Few detailed examples are documented to get an understanding of the underlying process.Specific comparison of  design patterns in SOA domain and corresponding traditional patterns has been carried out.The design patterns in SOA are still under development and many patterns are coming up due to vast technology used in this domain.&lt;br /&gt;
&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;br /&gt;
&lt;br /&gt;
8.[http://www.oracle.com/technology/pub/articles/erl_soa_design_patterns_app_sequences.html SOA Design patterns application sequences by oracle]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25482</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25482"/>
		<updated>2009-10-10T02:58:58Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Protocol Bridging */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This article focuses on the design patterns which are proposed and utilized in the [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture]. As the SOA provides its services through the protocols and API, this article throws light on the design patterns that specifically provide services through protocols like [http://www.soapatterns.org/canonical_protocol.asp Canonical protocol], [http://www.soapatterns.org/dual_protocols.asp Dual protocols] and [http://www.soapatterns.org/protocol_bridging.asp Protocol Bridging]. In a broader perspective, other design patterns have been explained tersely. In addition to explanation of the SOA design patterns, this compares the SOA design patterns with the traditional design patterns proposed by the ‘Gang of Four’ (Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides) and comes up with the differences and similarities between them.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture] is an architecture that provides collection of services. These services need to inter-operate with each other to provide the functionality. This architecture requires a loose coupling with operating systems and other technologies that form the basis of the application. The loose coupling between services is required because each interaction has to be independent of the other. The communication between services could be either simple data being passed or it could be either an activity coordinated between distinct entities or services. Some means of interoperability is required to provide the services in larger terms. Instead of defining the API, the SOA implements the interfaces using the protocols and functionality. SOA separates functions into unique entities or services, which are accessed in a network by the users to combine and reuse them to develop the applications.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Various businesses in the field of [http://en.wikipedia.org/wiki/Information_technology Information Technology] have to justify their projects with a return on their investments. This creates a pressure in Information Technology by making it a demanding field. Information Technology needs to have requirements in a way that it has to responsive and adapt to the changing requirements. &lt;br /&gt;
&lt;br /&gt;
Information Technology companies must also be able to provide the services that are compatible with other services making it interoperable, thus creating dynamic services. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money. [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture] offers a solution to satisfy the above needs of the industry&lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include &lt;br /&gt;
i)   business services across several platforms &lt;br /&gt;
ii)  location independence &lt;br /&gt;
iii) authentication as well as authorization support on different platforms &lt;br /&gt;
iv ) loosely coupled approach, dynamic search and connectivity to other services.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A [http://en.wikipedia.org/wiki/Design_pattern design pattern] is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be applied in different scenarios. Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges may make projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed. Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories. They are listed below and corresponding patterns in &lt;br /&gt;
each category are given. Detailed explanation of the design patterns given in the example can be found in the link provided for each category.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic.&lt;br /&gt;
&lt;br /&gt;
Examples include Enterprise Inventory, Domain Inventory, Service Normalization, Logic Centralization, Service Layers Canonical Protocol, Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA. The described patterns provide the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that the services are delivered by three different communication technologies A,B and C.These services are made to conform to one centralized communications technology, making them technologically compatible.with this these services can be delivered to consumers without much difficulty&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features.The consumer programs may be using different protocols like [http://java.sun.com/products/jms/ JMS] or SOAP 1.1.In order to translate the two incompatible protocols in to the required SOAP 1,2 with HTTP separate protocol adapters are used in the broker. The broker then transmits the messages to the service on behalf of the consumers.Therefore the protocol bridging is achieved.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this method as can be observed from the figure the three services A,B and C work behind the scenes to complete the given task.The mediator service (D) regularly updates the user interface there by hiding the underlying logic to the consumer.&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.The objective of loose coupling is achieved by this process.the core logic abstraction is obtained by this way.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
1) The composite pattern organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
figure to illustrate above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite_example.png]]&lt;br /&gt;
&lt;br /&gt;
2)&lt;br /&gt;
The traditional bridge pattern separates the abstraction from its implementation in order to vary independently. Whereas the canonical protocol avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Traditional_bridge.png]]&lt;br /&gt;
Figure for Traditional bridge pattern&lt;br /&gt;
&lt;br /&gt;
For canonical protocol refer to the explanation given in example design patterns&lt;br /&gt;
&lt;br /&gt;
3) The traditional builder pattern decouples the construction of the object from its representation so that the same construction process can be used to develop different representations. The different representations (contracts) are addressed in SOA by the Concurrent Contracts with the application of Service-façade design pattern.  With service-façade design pattern, an abstraction is created to support the interaction between different contracts. As a result, different contracts can be created for a single service.&lt;br /&gt;
In the below figure, the conversion of the text document is separated from the reader of RTF document, so that the text document can be represented in different forms like ASCIIText, TeXText and TextWidget. The different representation is achieved by decoupling of construction and abstraction. In the case of concurrent contracts pattern, the different contracts or services (invoices) are created for different consumer through service-façade by creating a new abstraction.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Builder.png]]&lt;br /&gt;
Figure for Traditional Builder pattern&lt;br /&gt;
&lt;br /&gt;
[[Image:Concurrent_pattern.png]]&lt;br /&gt;
Figure for Concurrent pattern&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
1) The Service-façade design pattern is similar to the façade (traditional) pattern in the manner that it implements the façade logic which is creating an abstraction for intra-communication within objects to the service architecture. The advantage by adding the façade logic to the service architecture is that it preserves the underlying logic from run-time changes.&lt;br /&gt;
&lt;br /&gt;
2) The UI Mediator design pattern implements the mediator logic of traditional mediator pattern. The mediator logic aims to provide the user responses in a way that user understands, independently of what the underlying services perform.&lt;br /&gt;
&lt;br /&gt;
3) The Intermediate routing pattern in SOA is similar to Decorator pattern (traditional) in the functionality that it adds the required logic at run-time. The decorator adds the additional functionality to the object at run-time. The intermediate routing pattern is about placing the routing logic to address the run-time scenarios.&lt;br /&gt;
&lt;br /&gt;
4)The Capability Composition pattern in SOA implements the Composite pattern (traditional). The Capability Composition is about composing one or more capabilities outside the service’s context to address the large, complex problem. &lt;br /&gt;
&lt;br /&gt;
5) The Decoupled Contract pattern implements the traditional Bridge pattern in the manner that service contract is separated from the implementation. The Bridge pattern decouples the abstraction from implementation to facilitate the variation of both (abstraction and implementation).&lt;br /&gt;
&lt;br /&gt;
6) The Legacy Wrapper pattern is related to traditional Adapter pattern. The Legacy Wrapper pattern protects the legacy logic by providing a standard service that takes of protecting the legacy details by encapsulating, extraction or elimination. The encapsulation, extraction or elimination is done in order to change the service as the consumer requires it. This is related to adapter in a way that it converts the interface of one class to another as the client expects.&lt;br /&gt;
&lt;br /&gt;
=Summary=&lt;br /&gt;
&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;br /&gt;
&lt;br /&gt;
8.[http://www.oracle.com/technology/pub/articles/erl_soa_design_patterns_app_sequences.html SOA Design patterns application sequences by oracle]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25477</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25477"/>
		<updated>2009-10-10T02:56:04Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Protocol Bridging */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This article focuses on the design patterns which are proposed and utilized in the [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture]. As the SOA provides its services through the protocols and API, this article throws light on the design patterns that specifically provide services through protocols like [http://www.soapatterns.org/canonical_protocol.asp Canonical protocol], [http://www.soapatterns.org/dual_protocols.asp Dual protocols] and [http://www.soapatterns.org/protocol_bridging.asp Protocol Bridging]. In a broader perspective, other design patterns have been explained tersely. In addition to explanation of the SOA design patterns, this compares the SOA design patterns with the traditional design patterns proposed by the ‘Gang of Four’ (Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides) and comes up with the differences and similarities between them.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture] is an architecture that provides collection of services. These services need to inter-operate with each other to provide the functionality. This architecture requires a loose coupling with operating systems and other technologies that form the basis of the application. The loose coupling between services is required because each interaction has to be independent of the other. The communication between services could be either simple data being passed or it could be either an activity coordinated between distinct entities or services. Some means of interoperability is required to provide the services in larger terms. Instead of defining the API, the SOA implements the interfaces using the protocols and functionality. SOA separates functions into unique entities or services, which are accessed in a network by the users to combine and reuse them to develop the applications.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Various businesses in the field of [http://en.wikipedia.org/wiki/Information_technology Information Technology] have to justify their projects with a return on their investments. This creates a pressure in Information Technology by making it a demanding field. Information Technology needs to have requirements in a way that it has to responsive and adapt to the changing requirements. &lt;br /&gt;
&lt;br /&gt;
Information Technology companies must also be able to provide the services that are compatible with other services making it interoperable, thus creating dynamic services. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money. [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture] offers a solution to satisfy the above needs of the industry&lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include &lt;br /&gt;
i)   business services across several platforms &lt;br /&gt;
ii)  location independence &lt;br /&gt;
iii) authentication as well as authorization support on different platforms &lt;br /&gt;
iv ) loosely coupled approach, dynamic search and connectivity to other services.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A [http://en.wikipedia.org/wiki/Design_pattern design pattern] is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be applied in different scenarios. Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges may make projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed. Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories. They are listed below and corresponding patterns in &lt;br /&gt;
each category are given. Detailed explanation of the design patterns given in the example can be found in the link provided for each category.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic.&lt;br /&gt;
&lt;br /&gt;
Examples include Enterprise Inventory, Domain Inventory, Service Normalization, Logic Centralization, Service Layers Canonical Protocol, Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA.The described patterns provide  the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that the services are delivered by three different communication technologies A,B and C.These services are made to conform to one centralized communications technology, making them technologically compatible.with this these services can be delivered to consumers without much difficulty&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features.The consumer programs may be using different protocols like  Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this method as can be observed from the figure the three services A,B and C work behind the scenes to complete the given task.The mediator service (D) regularly updates the user interface there by hiding the underlying logic to the consumer.&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.The objective of loose coupling is achieved by this process.the core logic abstraction is obtained by this way.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
1) The composite pattern organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
figure to illustrate above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite_example.png]]&lt;br /&gt;
&lt;br /&gt;
2)&lt;br /&gt;
The traditional bridge pattern separates the abstraction from its implementation in order to vary independently. Whereas the canonical protocol avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Traditional_bridge.png]]&lt;br /&gt;
Figure for Traditional bridge pattern&lt;br /&gt;
&lt;br /&gt;
For canonical protocol refer to the explanation given in example design patterns&lt;br /&gt;
&lt;br /&gt;
3) The traditional builder pattern decouples the construction of the object from its representation so that the same construction process can be used to develop different representations. The different representations (contracts) are addressed in SOA by the Concurrent Contracts with the application of Service-façade design pattern.  With service-façade design pattern, an abstraction is created to support the interaction between different contracts. As a result, different contracts can be created for a single service.&lt;br /&gt;
In the below figure, the conversion of the text document is separated from the reader of RTF document, so that the text document can be represented in different forms like ASCIIText, TeXText and TextWidget. The different representation is achieved by decoupling of construction and abstraction. In the case of concurrent contracts pattern, the different contracts or services (invoices) are created for different consumer through service-façade by creating a new abstraction.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Builder.png]]&lt;br /&gt;
Figure for Traditional Builder pattern&lt;br /&gt;
&lt;br /&gt;
[[Image:Concurrent_pattern.png]]&lt;br /&gt;
Figure for Concurrent pattern&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
1) The Service-façade design pattern is similar to the façade (traditional) pattern in the manner that it implements the façade logic which is creating an abstraction for intra-communication within objects to the service architecture. The advantage by adding the façade logic to the service architecture is that it preserves the underlying logic from run-time changes.&lt;br /&gt;
&lt;br /&gt;
2) The UI Mediator design pattern implements the mediator logic of traditional mediator pattern. The mediator logic aims to provide the user responses in a way that user understands, independently of what the underlying services perform.&lt;br /&gt;
&lt;br /&gt;
3) The Intermediate routing pattern in SOA is similar to Decorator pattern (traditional) in the functionality that it adds the required logic at run-time. The decorator adds the additional functionality to the object at run-time. The intermediate routing pattern is about placing the routing logic to address the run-time scenarios.&lt;br /&gt;
&lt;br /&gt;
4)The Capability Composition pattern in SOA implements the Composite pattern (traditional). The Capability Composition is about composing one or more capabilities outside the service’s context to address the large, complex problem. &lt;br /&gt;
&lt;br /&gt;
5) The Decoupled Contract pattern implements the traditional Bridge pattern in the manner that service contract is separated from the implementation. The Bridge pattern decouples the abstraction from implementation to facilitate the variation of both (abstraction and implementation).&lt;br /&gt;
&lt;br /&gt;
6) The Legacy Wrapper pattern is related to traditional Adapter pattern. The Legacy Wrapper pattern protects the legacy logic by providing a standard service that takes of protecting the legacy details by encapsulating, extraction or elimination. The encapsulation, extraction or elimination is done in order to change the service as the consumer requires it. This is related to adapter in a way that it converts the interface of one class to another as the client expects.&lt;br /&gt;
&lt;br /&gt;
=Summary=&lt;br /&gt;
&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;br /&gt;
&lt;br /&gt;
8.[http://www.oracle.com/technology/pub/articles/erl_soa_design_patterns_app_sequences.html SOA Design patterns application sequences by oracle]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25475</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25475"/>
		<updated>2009-10-10T02:54:43Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* UI Mediator */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This article focuses on the design patterns which are proposed and utilized in the [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture]. As the SOA provides its services through the protocols and API, this article throws light on the design patterns that specifically provide services through protocols like [http://www.soapatterns.org/canonical_protocol.asp Canonical protocol], [http://www.soapatterns.org/dual_protocols.asp Dual protocols] and [http://www.soapatterns.org/protocol_bridging.asp Protocol Bridging]. In a broader perspective, other design patterns have been explained tersely. In addition to explanation of the SOA design patterns, this compares the SOA design patterns with the traditional design patterns proposed by the ‘Gang of Four’ (Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides) and comes up with the differences and similarities between them.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture] is an architecture that provides collection of services. These services need to inter-operate with each other to provide the functionality. This architecture requires a loose coupling with operating systems and other technologies that form the basis of the application. The loose coupling between services is required because each interaction has to be independent of the other. The communication between services could be either simple data being passed or it could be either an activity coordinated between distinct entities or services. Some means of interoperability is required to provide the services in larger terms. Instead of defining the API, the SOA implements the interfaces using the protocols and functionality. SOA separates functions into unique entities or services, which are accessed in a network by the users to combine and reuse them to develop the applications.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Various businesses in the field of [http://en.wikipedia.org/wiki/Information_technology Information Technology] have to justify their projects with a return on their investments. This creates a pressure in Information Technology by making it a demanding field. Information Technology needs to have requirements in a way that it has to responsive and adapt to the changing requirements. &lt;br /&gt;
&lt;br /&gt;
Information Technology companies must also be able to provide the services that are compatible with other services making it interoperable, thus creating dynamic services. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money. [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture] offers a solution to satisfy the above needs of the industry&lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include &lt;br /&gt;
i)   business services across several platforms &lt;br /&gt;
ii)  location independence &lt;br /&gt;
iii) authentication as well as authorization support on different platforms &lt;br /&gt;
iv ) loosely coupled approach, dynamic search and connectivity to other services.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A [http://en.wikipedia.org/wiki/Design_pattern design pattern] is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be applied in different scenarios. Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges may make projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed. Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic.&lt;br /&gt;
&lt;br /&gt;
Examples include Enterprise Inventory, Domain Inventory, Service Normalization, Logic Centralization, Service Layers Canonical Protocol, Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA.The described patterns provide  the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that the services are delivered by three different communication technologies A,B and C.These services are made to conform to one centralized communications technology, making them technologically compatible.with this these services can be delivered to consumers without much difficulty&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this method as can be observed from the figure the three services A,B and C work behind the scenes to complete the given task.The mediator service (D) regularly updates the user interface there by hiding the underlying logic to the consumer.&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.The objective of loose coupling is achieved by this process.the core logic abstraction is obtained by this way.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
1) The composite pattern organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
figure to illustrate above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite_example.png]]&lt;br /&gt;
&lt;br /&gt;
2)&lt;br /&gt;
The traditional bridge pattern separates the abstraction from its implementation in order to vary independently. Whereas the canonical protocol avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Traditional_bridge.png]]&lt;br /&gt;
Figure for Traditional bridge pattern&lt;br /&gt;
&lt;br /&gt;
For canonical protocol refer to the explanation given in example design patterns&lt;br /&gt;
&lt;br /&gt;
3) The traditional builder pattern decouples the construction of the object from its representation so that the same construction process can be used to develop different representations. The different representations (contracts) are addressed in SOA by the Concurrent Contracts with the application of Service-façade design pattern.  With service-façade design pattern, an abstraction is created to support the interaction between different contracts. As a result, different contracts can be created for a single service.&lt;br /&gt;
In the below figure, the conversion of the text document is separated from the reader of RTF document, so that the text document can be represented in different forms like ASCIIText, TeXText and TextWidget. The different representation is achieved by decoupling of construction and abstraction. In the case of concurrent contracts pattern, the different contracts or services (invoices) are created for different consumer through service-façade by creating a new abstraction.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Builder.png]]&lt;br /&gt;
Figure for Traditional Builder pattern&lt;br /&gt;
&lt;br /&gt;
[[Image:Concurrent_pattern.png]]&lt;br /&gt;
Figure for Concurrent pattern&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
1) The Service-façade design pattern is similar to the façade (traditional) pattern in the manner that it implements the façade logic which is creating an abstraction for intra-communication within objects to the service architecture. The advantage by adding the façade logic to the service architecture is that it preserves the underlying logic from run-time changes.&lt;br /&gt;
&lt;br /&gt;
2) The UI Mediator design pattern implements the mediator logic of traditional mediator pattern. The mediator logic aims to provide the user responses in a way that user understands, independently of what the underlying services perform.&lt;br /&gt;
&lt;br /&gt;
3) The Intermediate routing pattern in SOA is similar to Decorator pattern (traditional) in the functionality that it adds the required logic at run-time. The decorator adds the additional functionality to the object at run-time. The intermediate routing pattern is about placing the routing logic to address the run-time scenarios.&lt;br /&gt;
&lt;br /&gt;
4)The Capability Composition pattern in SOA implements the Composite pattern (traditional). The Capability Composition is about composing one or more capabilities outside the service’s context to address the large, complex problem. &lt;br /&gt;
&lt;br /&gt;
5) The Decoupled Contract pattern implements the traditional Bridge pattern in the manner that service contract is separated from the implementation. The Bridge pattern decouples the abstraction from implementation to facilitate the variation of both (abstraction and implementation).&lt;br /&gt;
&lt;br /&gt;
6) The Legacy Wrapper pattern is related to traditional Adapter pattern. The Legacy Wrapper pattern protects the legacy logic by providing a standard service that takes of protecting the legacy details by encapsulating, extraction or elimination. The encapsulation, extraction or elimination is done in order to change the service as the consumer requires it. This is related to adapter in a way that it converts the interface of one class to another as the client expects.&lt;br /&gt;
&lt;br /&gt;
=Summary=&lt;br /&gt;
&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;br /&gt;
&lt;br /&gt;
8.[http://www.oracle.com/technology/pub/articles/erl_soa_design_patterns_app_sequences.html SOA Design patterns application sequences by oracle]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25464</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25464"/>
		<updated>2009-10-10T02:48:45Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Service Facade */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This article focuses on the design patterns which are proposed and utilized in the [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture]. As the SOA provides its services through the protocols and API, this article throws light on the design patterns that specifically provide services through protocols like [http://www.soapatterns.org/canonical_protocol.asp Canonical protocol], [http://www.soapatterns.org/dual_protocols.asp Dual protocols] and [http://www.soapatterns.org/protocol_bridging.asp Protocol Bridging]. In a broader perspective, other design patterns have been explained tersely. In addition to explanation of the SOA design patterns, this compares the SOA design patterns with the traditional design patterns proposed by the ‘Gang of Four’ (Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides) and comes up with the differences and similarities between them.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture] is an architecture that provides collection of services. These services need to inter-operate with each other to provide the functionality. This architecture requires a loose coupling with operating systems and other technologies that form the basis of the application. The loose coupling between services is required because each interaction has to be independent of the other. The communication between services could be either simple data being passed or it could be either an activity coordinated between distinct entities or services. Some means of interoperability is required to provide the services in larger terms. Instead of defining the API, the SOA implements the interfaces using the protocols and functionality. SOA separates functions into unique entities or services, which are accessed in a network by the users to combine and reuse them to develop the applications.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Various businesses in the field of [http://en.wikipedia.org/wiki/Information_technology Information Technology] have to justify their projects with a return on their investments. This creates a pressure in Information Technology by making it a demanding field. Information Technology needs to have requirements in a way that it has to responsive and adapt to the changing requirements. &lt;br /&gt;
&lt;br /&gt;
Information Technology companies must also be able to provide the services that are compatible with other services making it interoperable, thus creating dynamic services. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money. [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture] offers a solution to satisfy the above needs of the industry&lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include &lt;br /&gt;
i)   business services across several platforms &lt;br /&gt;
ii)  location independence &lt;br /&gt;
iii) authentication as well as authorization support on different platforms &lt;br /&gt;
iv ) loosely coupled approach, dynamic search and connectivity to other services.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A [http://en.wikipedia.org/wiki/Design_pattern design pattern] is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be applied in different scenarios. Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges may make projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed. Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA.The described patterns provide  the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that the services are delivered by three different communication technologies A,B and C.These services are made to conform to one centralized communications technology, making them technologically compatible.with this these services can be delivered to consumers without much difficulty&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.The objective of loose coupling is achieved by this process.the core logic abstraction is obtained by this way.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
1) The composite pattern organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
figure to illustrate above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite_example.png]]&lt;br /&gt;
&lt;br /&gt;
2)&lt;br /&gt;
The traditional bridge pattern separates the abstraction from its implementation in order to vary independently. Whereas the canonical protocol avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Traditional_bridge.png]]&lt;br /&gt;
Figure for Traditional bridge pattern&lt;br /&gt;
&lt;br /&gt;
For canonical protocol refer to the explanation given in example design patterns&lt;br /&gt;
&lt;br /&gt;
3) The traditional builder pattern decouples the construction of the object from its representation so that the same construction process can be used to develop different representations. The different representations (contracts) are addressed in SOA by the Concurrent Contracts with the application of Service-façade design pattern.  With service-façade design pattern, an abstraction is created to support the interaction between different contracts. As a result, different contracts can be created for a single service.&lt;br /&gt;
In the below figure, the conversion of the text document is separated from the reader of RTF document, so that the text document can be represented in different forms like ASCIIText, TeXText and TextWidget. The different representation is achieved by decoupling of construction and abstraction. In the case of concurrent contracts pattern, the different contracts or services (invoices) are created for different consumer through service-façade by creating a new abstraction.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Builder.png]]&lt;br /&gt;
Figure for Traditional Builder pattern&lt;br /&gt;
&lt;br /&gt;
[[Image:Concurrent_pattern.png]]&lt;br /&gt;
Figure for Concurrent pattern&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
1) The Service-façade design pattern is similar to the façade (traditional) pattern in the manner that it implements the façade logic which is creating an abstraction for intra-communication within objects to the service architecture. The advantage by adding the façade logic to the service architecture is that it preserves the underlying logic from run-time changes.&lt;br /&gt;
&lt;br /&gt;
2) The UI Mediator design pattern implements the mediator logic of traditional mediator pattern. The mediator logic aims to provide the user responses in a way that user understands, independently of what the underlying services perform.&lt;br /&gt;
&lt;br /&gt;
3) The Intermediate routing pattern in SOA is similar to Decorator pattern (traditional) in the functionality that it adds the required logic at run-time. The decorator adds the additional functionality to the object at run-time. The intermediate routing pattern is about placing the routing logic to address the run-time scenarios.&lt;br /&gt;
&lt;br /&gt;
4)The Capability Composition pattern in SOA implements the Composite pattern (traditional). The Capability Composition is about composing one or more capabilities outside the service’s context to address the large, complex problem. &lt;br /&gt;
&lt;br /&gt;
5) The Decoupled Contract pattern implements the traditional Bridge pattern in the manner that service contract is separated from the implementation. The Bridge pattern decouples the abstraction from implementation to facilitate the variation of both (abstraction and implementation).&lt;br /&gt;
&lt;br /&gt;
6) The Legacy Wrapper pattern is related to traditional Adapter pattern. The Legacy Wrapper pattern protects the legacy logic by providing a standard service that takes of protecting the legacy details by encapsulating, extraction or elimination. The encapsulation, extraction or elimination is done in order to change the service as the consumer requires it. This is related to adapter in a way that it converts the interface of one class to another as the client expects.&lt;br /&gt;
&lt;br /&gt;
=Summary=&lt;br /&gt;
&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;br /&gt;
&lt;br /&gt;
8.[http://www.oracle.com/technology/pub/articles/erl_soa_design_patterns_app_sequences.html SOA Design patterns application sequences by oracle]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25457</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25457"/>
		<updated>2009-10-10T02:46:07Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Canonical protocol */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This article focuses on the design patterns which are proposed and utilized in the [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture]. As the SOA provides its services through the protocols and API, this article throws light on the design patterns that specifically provide services through protocols like [http://www.soapatterns.org/canonical_protocol.asp Canonical protocol], [http://www.soapatterns.org/dual_protocols.asp Dual protocols] and [http://www.soapatterns.org/protocol_bridging.asp Protocol Bridging]. In a broader perspective, other design patterns have been explained tersely. In addition to explanation of the SOA design patterns, this compares the SOA design patterns with the traditional design patterns proposed by the ‘Gang of Four’ (Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides) and comes up with the differences and similarities between them.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture] is an architecture that provides collection of services. These services need to inter-operate with each other to provide the functionality. This architecture requires a loose coupling with operating systems and other technologies that form the basis of the application. The loose coupling between services is required because each interaction has to be independent of the other. The communication between services could be either simple data being passed or it could be either an activity coordinated between distinct entities or services. Some means of interoperability is required to provide the services in larger terms. Instead of defining the API, the SOA implements the interfaces using the protocols and functionality. SOA separates functions into unique entities or services, which are accessed in a network by the users to combine and reuse them to develop the applications.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Various businesses in the field of [http://en.wikipedia.org/wiki/Information_technology Information Technology] have to justify their projects with a return on their investments. This creates a pressure in Information Technology by making it a demanding field. Information Technology needs to have requirements in a way that it has to responsive and adapt to the changing requirements. &lt;br /&gt;
&lt;br /&gt;
Information Technology companies must also be able to provide the services that are compatible with other services making it interoperable, thus creating dynamic services. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money. [http://en.wikipedia.org/wiki/Service_oriented_architecture Service Oriented Architecture] offers a solution to satisfy the above needs of the industry&lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include &lt;br /&gt;
i)   business services across several platforms &lt;br /&gt;
ii)  location independence &lt;br /&gt;
iii) authentication as well as authorization support on different platforms &lt;br /&gt;
iv ) loosely coupled approach, dynamic search and connectivity to other services.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA.The described patterns provide  the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that the services are delivered by three different communication technologies A,B and C.These services are made to conform to one centralized communications technology, making them technologically compatible.with this these services can be delivered to consumers without much difficulty&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
1) The composite pattern organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
figure to illustrate above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite_example.png]]&lt;br /&gt;
&lt;br /&gt;
2)&lt;br /&gt;
The traditional bridge pattern separates the abstraction from its implementation in order to vary independently. Whereas the canonical protocol avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Traditional_bridge.png]]&lt;br /&gt;
Figure for Traditional bridge pattern&lt;br /&gt;
&lt;br /&gt;
For canonical protocol refer to the explanation given in example design patterns&lt;br /&gt;
&lt;br /&gt;
3) The traditional builder pattern decouples the construction of the object from its representation so that the same construction process can be used to develop different representations. The different representations (contracts) are addressed in SOA by the Concurrent Contracts with the application of Service-façade design pattern.  With service-façade design pattern, an abstraction is created to support the interaction between different contracts. As a result, different contracts can be created for a single service.&lt;br /&gt;
In the below figure, the conversion of the text document is separated from the reader of RTF document, so that the text document can be represented in different forms like ASCIIText, TeXText and TextWidget. The different representation is achieved by decoupling of construction and abstraction. In the case of concurrent contracts pattern, the different contracts or services (invoices) are created for different consumer through service-façade by creating a new abstraction.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Builder.png]]&lt;br /&gt;
Figure for Traditional Builder pattern&lt;br /&gt;
&lt;br /&gt;
[[Image:Concurrent_pattern.png]]&lt;br /&gt;
Figure for Concurrent pattern&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
1) The Service-façade design pattern is similar to the façade (traditional) pattern in the manner that it implements the façade logic which is creating an abstraction for intra-communication within objects to the service architecture. The advantage by adding the façade logic to the service architecture is that it preserves the underlying logic from run-time changes.&lt;br /&gt;
&lt;br /&gt;
2) The UI Mediator design pattern implements the mediator logic of traditional mediator pattern. The mediator logic aims to provide the user responses in a way that user understands, independently of what the underlying services perform.&lt;br /&gt;
&lt;br /&gt;
3) The Intermediate routing pattern in SOA is similar to Decorator pattern (traditional) in the functionality that it adds the required logic at run-time. The decorator adds the additional functionality to the object at run-time. The intermediate routing pattern is about placing the routing logic to address the run-time scenarios.&lt;br /&gt;
&lt;br /&gt;
4)The Capability Composition pattern in SOA implements the Composite pattern (traditional). The Capability Composition is about composing one or more capabilities outside the service’s context to address the large, complex problem. &lt;br /&gt;
&lt;br /&gt;
5) The Decoupled Contract pattern implements the traditional Bridge pattern in the manner that service contract is separated from the implementation. The Bridge pattern decouples the abstraction from implementation to facilitate the variation of both (abstraction and implementation).&lt;br /&gt;
&lt;br /&gt;
6) The Legacy Wrapper pattern is related to traditional Adapter pattern. The Legacy Wrapper pattern protects the legacy logic by providing a standard service that takes of protecting the legacy details by encapsulating, extraction or elimination. The encapsulation, extraction or elimination is done in order to change the service as the consumer requires it. This is related to adapter in a way that it converts the interface of one class to another as the client expects.&lt;br /&gt;
&lt;br /&gt;
=Summary=&lt;br /&gt;
&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;br /&gt;
&lt;br /&gt;
8.[http://www.oracle.com/technology/pub/articles/erl_soa_design_patterns_app_sequences.html SOA Design patterns application sequences by oracle]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25116</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25116"/>
		<updated>2009-10-10T00:42:03Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Differences */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This article focuses on the design patterns which are proposed and utilized in the Service Oriented Architecture. As the SOA provides its services through the protocols and API, this article throws light on the design patterns that specifically provide services through protocols like Canonical protocol, Dual protocol and Protocol Bridging. In a broader perspective, other design patterns have been explained tersely. In addition to explanation of the SOA design patterns, this compares the SOA design patterns with the traditional design patterns proposed by the ‘Gang of Four’ (Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides) and comes up with the differences and similarities between them.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA.The described patterns provide  the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
1) The composite pattern organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
figure to illustrate above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite_example.png]]&lt;br /&gt;
&lt;br /&gt;
2)&lt;br /&gt;
The traditional bridge pattern separates the abstraction from its implementation in order to vary independently. Whereas the canonical protocol avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Traditional_bridge.png]]&lt;br /&gt;
Figure for Traditional bridge pattern&lt;br /&gt;
&lt;br /&gt;
For canonical protocol refer to the explanation given in example design patterns&lt;br /&gt;
&lt;br /&gt;
3) The traditional builder pattern decouples the construction of the object from its representation so that the same construction process can be used to develop different representations. The different representations (contracts) are addressed in SOA by the Concurrent Contracts with the application of Service-façade design pattern.  With service-façade design pattern, an abstraction is created to support the interaction between different contracts. As a result, different contracts can be created for a single service.&lt;br /&gt;
In the below figure, the conversion of the text document is separated from the reader of RTF document, so that the text document can be represented in different forms like ASCIIText, TeXText and TextWidget. The different representation is achieved by decoupling of construction and abstraction. In the case of concurrent contracts pattern, the different contracts or services (invoices) are created for different consumer through service-façade by creating a new abstraction.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Builder.png]]&lt;br /&gt;
Figure for Traditional Builder pattern&lt;br /&gt;
&lt;br /&gt;
[[Image:Concurrent_pattern.png]]&lt;br /&gt;
Figure for Concurrent pattern&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
1) The Service-façade design pattern is similar to the façade (traditional) pattern in the manner that it implements the façade logic which is creating an abstraction for intra-communication within objects to the service architecture. The advantage by adding the façade logic to the service architecture is that it preserves the underlying logic from run-time changes.&lt;br /&gt;
&lt;br /&gt;
2) The UI Mediator design pattern implements the mediator logic of traditional mediator pattern. The mediator logic aims to provide the user responses in a way that user understands, independently of what the underlying services perform.&lt;br /&gt;
&lt;br /&gt;
3) The Intermediate routing pattern in SOA is similar to Decorator pattern (traditional) in the functionality that it adds the required logic at run-time. The decorator adds the additional functionality to the object at run-time. The intermediate routing pattern is about placing the routing logic to address the run-time scenarios.&lt;br /&gt;
&lt;br /&gt;
4)The Capability Composition pattern in SOA implements the Composite pattern (traditional). The Capability Composition is about composing one or more capabilities outside the service’s context to address the large, complex problem. &lt;br /&gt;
&lt;br /&gt;
5) The Decoupled Contract pattern implements the traditional Bridge pattern in the manner that service contract is separated from the implementation. The Bridge pattern decouples the abstraction from implementation to facilitate the variation of both (abstraction and implementation).&lt;br /&gt;
&lt;br /&gt;
6) The Legacy Wrapper pattern is related to traditional Adapter pattern. The Legacy Wrapper pattern protects the legacy logic by providing a standard service that takes of protecting the legacy details by encapsulating, extraction or elimination. The encapsulation, extraction or elimination is done in order to change the service as the consumer requires it. This is related to adapter in a way that it converts the interface of one class to another as the client expects.&lt;br /&gt;
&lt;br /&gt;
=Summary=&lt;br /&gt;
&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;br /&gt;
&lt;br /&gt;
8.[http://www.oracle.com/technology/pub/articles/erl_soa_design_patterns_app_sequences.html SOA Design patterns application sequences by oracle]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25115</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25115"/>
		<updated>2009-10-10T00:41:40Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Differences */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This article focuses on the design patterns which are proposed and utilized in the Service Oriented Architecture. As the SOA provides its services through the protocols and API, this article throws light on the design patterns that specifically provide services through protocols like Canonical protocol, Dual protocol and Protocol Bridging. In a broader perspective, other design patterns have been explained tersely. In addition to explanation of the SOA design patterns, this compares the SOA design patterns with the traditional design patterns proposed by the ‘Gang of Four’ (Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides) and comes up with the differences and similarities between them.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA.The described patterns provide  the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
1) The composite pattern organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
figure to illustrate above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite_example.png]]&lt;br /&gt;
&lt;br /&gt;
2)&lt;br /&gt;
The traditional bridge pattern separates the abstraction from its implementation in order to vary independently. Whereas the canonical protocol avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Traditional_bridge.png]]&lt;br /&gt;
Figure for Traditional bridge pattern&lt;br /&gt;
&lt;br /&gt;
For canonical protocol refer to the explanation given in example design patterns&lt;br /&gt;
&lt;br /&gt;
3) The traditional builder pattern decouples the construction of the object from its representation so that the same construction process can be used to develop different representations. The different representations (contracts) are addressed in SOA by the Concurrent Contracts with the application of Service-façade design pattern.  With service-façade design pattern, an abstraction is created to support the interaction between different contracts. As a result, different contracts can be created for a single service.&lt;br /&gt;
In the below figure, the conversion of the text document is separated from the reader of RTF document, so that the text document can be represented in different forms like ASCIIText, TeXText and TextWidget. The different representation is achieved by decoupling of construction and abstraction. In the case of concurrent contracts pattern, the different contracts or services (invoices) are created for different consumer through service-façade by creating a new abstraction.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Builder.png]]&lt;br /&gt;
Figure for Traditional Builder pattern&lt;br /&gt;
&lt;br /&gt;
[[Image:Concurrent_pattern.png]]&lt;br /&gt;
                                                Figure for Concurrent pattern&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
1) The Service-façade design pattern is similar to the façade (traditional) pattern in the manner that it implements the façade logic which is creating an abstraction for intra-communication within objects to the service architecture. The advantage by adding the façade logic to the service architecture is that it preserves the underlying logic from run-time changes.&lt;br /&gt;
&lt;br /&gt;
2) The UI Mediator design pattern implements the mediator logic of traditional mediator pattern. The mediator logic aims to provide the user responses in a way that user understands, independently of what the underlying services perform.&lt;br /&gt;
&lt;br /&gt;
3) The Intermediate routing pattern in SOA is similar to Decorator pattern (traditional) in the functionality that it adds the required logic at run-time. The decorator adds the additional functionality to the object at run-time. The intermediate routing pattern is about placing the routing logic to address the run-time scenarios.&lt;br /&gt;
&lt;br /&gt;
4)The Capability Composition pattern in SOA implements the Composite pattern (traditional). The Capability Composition is about composing one or more capabilities outside the service’s context to address the large, complex problem. &lt;br /&gt;
&lt;br /&gt;
5) The Decoupled Contract pattern implements the traditional Bridge pattern in the manner that service contract is separated from the implementation. The Bridge pattern decouples the abstraction from implementation to facilitate the variation of both (abstraction and implementation).&lt;br /&gt;
&lt;br /&gt;
6) The Legacy Wrapper pattern is related to traditional Adapter pattern. The Legacy Wrapper pattern protects the legacy logic by providing a standard service that takes of protecting the legacy details by encapsulating, extraction or elimination. The encapsulation, extraction or elimination is done in order to change the service as the consumer requires it. This is related to adapter in a way that it converts the interface of one class to another as the client expects.&lt;br /&gt;
&lt;br /&gt;
=Summary=&lt;br /&gt;
&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;br /&gt;
&lt;br /&gt;
8.[http://www.oracle.com/technology/pub/articles/erl_soa_design_patterns_app_sequences.html SOA Design patterns application sequences by oracle]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25112</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25112"/>
		<updated>2009-10-10T00:41:20Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Differences */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This article focuses on the design patterns which are proposed and utilized in the Service Oriented Architecture. As the SOA provides its services through the protocols and API, this article throws light on the design patterns that specifically provide services through protocols like Canonical protocol, Dual protocol and Protocol Bridging. In a broader perspective, other design patterns have been explained tersely. In addition to explanation of the SOA design patterns, this compares the SOA design patterns with the traditional design patterns proposed by the ‘Gang of Four’ (Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides) and comes up with the differences and similarities between them.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA.The described patterns provide  the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
1) The composite pattern organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
figure to illustrate above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite_example.png]]&lt;br /&gt;
&lt;br /&gt;
2)&lt;br /&gt;
The traditional bridge pattern separates the abstraction from its implementation in order to vary independently. Whereas the canonical protocol avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Traditional_bridge.png]]&lt;br /&gt;
Figure for Traditional bridge pattern&lt;br /&gt;
&lt;br /&gt;
For canonical protocol refer to the explanation given in example design patterns&lt;br /&gt;
&lt;br /&gt;
3) The traditional builder pattern decouples the construction of the object from its representation so that the same construction process can be used to develop different representations. The different representations (contracts) are addressed in SOA by the Concurrent Contracts with the application of Service-façade design pattern.  With service-façade design pattern, an abstraction is created to support the interaction between different contracts. As a result, different contracts can be created for a single service.&lt;br /&gt;
In the below figure, the conversion of the text document is separated from the reader of RTF document, so that the text document can be represented in different forms like ASCIIText, TeXText and TextWidget. The different representation is achieved by decoupling of construction and abstraction. In the case of concurrent contracts pattern, the different contracts or services (invoices) are created for different consumer through service-façade by creating a new abstraction.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Builder.png]]&lt;br /&gt;
Figure for Traditional Builder pattern&lt;br /&gt;
&lt;br /&gt;
[[Image:Concurrent_pattern.png]]&lt;br /&gt;
Figure for Concurrent pattern&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
1) The Service-façade design pattern is similar to the façade (traditional) pattern in the manner that it implements the façade logic which is creating an abstraction for intra-communication within objects to the service architecture. The advantage by adding the façade logic to the service architecture is that it preserves the underlying logic from run-time changes.&lt;br /&gt;
&lt;br /&gt;
2) The UI Mediator design pattern implements the mediator logic of traditional mediator pattern. The mediator logic aims to provide the user responses in a way that user understands, independently of what the underlying services perform.&lt;br /&gt;
&lt;br /&gt;
3) The Intermediate routing pattern in SOA is similar to Decorator pattern (traditional) in the functionality that it adds the required logic at run-time. The decorator adds the additional functionality to the object at run-time. The intermediate routing pattern is about placing the routing logic to address the run-time scenarios.&lt;br /&gt;
&lt;br /&gt;
4)The Capability Composition pattern in SOA implements the Composite pattern (traditional). The Capability Composition is about composing one or more capabilities outside the service’s context to address the large, complex problem. &lt;br /&gt;
&lt;br /&gt;
5) The Decoupled Contract pattern implements the traditional Bridge pattern in the manner that service contract is separated from the implementation. The Bridge pattern decouples the abstraction from implementation to facilitate the variation of both (abstraction and implementation).&lt;br /&gt;
&lt;br /&gt;
6) The Legacy Wrapper pattern is related to traditional Adapter pattern. The Legacy Wrapper pattern protects the legacy logic by providing a standard service that takes of protecting the legacy details by encapsulating, extraction or elimination. The encapsulation, extraction or elimination is done in order to change the service as the consumer requires it. This is related to adapter in a way that it converts the interface of one class to another as the client expects.&lt;br /&gt;
&lt;br /&gt;
=Summary=&lt;br /&gt;
&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;br /&gt;
&lt;br /&gt;
8.[http://www.oracle.com/technology/pub/articles/erl_soa_design_patterns_app_sequences.html SOA Design patterns application sequences by oracle]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25108</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25108"/>
		<updated>2009-10-10T00:40:25Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This article focuses on the design patterns which are proposed and utilized in the Service Oriented Architecture. As the SOA provides its services through the protocols and API, this article throws light on the design patterns that specifically provide services through protocols like Canonical protocol, Dual protocol and Protocol Bridging. In a broader perspective, other design patterns have been explained tersely. In addition to explanation of the SOA design patterns, this compares the SOA design patterns with the traditional design patterns proposed by the ‘Gang of Four’ (Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides) and comes up with the differences and similarities between them.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA.The described patterns provide  the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
1) The composite pattern organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite_example.png]]&lt;br /&gt;
&lt;br /&gt;
2)&lt;br /&gt;
The traditional bridge pattern separates the abstraction from its implementation in order to vary independently. Whereas the canonical protocol avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Traditional_bridge.png]]&lt;br /&gt;
Figure for Traditional bridge pattern&lt;br /&gt;
&lt;br /&gt;
For canonical protocol refer to the explanation given in example design patterns&lt;br /&gt;
&lt;br /&gt;
3) The traditional builder pattern decouples the construction of the object from its representation so that the same construction process can be used to develop different representations. The different representations (contracts) are addressed in SOA by the Concurrent Contracts with the application of Service-façade design pattern.  With service-façade design pattern, an abstraction is created to support the interaction between different contracts. As a result, different contracts can be created for a single service.&lt;br /&gt;
In the below figure, the conversion of the text document is separated from the reader of RTF document, so that the text document can be represented in different forms like ASCIIText, TeXText and TextWidget. The different representation is achieved by decoupling of construction and abstraction. In the case of concurrent contracts pattern, the different contracts or services (invoices) are created for different consumer through service-façade by creating a new abstraction.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Builder.png]]&lt;br /&gt;
&lt;br /&gt;
Figure for Traditional Builder pattern&lt;br /&gt;
&lt;br /&gt;
[[Image:Concurrent_pattern.png]]&lt;br /&gt;
&lt;br /&gt;
Figure for Concurrent pattern&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
1) The Service-façade design pattern is similar to the façade (traditional) pattern in the manner that it implements the façade logic which is creating an abstraction for intra-communication within objects to the service architecture. The advantage by adding the façade logic to the service architecture is that it preserves the underlying logic from run-time changes.&lt;br /&gt;
&lt;br /&gt;
2) The UI Mediator design pattern implements the mediator logic of traditional mediator pattern. The mediator logic aims to provide the user responses in a way that user understands, independently of what the underlying services perform.&lt;br /&gt;
&lt;br /&gt;
3) The Intermediate routing pattern in SOA is similar to Decorator pattern (traditional) in the functionality that it adds the required logic at run-time. The decorator adds the additional functionality to the object at run-time. The intermediate routing pattern is about placing the routing logic to address the run-time scenarios.&lt;br /&gt;
&lt;br /&gt;
4)The Capability Composition pattern in SOA implements the Composite pattern (traditional). The Capability Composition is about composing one or more capabilities outside the service’s context to address the large, complex problem. &lt;br /&gt;
&lt;br /&gt;
5) The Decoupled Contract pattern implements the traditional Bridge pattern in the manner that service contract is separated from the implementation. The Bridge pattern decouples the abstraction from implementation to facilitate the variation of both (abstraction and implementation).&lt;br /&gt;
&lt;br /&gt;
6) The Legacy Wrapper pattern is related to traditional Adapter pattern. The Legacy Wrapper pattern protects the legacy logic by providing a standard service that takes of protecting the legacy details by encapsulating, extraction or elimination. The encapsulation, extraction or elimination is done in order to change the service as the consumer requires it. This is related to adapter in a way that it converts the interface of one class to another as the client expects.&lt;br /&gt;
&lt;br /&gt;
=Summary=&lt;br /&gt;
&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;br /&gt;
&lt;br /&gt;
8.[http://www.oracle.com/technology/pub/articles/erl_soa_design_patterns_app_sequences.html SOA Design patterns application sequences by oracle]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25090</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25090"/>
		<updated>2009-10-10T00:38:37Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Conclusion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This article focuses on the design patterns which are proposed and utilized in the Service Oriented Architecture. As the SOA provides its services through the protocols and API, this article throws light on the design patterns that specifically provide services through protocols like Canonical protocol, Dual protocol and Protocol Bridging. In a broader perspective, other design patterns have been explained tersely. In addition to explanation of the SOA design patterns, this compares the SOA design patterns with the traditional design patterns proposed by the ‘Gang of Four’ (Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides) and comes up with the differences and similarities between them.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA.The described patterns provide  the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
1) The composite pattern organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite_example.png]]&lt;br /&gt;
&lt;br /&gt;
2)&lt;br /&gt;
The traditional bridge pattern separates the abstraction from its implementation in order to vary independently. Whereas the canonical protocol avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Traditional_bridge.png]]&lt;br /&gt;
Figure for Traditional bridge pattern&lt;br /&gt;
&lt;br /&gt;
For canonical protocol refer to the explanation given in example design patterns&lt;br /&gt;
&lt;br /&gt;
3) The traditional builder pattern decouples the construction of the object from its representation so that the same construction process can be used to develop different representations. The different representations (contracts) are addressed in SOA by the Concurrent Contracts with the application of Service-façade design pattern.  With service-façade design pattern, an abstraction is created to support the interaction between different contracts. As a result, different contracts can be created for a single service.&lt;br /&gt;
In the below figure, the conversion of the text document is separated from the reader of RTF document, so that the text document can be represented in different forms like ASCIIText, TeXText and TextWidget. The different representation is achieved by decoupling of construction and abstraction. In the case of concurrent contracts pattern, the different contracts or services (invoices) are created for different consumer through service-façade by creating a new abstraction.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Builder.png]]&lt;br /&gt;
&lt;br /&gt;
Figure for Traditional Builder pattern&lt;br /&gt;
&lt;br /&gt;
[[Image:Concurrent_pattern.png]]&lt;br /&gt;
&lt;br /&gt;
Figure for Concurrent pattern&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
1) The Service-façade design pattern is similar to the façade (traditional) pattern in the manner that it implements the façade logic which is creating an abstraction for intra-communication within objects to the service architecture. The advantage by adding the façade logic to the service architecture is that it preserves the underlying logic from run-time changes.&lt;br /&gt;
&lt;br /&gt;
2) The UI Mediator design pattern implements the mediator logic of traditional mediator pattern. The mediator logic aims to provide the user responses in a way that user understands, independently of what the underlying services perform.&lt;br /&gt;
&lt;br /&gt;
3) The Intermediate routing pattern in SOA is similar to Decorator pattern (traditional) in the functionality that it adds the required logic at run-time. The decorator adds the additional functionality to the object at run-time. The intermediate routing pattern is about placing the routing logic to address the run-time scenarios.&lt;br /&gt;
&lt;br /&gt;
4)The Capability Composition pattern in SOA implements the Composite pattern (traditional). The Capability Composition is about composing one or more capabilities outside the service’s context to address the large, complex problem. &lt;br /&gt;
&lt;br /&gt;
5) The Decoupled Contract pattern implements the traditional Bridge pattern in the manner that service contract is separated from the implementation. The Bridge pattern decouples the abstraction from implementation to facilitate the variation of both (abstraction and implementation).&lt;br /&gt;
&lt;br /&gt;
6) The Legacy Wrapper pattern is related to traditional Adapter pattern. The Legacy Wrapper pattern protects the legacy logic by providing a standard service that takes of protecting the legacy details by encapsulating, extraction or elimination. The encapsulation, extraction or elimination is done in order to change the service as the consumer requires it. This is related to adapter in a way that it converts the interface of one class to another as the client expects.&lt;br /&gt;
&lt;br /&gt;
=Summary=&lt;br /&gt;
&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25076</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25076"/>
		<updated>2009-10-10T00:36:48Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Differences */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This article focuses on the design patterns which are proposed and utilized in the Service Oriented Architecture. As the SOA provides its services through the protocols and API, this article throws light on the design patterns that specifically provide services through protocols like Canonical protocol, Dual protocol and Protocol Bridging. In a broader perspective, other design patterns have been explained tersely. In addition to explanation of the SOA design patterns, this compares the SOA design patterns with the traditional design patterns proposed by the ‘Gang of Four’ (Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides) and comes up with the differences and similarities between them.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA.The described patterns provide  the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
1) The composite pattern organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite_example.png]]&lt;br /&gt;
&lt;br /&gt;
2)&lt;br /&gt;
The traditional bridge pattern separates the abstraction from its implementation in order to vary independently. Whereas the canonical protocol avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Traditional_bridge.png]]&lt;br /&gt;
Figure for Traditional bridge pattern&lt;br /&gt;
&lt;br /&gt;
For canonical protocol refer to the explanation given in example design patterns&lt;br /&gt;
&lt;br /&gt;
3) The traditional builder pattern decouples the construction of the object from its representation so that the same construction process can be used to develop different representations. The different representations (contracts) are addressed in SOA by the Concurrent Contracts with the application of Service-façade design pattern.  With service-façade design pattern, an abstraction is created to support the interaction between different contracts. As a result, different contracts can be created for a single service.&lt;br /&gt;
In the below figure, the conversion of the text document is separated from the reader of RTF document, so that the text document can be represented in different forms like ASCIIText, TeXText and TextWidget. The different representation is achieved by decoupling of construction and abstraction. In the case of concurrent contracts pattern, the different contracts or services (invoices) are created for different consumer through service-façade by creating a new abstraction.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Builder.png]]&lt;br /&gt;
&lt;br /&gt;
Figure for Traditional Builder pattern&lt;br /&gt;
&lt;br /&gt;
[[Image:Concurrent_pattern.png]]&lt;br /&gt;
&lt;br /&gt;
Figure for Concurrent pattern&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
1) The Service-façade design pattern is similar to the façade (traditional) pattern in the manner that it implements the façade logic which is creating an abstraction for intra-communication within objects to the service architecture. The advantage by adding the façade logic to the service architecture is that it preserves the underlying logic from run-time changes.&lt;br /&gt;
&lt;br /&gt;
2) The UI Mediator design pattern implements the mediator logic of traditional mediator pattern. The mediator logic aims to provide the user responses in a way that user understands, independently of what the underlying services perform.&lt;br /&gt;
&lt;br /&gt;
3) The Intermediate routing pattern in SOA is similar to Decorator pattern (traditional) in the functionality that it adds the required logic at run-time. The decorator adds the additional functionality to the object at run-time. The intermediate routing pattern is about placing the routing logic to address the run-time scenarios.&lt;br /&gt;
&lt;br /&gt;
4)The Capability Composition pattern in SOA implements the Composite pattern (traditional). The Capability Composition is about composing one or more capabilities outside the service’s context to address the large, complex problem. &lt;br /&gt;
&lt;br /&gt;
5) The Decoupled Contract pattern implements the traditional Bridge pattern in the manner that service contract is separated from the implementation. The Bridge pattern decouples the abstraction from implementation to facilitate the variation of both (abstraction and implementation).&lt;br /&gt;
&lt;br /&gt;
6) The Legacy Wrapper pattern is related to traditional Adapter pattern. The Legacy Wrapper pattern protects the legacy logic by providing a standard service that takes of protecting the legacy details by encapsulating, extraction or elimination. The encapsulation, extraction or elimination is done in order to change the service as the consumer requires it. This is related to adapter in a way that it converts the interface of one class to another as the client expects.&lt;br /&gt;
&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25069</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25069"/>
		<updated>2009-10-10T00:35:39Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Differences */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This article focuses on the design patterns which are proposed and utilized in the Service Oriented Architecture. As the SOA provides its services through the protocols and API, this article throws light on the design patterns that specifically provide services through protocols like Canonical protocol, Dual protocol and Protocol Bridging. In a broader perspective, other design patterns have been explained tersely. In addition to explanation of the SOA design patterns, this compares the SOA design patterns with the traditional design patterns proposed by the ‘Gang of Four’ (Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides) and comes up with the differences and similarities between them.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA.The described patterns provide  the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
1) The composite pattern organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite_example.png]]&lt;br /&gt;
&lt;br /&gt;
2)&lt;br /&gt;
The traditional bridge pattern separates the abstraction from its implementation in order to vary independently. Whereas the canonical protocol avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Traditional_bridge.png]]&lt;br /&gt;
&lt;br /&gt;
For canonical protocol refer to the explanation given in example design patterns&lt;br /&gt;
&lt;br /&gt;
3) The traditional builder pattern decouples the construction of the object from its representation so that the same construction process can be used to develop different representations. The different representations (contracts) are addressed in SOA by the Concurrent Contracts with the application of Service-façade design pattern.  With service-façade design pattern, an abstraction is created to support the interaction between different contracts. As a result, different contracts can be created for a single service.&lt;br /&gt;
In the below figure, the conversion of the text document is separated from the reader of RTF document, so that the text document can be represented in different forms like ASCIIText, TeXText and TextWidget. The different representation is achieved by decoupling of construction and abstraction. In the case of concurrent contracts pattern, the different contracts or services (invoices) are created for different consumer through service-façade by creating a new abstraction.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Builder.png]]&lt;br /&gt;
&lt;br /&gt;
Figure for Builder pattern&lt;br /&gt;
&lt;br /&gt;
[[Image:Concurrent_pattern.png]]&lt;br /&gt;
&lt;br /&gt;
Figure for Concurrent pattern&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
1) The Service-façade design pattern is similar to the façade (traditional) pattern in the manner that it implements the façade logic which is creating an abstraction for intra-communication within objects to the service architecture. The advantage by adding the façade logic to the service architecture is that it preserves the underlying logic from run-time changes.&lt;br /&gt;
&lt;br /&gt;
2) The UI Mediator design pattern implements the mediator logic of traditional mediator pattern. The mediator logic aims to provide the user responses in a way that user understands, independently of what the underlying services perform.&lt;br /&gt;
&lt;br /&gt;
3) The Intermediate routing pattern in SOA is similar to Decorator pattern (traditional) in the functionality that it adds the required logic at run-time. The decorator adds the additional functionality to the object at run-time. The intermediate routing pattern is about placing the routing logic to address the run-time scenarios.&lt;br /&gt;
&lt;br /&gt;
4)The Capability Composition pattern in SOA implements the Composite pattern (traditional). The Capability Composition is about composing one or more capabilities outside the service’s context to address the large, complex problem. &lt;br /&gt;
&lt;br /&gt;
5) The Decoupled Contract pattern implements the traditional Bridge pattern in the manner that service contract is separated from the implementation. The Bridge pattern decouples the abstraction from implementation to facilitate the variation of both (abstraction and implementation).&lt;br /&gt;
&lt;br /&gt;
6) The Legacy Wrapper pattern is related to traditional Adapter pattern. The Legacy Wrapper pattern protects the legacy logic by providing a standard service that takes of protecting the legacy details by encapsulating, extraction or elimination. The encapsulation, extraction or elimination is done in order to change the service as the consumer requires it. This is related to adapter in a way that it converts the interface of one class to another as the client expects.&lt;br /&gt;
&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25059</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25059"/>
		<updated>2009-10-10T00:34:09Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Differences */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This article focuses on the design patterns which are proposed and utilized in the Service Oriented Architecture. As the SOA provides its services through the protocols and API, this article throws light on the design patterns that specifically provide services through protocols like Canonical protocol, Dual protocol and Protocol Bridging. In a broader perspective, other design patterns have been explained tersely. In addition to explanation of the SOA design patterns, this compares the SOA design patterns with the traditional design patterns proposed by the ‘Gang of Four’ (Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides) and comes up with the differences and similarities between them.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA.The described patterns provide  the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
1) The composite pattern organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite_example.png]]&lt;br /&gt;
&lt;br /&gt;
2)&lt;br /&gt;
The traditional bridge pattern separates the abstraction from its implementation in order to vary independently. Whereas the canonical protocol avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Traditional_bridge.png]]&lt;br /&gt;
&lt;br /&gt;
For canonical protocol refer to the explanation given in example design patterns&lt;br /&gt;
&lt;br /&gt;
3) The traditional builder pattern decouples the construction of the object from its representation so that the same construction process can be used to develop different representations. The different representations (contracts) are addressed in SOA by the Concurrent Contracts with the application of Service-façade design pattern.  With service-façade design pattern, an abstraction is created to support the interaction between different contracts. As a result, different contracts can be created for a single service.&lt;br /&gt;
In the below figure, the conversion of the text document is separated from the reader of RTF document, so that the text document can be represented in different forms like ASCIIText, TeXText and TextWidget. The different representation is achieved by decoupling of construction and abstraction. In the case of concurrent contracts pattern, the different contracts or services (invoices) are created for different consumer through service-façade by creating a new abstraction.&lt;br /&gt;
&lt;br /&gt;
[[Image:Builder.png]]&lt;br /&gt;
[[Image:Concurrent_pattern.png]]&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
1) The Service-façade design pattern is similar to the façade (traditional) pattern in the manner that it implements the façade logic which is creating an abstraction for intra-communication within objects to the service architecture. The advantage by adding the façade logic to the service architecture is that it preserves the underlying logic from run-time changes.&lt;br /&gt;
&lt;br /&gt;
2) The UI Mediator design pattern implements the mediator logic of traditional mediator pattern. The mediator logic aims to provide the user responses in a way that user understands, independently of what the underlying services perform.&lt;br /&gt;
&lt;br /&gt;
3) The Intermediate routing pattern in SOA is similar to Decorator pattern (traditional) in the functionality that it adds the required logic at run-time. The decorator adds the additional functionality to the object at run-time. The intermediate routing pattern is about placing the routing logic to address the run-time scenarios.&lt;br /&gt;
&lt;br /&gt;
4)The Capability Composition pattern in SOA implements the Composite pattern (traditional). The Capability Composition is about composing one or more capabilities outside the service’s context to address the large, complex problem. &lt;br /&gt;
&lt;br /&gt;
5) The Decoupled Contract pattern implements the traditional Bridge pattern in the manner that service contract is separated from the implementation. The Bridge pattern decouples the abstraction from implementation to facilitate the variation of both (abstraction and implementation).&lt;br /&gt;
&lt;br /&gt;
6) The Legacy Wrapper pattern is related to traditional Adapter pattern. The Legacy Wrapper pattern protects the legacy logic by providing a standard service that takes of protecting the legacy details by encapsulating, extraction or elimination. The encapsulation, extraction or elimination is done in order to change the service as the consumer requires it. This is related to adapter in a way that it converts the interface of one class to another as the client expects.&lt;br /&gt;
&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Concurrent_pattern.png&amp;diff=25049</id>
		<title>File:Concurrent pattern.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Concurrent_pattern.png&amp;diff=25049"/>
		<updated>2009-10-10T00:33:07Z</updated>

		<summary type="html">&lt;p&gt;Chargers: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Builder.png&amp;diff=25047</id>
		<title>File:Builder.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Builder.png&amp;diff=25047"/>
		<updated>2009-10-10T00:32:58Z</updated>

		<summary type="html">&lt;p&gt;Chargers: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Composite_example.png&amp;diff=25045</id>
		<title>File:Composite example.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Composite_example.png&amp;diff=25045"/>
		<updated>2009-10-10T00:32:49Z</updated>

		<summary type="html">&lt;p&gt;Chargers: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25039</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25039"/>
		<updated>2009-10-10T00:29:44Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Differences */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This article focuses on the design patterns which are proposed and utilized in the Service Oriented Architecture. As the SOA provides its services through the protocols and API, this article throws light on the design patterns that specifically provide services through protocols like Canonical protocol, Dual protocol and Protocol Bridging. In a broader perspective, other design patterns have been explained tersely. In addition to explanation of the SOA design patterns, this compares the SOA design patterns with the traditional design patterns proposed by the ‘Gang of Four’ (Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides) and comes up with the differences and similarities between them.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA.The described patterns provide  the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
1) The composite pattern organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite.png]]&lt;br /&gt;
&lt;br /&gt;
2)&lt;br /&gt;
The traditional bridge pattern separates the abstraction from its implementation in order to vary independently. Whereas the canonical protocol avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Traditional_bridge.png]]&lt;br /&gt;
&lt;br /&gt;
For canonical protocol refer to the explanation given in example design patterns&lt;br /&gt;
&lt;br /&gt;
3) The traditional builder pattern decouples the construction of the object from its representation so that the same construction process can be used to develop different representations. The different representations (contracts) are addressed in SOA by the Concurrent Contracts with the application of Service-façade design pattern.  With service-façade design pattern, an abstraction is created to support the interaction between different contracts. As a result, different contracts can be created for a single service.&lt;br /&gt;
In the below figure, the conversion of the text document is separated from the reader of RTF document, so that the text document can be represented in different forms like ASCIIText, TeXText and TextWidget. The different representation is achieved by decoupling of construction and abstraction. In the case of concurrent contracts pattern, the different contracts or services (invoices) are created for different consumer through service-façade by creating a new abstraction.&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
1) The Service-façade design pattern is similar to the façade (traditional) pattern in the manner that it implements the façade logic which is creating an abstraction for intra-communication within objects to the service architecture. The advantage by adding the façade logic to the service architecture is that it preserves the underlying logic from run-time changes.&lt;br /&gt;
&lt;br /&gt;
2) The UI Mediator design pattern implements the mediator logic of traditional mediator pattern. The mediator logic aims to provide the user responses in a way that user understands, independently of what the underlying services perform.&lt;br /&gt;
&lt;br /&gt;
3) The Intermediate routing pattern in SOA is similar to Decorator pattern (traditional) in the functionality that it adds the required logic at run-time. The decorator adds the additional functionality to the object at run-time. The intermediate routing pattern is about placing the routing logic to address the run-time scenarios.&lt;br /&gt;
&lt;br /&gt;
4)The Capability Composition pattern in SOA implements the Composite pattern (traditional). The Capability Composition is about composing one or more capabilities outside the service’s context to address the large, complex problem. &lt;br /&gt;
&lt;br /&gt;
5) The Decoupled Contract pattern implements the traditional Bridge pattern in the manner that service contract is separated from the implementation. The Bridge pattern decouples the abstraction from implementation to facilitate the variation of both (abstraction and implementation).&lt;br /&gt;
&lt;br /&gt;
6) The Legacy Wrapper pattern is related to traditional Adapter pattern. The Legacy Wrapper pattern protects the legacy logic by providing a standard service that takes of protecting the legacy details by encapsulating, extraction or elimination. The encapsulation, extraction or elimination is done in order to change the service as the consumer requires it. This is related to adapter in a way that it converts the interface of one class to another as the client expects.&lt;br /&gt;
&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25038</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25038"/>
		<updated>2009-10-10T00:29:19Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Similarities */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This article focuses on the design patterns which are proposed and utilized in the Service Oriented Architecture. As the SOA provides its services through the protocols and API, this article throws light on the design patterns that specifically provide services through protocols like Canonical protocol, Dual protocol and Protocol Bridging. In a broader perspective, other design patterns have been explained tersely. In addition to explanation of the SOA design patterns, this compares the SOA design patterns with the traditional design patterns proposed by the ‘Gang of Four’ (Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides) and comes up with the differences and similarities between them.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA.The described patterns provide  the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
i) The composite pattern organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite.png]]&lt;br /&gt;
&lt;br /&gt;
ii)&lt;br /&gt;
The traditional bridge pattern separates the abstraction from its implementation in order to vary independently. Whereas the canonical protocol avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Traditional_bridge.png]]&lt;br /&gt;
&lt;br /&gt;
For canonical protocol refer to the explanation given in example design patterns&lt;br /&gt;
&lt;br /&gt;
iii) The traditional builder pattern decouples the construction of the object from its representation so that the same construction process can be used to develop different representations. The different representations (contracts) are addressed in SOA by the Concurrent Contracts with the application of Service-façade design pattern.  With service-façade design pattern, an abstraction is created to support the interaction between different contracts. As a result, different contracts can be created for a single service.&lt;br /&gt;
In the below figure, the conversion of the text document is separated from the reader of RTF document, so that the text document can be represented in different forms like ASCIIText, TeXText and TextWidget. The different representation is achieved by decoupling of construction and abstraction. In the case of concurrent contracts pattern, the different contracts or services (invoices) are created for different consumer through service-façade by creating a new abstraction.&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
1) The Service-façade design pattern is similar to the façade (traditional) pattern in the manner that it implements the façade logic which is creating an abstraction for intra-communication within objects to the service architecture. The advantage by adding the façade logic to the service architecture is that it preserves the underlying logic from run-time changes.&lt;br /&gt;
&lt;br /&gt;
2) The UI Mediator design pattern implements the mediator logic of traditional mediator pattern. The mediator logic aims to provide the user responses in a way that user understands, independently of what the underlying services perform.&lt;br /&gt;
&lt;br /&gt;
3) The Intermediate routing pattern in SOA is similar to Decorator pattern (traditional) in the functionality that it adds the required logic at run-time. The decorator adds the additional functionality to the object at run-time. The intermediate routing pattern is about placing the routing logic to address the run-time scenarios.&lt;br /&gt;
&lt;br /&gt;
4)The Capability Composition pattern in SOA implements the Composite pattern (traditional). The Capability Composition is about composing one or more capabilities outside the service’s context to address the large, complex problem. &lt;br /&gt;
&lt;br /&gt;
5) The Decoupled Contract pattern implements the traditional Bridge pattern in the manner that service contract is separated from the implementation. The Bridge pattern decouples the abstraction from implementation to facilitate the variation of both (abstraction and implementation).&lt;br /&gt;
&lt;br /&gt;
6) The Legacy Wrapper pattern is related to traditional Adapter pattern. The Legacy Wrapper pattern protects the legacy logic by providing a standard service that takes of protecting the legacy details by encapsulating, extraction or elimination. The encapsulation, extraction or elimination is done in order to change the service as the consumer requires it. This is related to adapter in a way that it converts the interface of one class to another as the client expects.&lt;br /&gt;
&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25033</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25033"/>
		<updated>2009-10-10T00:28:38Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Similarities */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This article focuses on the design patterns which are proposed and utilized in the Service Oriented Architecture. As the SOA provides its services through the protocols and API, this article throws light on the design patterns that specifically provide services through protocols like Canonical protocol, Dual protocol and Protocol Bridging. In a broader perspective, other design patterns have been explained tersely. In addition to explanation of the SOA design patterns, this compares the SOA design patterns with the traditional design patterns proposed by the ‘Gang of Four’ (Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides) and comes up with the differences and similarities between them.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA.The described patterns provide  the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
i) The composite pattern organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite.png]]&lt;br /&gt;
&lt;br /&gt;
ii)&lt;br /&gt;
The traditional bridge pattern separates the abstraction from its implementation in order to vary independently. Whereas the canonical protocol avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Traditional_bridge.png]]&lt;br /&gt;
&lt;br /&gt;
For canonical protocol refer to the explanation given in example design patterns&lt;br /&gt;
&lt;br /&gt;
iii) The traditional builder pattern decouples the construction of the object from its representation so that the same construction process can be used to develop different representations. The different representations (contracts) are addressed in SOA by the Concurrent Contracts with the application of Service-façade design pattern.  With service-façade design pattern, an abstraction is created to support the interaction between different contracts. As a result, different contracts can be created for a single service.&lt;br /&gt;
In the below figure, the conversion of the text document is separated from the reader of RTF document, so that the text document can be represented in different forms like ASCIIText, TeXText and TextWidget. The different representation is achieved by decoupling of construction and abstraction. In the case of concurrent contracts pattern, the different contracts or services (invoices) are created for different consumer through service-façade by creating a new abstraction.&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
i) The Service-façade design pattern is similar to the façade (traditional) pattern in the manner that it implements the façade logic which is creating an abstraction for intra-communication within objects to the service architecture. The advantage by adding the façade logic to the service architecture is that it preserves the underlying logic from run-time changes.&lt;br /&gt;
ii) The UI Mediator design pattern implements the mediator logic of traditional mediator pattern. The mediator logic aims to provide the user responses in a way that user understands, independently of what the underlying services perform.&lt;br /&gt;
iii) The Intermediate routing pattern in SOA is similar to Decorator pattern (traditional) in the functionality that it adds the required logic at run-time. The decorator adds the additional functionality to the object at run-time. The intermediate routing pattern is about placing the routing logic to address the run-time scenarios.&lt;br /&gt;
iv)The Capability Composition pattern in SOA implements the Composite pattern (traditional). The Capability Composition is about composing one or more capabilities outside the service’s context to address the large, complex problem. &lt;br /&gt;
v) The Decoupled Contract pattern implements the traditional Bridge pattern in the manner that service contract is separated from the implementation. The Bridge pattern decouples the abstraction from implementation to facilitate the variation of both (abstraction and implementation).&lt;br /&gt;
vi) The Legacy Wrapper pattern is related to traditional Adapter pattern. The Legacy Wrapper pattern protects the legacy logic by providing a standard service that takes of protecting the legacy details by encapsulating, extraction or elimination. The encapsulation, extraction or elimination is done in order to change the service as the consumer requires it. This is related to adapter in a way that it converts the interface of one class to another as the client expects.&lt;br /&gt;
&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25032</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=25032"/>
		<updated>2009-10-10T00:28:23Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Differences */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This article focuses on the design patterns which are proposed and utilized in the Service Oriented Architecture. As the SOA provides its services through the protocols and API, this article throws light on the design patterns that specifically provide services through protocols like Canonical protocol, Dual protocol and Protocol Bridging. In a broader perspective, other design patterns have been explained tersely. In addition to explanation of the SOA design patterns, this compares the SOA design patterns with the traditional design patterns proposed by the ‘Gang of Four’ (Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides) and comes up with the differences and similarities between them.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA.The described patterns provide  the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
i) The composite pattern organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite.png]]&lt;br /&gt;
&lt;br /&gt;
ii)&lt;br /&gt;
The traditional bridge pattern separates the abstraction from its implementation in order to vary independently. Whereas the canonical protocol avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Traditional_bridge.png]]&lt;br /&gt;
&lt;br /&gt;
For canonical protocol refer to the explanation given in example design patterns&lt;br /&gt;
&lt;br /&gt;
iii) The traditional builder pattern decouples the construction of the object from its representation so that the same construction process can be used to develop different representations. The different representations (contracts) are addressed in SOA by the Concurrent Contracts with the application of Service-façade design pattern.  With service-façade design pattern, an abstraction is created to support the interaction between different contracts. As a result, different contracts can be created for a single service.&lt;br /&gt;
In the below figure, the conversion of the text document is separated from the reader of RTF document, so that the text document can be represented in different forms like ASCIIText, TeXText and TextWidget. The different representation is achieved by decoupling of construction and abstraction. In the case of concurrent contracts pattern, the different contracts or services (invoices) are created for different consumer through service-façade by creating a new abstraction.&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24997</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24997"/>
		<updated>2009-10-10T00:20:52Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This article focuses on the design patterns which are proposed and utilized in the Service Oriented Architecture. As the SOA provides its services through the protocols and API, this article throws light on the design patterns that specifically provide services through protocols like Canonical protocol, Dual protocol and Protocol Bridging. In a broader perspective, other design patterns have been explained tersely. In addition to explanation of the SOA design patterns, this compares the SOA design patterns with the traditional design patterns proposed by the ‘Gang of Four’ (Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides) and comes up with the differences and similarities between them.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA.The described patterns provide  the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
i) The composite pattern organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite.png]]&lt;br /&gt;
&lt;br /&gt;
ii)&lt;br /&gt;
The traditional bridge pattern separates the abstraction from its implementation in order to vary independently. Whereas the canonical protocol avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Traditional_bridge.png]]&lt;br /&gt;
&lt;br /&gt;
For canonical protocol refer to the explanation given in example design patterns&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24666</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24666"/>
		<updated>2009-10-09T22:42:41Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Differences */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This page reviews the different service oriented architecture patterns proposed for protocols and compares them them with the corresponding patterns which were proposed for object oriented reuse.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA.The described patterns provide  the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
i) The composite pattern organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite.png]]&lt;br /&gt;
&lt;br /&gt;
ii)&lt;br /&gt;
The traditional bridge pattern separates the abstraction from its implementation in order to vary independently. Whereas the canonical protocol avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Traditional_bridge.png]]&lt;br /&gt;
&lt;br /&gt;
For canonical protocol refer to the explanation given in example design patterns&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24663</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24663"/>
		<updated>2009-10-09T22:41:55Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Differences */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This page reviews the different service oriented architecture patterns proposed for protocols and compares them them with the corresponding patterns which were proposed for object oriented reuse.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA.The described patterns provide  the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
i) The composite pattern organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite.png]]&lt;br /&gt;
&lt;br /&gt;
ii)&lt;br /&gt;
The traditional bridge pattern separates the abstraction from its implementation in order to vary independently. Whereas the canonical protocol avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Traditional_bridge.png]]&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24661</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24661"/>
		<updated>2009-10-09T22:41:09Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Differences */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This page reviews the different service oriented architecture patterns proposed for protocols and compares them them with the corresponding patterns which were proposed for object oriented reuse.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA.The described patterns provide  the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
i) The composite pattern organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
[[Image:Composite.png]]&lt;br /&gt;
&lt;br /&gt;
ii)&lt;br /&gt;
The traditional bridge pattern separates the abstraction from its implementation in order to vary independently. Whereas the canonical protocol avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Composite.png&amp;diff=24660</id>
		<title>File:Composite.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Composite.png&amp;diff=24660"/>
		<updated>2009-10-09T22:40:26Z</updated>

		<summary type="html">&lt;p&gt;Chargers: composite example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;composite example&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Traditional_bridge.png&amp;diff=24648</id>
		<title>File:Traditional bridge.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Traditional_bridge.png&amp;diff=24648"/>
		<updated>2009-10-09T22:36:33Z</updated>

		<summary type="html">&lt;p&gt;Chargers: traditional bridge pattern&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;traditional bridge pattern&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24536</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24536"/>
		<updated>2009-10-09T21:55:20Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Differences */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This page reviews the different service oriented architecture patterns proposed for protocols and compares them them with the corresponding patterns which were proposed for object oriented reuse.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA.The described patterns provide  the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
i) The composite pattern organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
ii)&lt;br /&gt;
The traditional bridge pattern separates the abstraction from its implementation in order to vary independently. Whereas the canonical protocol avoids the protocol bridging in such a way that there is a single communication technology through which the services can interact.&lt;br /&gt;
In the below figure of bridge pattern, the relationship between the abstraction and implementor is bridge and it results the implementor to vary independently from the abstraction by having different ConcreteImplementor. The canonical protocol avoids the variation by having a single communication technology between different objects.&lt;br /&gt;
&lt;br /&gt;
figure for above difference&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24515</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24515"/>
		<updated>2009-10-09T21:45:13Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This page reviews the different service oriented architecture patterns proposed for protocols and compares them them with the corresponding patterns which were proposed for object oriented reuse.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA.The described patterns provide  the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
==Differences==&lt;br /&gt;
&lt;br /&gt;
The differences between the SOA design patterns and traditional design patterns have been come up based on the individual functionality that each pattern provide. Following are the differences,&lt;br /&gt;
&lt;br /&gt;
i) The composite pattern organizes the objects in the manner to represent the part-whole hierarchies in a traditional two-tier hierarchy. &lt;br /&gt;
&lt;br /&gt;
The [http://www.soapatterns.org/agnostic_subcontroller.asp agnostic sub-controller] implements the service composability but it differs from the composite pattern in such a way that cross-entity functionality is abstracted and made accessible through the sub –controller capability. &lt;br /&gt;
&lt;br /&gt;
For instance, the traditional composite pattern has the object representing a part-whole hierarchy as in the below figure of graphic class which has draw().  If we require a cross-entity functionality as in the below figure, we require a colored rectangle, we require the functionality fill() of color class. Hence the sub-controller module is created which has the functionality of different parents, thus making it reusable.&lt;br /&gt;
&lt;br /&gt;
==Similarities==&lt;br /&gt;
&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24480</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24480"/>
		<updated>2009-10-09T21:27:08Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Glossary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This page reviews the different service oriented architecture patterns proposed for protocols and compares them them with the corresponding patterns which were proposed for object oriented reuse.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA.The described patterns provide  the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
1.Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
3.SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
4.API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
5.SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
6.HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
7.GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
8.[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24474</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24474"/>
		<updated>2009-10-09T21:24:57Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Example Design Patterns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This page reviews the different service oriented architecture patterns proposed for protocols and compares them them with the corresponding patterns which were proposed for object oriented reuse.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
The following section describes five design patterns which are utilized in SOA.The described patterns provide  the problem and corresponding solution&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24452</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24452"/>
		<updated>2009-10-09T21:11:01Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This page reviews the different service oriented architecture patterns proposed for protocols and compares them them with the corresponding patterns which were proposed for object oriented reuse.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
For example, a service can be built and implemented as a component, a SOAP-based Web service, or a REST service. Essentially, any implementation technology that can be used to create a distributed system may be suitable for service-orientation. Many of the design patterns in this catalog are not specific to any one of these three implementation mediums, but some are. Several examples are based on the use of SOAP-based Web services because this service implementation medium has been historically the most popular. This does not preclude you from applying the patterns with other suitable technologies. Some patterns in particular can be carried out with vendor-specific products and technologies that rely on alternative communication protocols and APIs that are not based on industry standards.&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
The design patterns in SOA are similiar in some aspects to the traditional patterns.They also differ from the traditional patterns. The similiarities and differences between them are provided in this section&lt;br /&gt;
&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24451</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24451"/>
		<updated>2009-10-09T21:08:32Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This page reviews the different service oriented architecture patterns proposed for protocols and compares them them with the corresponding patterns which were proposed for object oriented reuse.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
For example, a service can be built and implemented as a component, a SOAP-based Web service, or a REST service. Essentially, any implementation technology that can be used to create a distributed system may be suitable for service-orientation. Many of the design patterns in this catalog are not specific to any one of these three implementation mediums, but some are. Several examples are based on the use of SOAP-based Web services because this service implementation medium has been historically the most popular. This does not preclude you from applying the patterns with other suitable technologies. Some patterns in particular can be carried out with vendor-specific products and technologies that rely on alternative communication protocols and APIs that are not based on industry standards.&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
The Gang of Four(Gof) comprising of Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides have documented the design patterns that were followed by Software developers and architects in object oriented space. They have documented 23 design patterns which are collectively called as Traditional design patterns.&lt;br /&gt;
&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24436</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24436"/>
		<updated>2009-10-09T20:55:12Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GOF */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This page reviews the different service oriented architecture patterns proposed for protocols and compares them them with the corresponding patterns which were proposed for object oriented reuse.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
For example, a service can be built and implemented as a component, a SOAP-based Web service, or a REST service. Essentially, any implementation technology that can be used to create a distributed system may be suitable for service-orientation. Many of the design patterns in this catalog are not specific to any one of these three implementation mediums, but some are. Several examples are based on the use of SOAP-based Web services because this service implementation medium has been historically the most popular. This does not preclude you from applying the patterns with other suitable technologies. Some patterns in particular can be carried out with vendor-specific products and technologies that rely on alternative communication protocols and APIs that are not based on industry standards.&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GoF=&lt;br /&gt;
&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24431</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24431"/>
		<updated>2009-10-09T20:49:29Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Similarities and Differences */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This page reviews the different service oriented architecture patterns proposed for protocols and compares them them with the corresponding patterns which were proposed for object oriented reuse.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
For example, a service can be built and implemented as a component, a SOAP-based Web service, or a REST service. Essentially, any implementation technology that can be used to create a distributed system may be suitable for service-orientation. Many of the design patterns in this catalog are not specific to any one of these three implementation mediums, but some are. Several examples are based on the use of SOAP-based Web services because this service implementation medium has been historically the most popular. This does not preclude you from applying the patterns with other suitable technologies. Some patterns in particular can be carried out with vendor-specific products and technologies that rely on alternative communication protocols and APIs that are not based on industry standards.&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences Between Patterns for SOA and Traditional pattens proposed by GOF=&lt;br /&gt;
&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24430</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24430"/>
		<updated>2009-10-09T20:47:58Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Glossary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This page reviews the different service oriented architecture patterns proposed for protocols and compares them them with the corresponding patterns which were proposed for object oriented reuse.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
For example, a service can be built and implemented as a component, a SOAP-based Web service, or a REST service. Essentially, any implementation technology that can be used to create a distributed system may be suitable for service-orientation. Many of the design patterns in this catalog are not specific to any one of these three implementation mediums, but some are. Several examples are based on the use of SOAP-based Web services because this service implementation medium has been historically the most popular. This does not preclude you from applying the patterns with other suitable technologies. Some patterns in particular can be carried out with vendor-specific products and technologies that rely on alternative communication protocols and APIs that are not based on industry standards.&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences=&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24424</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24424"/>
		<updated>2009-10-09T20:43:17Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This page reviews the different service oriented architecture patterns proposed for protocols and compares them them with the corresponding patterns which were proposed for object oriented reuse.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
For example, a service can be built and implemented as a component, a SOAP-based Web service, or a REST service. Essentially, any implementation technology that can be used to create a distributed system may be suitable for service-orientation. Many of the design patterns in this catalog are not specific to any one of these three implementation mediums, but some are. Several examples are based on the use of SOAP-based Web services because this service implementation medium has been historically the most popular. This does not preclude you from applying the patterns with other suitable technologies. Some patterns in particular can be carried out with vendor-specific products and technologies that rely on alternative communication protocols and APIs that are not based on industry standards.&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences=&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[http://www.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
1.[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
2.[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
3.[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
4.[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
5.[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
6.[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
7.[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24421</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24421"/>
		<updated>2009-10-09T20:42:45Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This page reviews the different service oriented architecture patterns proposed for protocols and compares them them with the corresponding patterns which were proposed for object oriented reuse.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
For example, a service can be built and implemented as a component, a SOAP-based Web service, or a REST service. Essentially, any implementation technology that can be used to create a distributed system may be suitable for service-orientation. Many of the design patterns in this catalog are not specific to any one of these three implementation mediums, but some are. Several examples are based on the use of SOAP-based Web services because this service implementation medium has been historically the most popular. This does not preclude you from applying the patterns with other suitable technologies. Some patterns in particular can be carried out with vendor-specific products and technologies that rely on alternative communication protocols and APIs that are not based on industry standards.&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences=&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[http://www.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software]&lt;br /&gt;
 &lt;br /&gt;
[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
&lt;br /&gt;
[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
&lt;br /&gt;
[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
&lt;br /&gt;
[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
&lt;br /&gt;
[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24418</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24418"/>
		<updated>2009-10-09T20:42:26Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This page reviews the different service oriented architecture patterns proposed for protocols and compares them them with the corresponding patterns which were proposed for object oriented reuse.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
For example, a service can be built and implemented as a component, a SOAP-based Web service, or a REST service. Essentially, any implementation technology that can be used to create a distributed system may be suitable for service-orientation. Many of the design patterns in this catalog are not specific to any one of these three implementation mediums, but some are. Several examples are based on the use of SOAP-based Web services because this service implementation medium has been historically the most popular. This does not preclude you from applying the patterns with other suitable technologies. Some patterns in particular can be carried out with vendor-specific products and technologies that rely on alternative communication protocols and APIs that are not based on industry standards.&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences=&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[http://www.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
&lt;br /&gt;
[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Design patterns for object oriented software] &lt;br /&gt;
[http://en.wikipedia.org/wiki/Service-oriented_architecture#Introduction Service Oriented Architecture] &lt;br /&gt;
[http://www.exforsys.com/tutorials/soa/soa-definitions-and-certification.html  SOA Tutorial]&lt;br /&gt;
[http://www.soapatterns.org/ soa design patterns]&lt;br /&gt;
[http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29 design pattern]&lt;br /&gt;
[http://www.oracle.com/technologies/soa/center.html oracle SOA centre]&lt;br /&gt;
[http://www.ibm.com/developerworks/webservices/library/ws-soa-term1/ IBMs SOA Contributions]&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24408</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24408"/>
		<updated>2009-10-09T20:34:20Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Design Patterns proposed */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This page reviews the different service oriented architecture patterns proposed for protocols and compares them them with the corresponding patterns which were proposed for object oriented reuse.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns focus on providing solutions to the problems like maximizing re-composition and avoiding redundant logic .&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
These design patterns provide the solution to the problem of how can business logic be separated, reused, and governed independently?  &lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns focus on providing  solution for aspect of  governing  business logic etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns help to solve implementation problems like limitations introduced by communication technology. Example like a single protocol  may not accommodate all requirements etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns deal with the  governance  problems caused by service contract within the same service inventory&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on solving large business problems without having to build a stand alone solution.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns in this category focus on improving the realiability  and availability of the service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category deal with the problem of data encapsulation and  security aspects.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus  on providing solution for how to make the service contract suitable for all potential customers,make it aligned with other services etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract De normalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed deals with the problems in legacy systems like processing of data contained in flat files, redundancy resulting in delivery to multiple channels etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
These patterns provide solution for  problems like  updating  the customers with changed service so that they are not affected, modifications in service etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
The pattern proposed focuses  on the problem of How can a service capability solve a problem that requires logic outside of the service boundary and  How can the same capability be used to help solve multiple problems?&lt;br /&gt;
 &lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on setting  up of message framework for transfer of data.&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
The patterns proposed in this category focus on problems during runtime like  runtime activities  that  span multiple services fail, the parent business task is incomplete etc&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
The proposed patterns in this category are focused on security methods like encryption,decryption,authenticating the data,consumer and service&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
For example, a service can be built and implemented as a component, a SOAP-based Web service, or a REST service. Essentially, any implementation technology that can be used to create a distributed system may be suitable for service-orientation. Many of the design patterns in this catalog are not specific to any one of these three implementation mediums, but some are. Several examples are based on the use of SOAP-based Web services because this service implementation medium has been historically the most popular. This does not preclude you from applying the patterns with other suitable technologies. Some patterns in particular can be carried out with vendor-specific products and technologies that rely on alternative communication protocols and APIs that are not based on industry standards.&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences=&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[http://www.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24268</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24268"/>
		<updated>2009-10-09T19:29:07Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Design Patterns proposed */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This page reviews the different service oriented architecture patterns proposed for protocols and compares them them with the corresponding patterns which were proposed for object oriented reuse.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract Denormalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
The Patterns proposed in this category concrete on how data from  one data model can be dynamically converted to comply to a different data model.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
For example, a service can be built and implemented as a component, a SOAP-based Web service, or a REST service. Essentially, any implementation technology that can be used to create a distributed system may be suitable for service-orientation. Many of the design patterns in this catalog are not specific to any one of these three implementation mediums, but some are. Several examples are based on the use of SOAP-based Web services because this service implementation medium has been historically the most popular. This does not preclude you from applying the patterns with other suitable technologies. Some patterns in particular can be carried out with vendor-specific products and technologies that rely on alternative communication protocols and APIs that are not based on industry standards.&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences=&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[http://www.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24263</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24263"/>
		<updated>2009-10-09T19:24:55Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Design Patterns proposed */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This page reviews the different service oriented architecture patterns proposed for protocols and compares them them with the corresponding patterns which were proposed for object oriented reuse.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract Denormalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
A compound pattern is a coarse-grained pattern comprised of a set of finer-grained patterns.&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
For example, a service can be built and implemented as a component, a SOAP-based Web service, or a REST service. Essentially, any implementation technology that can be used to create a distributed system may be suitable for service-orientation. Many of the design patterns in this catalog are not specific to any one of these three implementation mediums, but some are. Several examples are based on the use of SOAP-based Web services because this service implementation medium has been historically the most popular. This does not preclude you from applying the patterns with other suitable technologies. Some patterns in particular can be carried out with vendor-specific products and technologies that rely on alternative communication protocols and APIs that are not based on industry standards.&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences=&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[http://www.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24254</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24254"/>
		<updated>2009-10-09T19:19:50Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Glossary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This page reviews the different service oriented architecture patterns proposed for protocols and compares them them with the corresponding patterns which were proposed for object oriented reuse.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract Denormalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
For example, a service can be built and implemented as a component, a SOAP-based Web service, or a REST service. Essentially, any implementation technology that can be used to create a distributed system may be suitable for service-orientation. Many of the design patterns in this catalog are not specific to any one of these three implementation mediums, but some are. Several examples are based on the use of SOAP-based Web services because this service implementation medium has been historically the most popular. This does not preclude you from applying the patterns with other suitable technologies. Some patterns in particular can be carried out with vendor-specific products and technologies that rely on alternative communication protocols and APIs that are not based on industry standards.&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences=&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[http://www.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
[http://soaglossary.com/  SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24253</id>
		<title>CSC/ECE 517 Fall 2009/wiki2 16 rs</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2009/wiki2_16_rs&amp;diff=24253"/>
		<updated>2009-10-09T19:19:24Z</updated>

		<summary type="html">&lt;p&gt;Chargers: /* Glossary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CSC/ECE 517 Fall 2009/wiki2 16 rs&lt;br /&gt;
&lt;br /&gt;
SOA provides another view of providing functionality based upon services offered in terms of protocols and a specific API. Research and report on what patterns have been proposed and are utilized within this domain. How do they differ from traditional design patterns proposed by Eric Gamma, Richard Helm, Ralph Johnson, and John Vlissides? How are they similar? &lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
This page reviews the different service oriented architecture patterns proposed for protocols and compares them them with the corresponding patterns which were proposed for object oriented reuse.&lt;br /&gt;
&lt;br /&gt;
=Service Oriented Architecture-An Overview=&lt;br /&gt;
&lt;br /&gt;
==SOA-Definition==&lt;br /&gt;
&lt;br /&gt;
A service-oriented architecture is essentially a collection of services. These services communicate with each other.The communication can involve either simple data passing or it could involve two or more services coordinating some activity. Some means of connecting services to each other is needed.Rather than defining an API, SOA defines the interface in terms of protocols and functionality. An endpoint is the entry point to such an SOA implementation.Service-orientation requires loose coupling of services with operating systems, and other technologies that underlie applications. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services communicate with each other by passing data from one service to another, or by coordinating an activity between two or more services.&lt;br /&gt;
&lt;br /&gt;
==Why SOA?==&lt;br /&gt;
&lt;br /&gt;
Vast majority of Businesses working in the field of Information Technology have to justify their projects with a return on their investments. This puts Information Technology, as a field under enormous pressure. Information Technology must boast requirements that are increasingly responsive and flexible to the shifting needs of different Businesses.&lt;br /&gt;
&lt;br /&gt;
Firms dealing with Information Technology must also be able to face the challenge of taking on an array of software systems that may or may not be compatible with one another. Moreover, Information Technology has to face demands to bring new commercial services to a much wider array of customers. Customers may access services through web interfaces, or may be part of a supply chain that needs to decrease the time and cost of manufacturing.&lt;br /&gt;
&lt;br /&gt;
Thus, Information Technology companies are always on the look out for solutions that will help them meet the above demands – without having to spend a lot of money.SOA offers a solution to satisfy the above needs of the industry   &lt;br /&gt;
&lt;br /&gt;
==SOA-Benifits==&lt;br /&gt;
In architectural terms, a modern architectural design should be Service Oriented, loosely coupled, driven by events, able to support both integration and assembly, aligned with valuable life cycle support processes, and able to leverage existing infrastructure and applications.&lt;br /&gt;
&lt;br /&gt;
When it comes to Service Oriented Architecture, it tends to offer a variety of different advantages over more traditional methods of distributing computing. These include offering business services across several platforms; providing location independence; providing authentication as well as authorization support on ever tier; a loosely coupled approach; and dynamic search and connectivity to other services. At the same time, it allows that services do not have to be located on a particular system or network.&lt;br /&gt;
&lt;br /&gt;
=Design Patterns in SOA=&lt;br /&gt;
A design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.Design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.&lt;br /&gt;
&lt;br /&gt;
Design patterns play a major role in SOA. The implementation and deployment of SOA designs provide different challenges during product development life cycle.Such challenges made may SOA projects to be discontinued. Design patterns help in overcoming these problems by providing a solution to the problems posed.Each SOA design pattern provides a design solution in support of&lt;br /&gt;
successfully applying service orientation and establishing a quality&lt;br /&gt;
service-oriented architecture&lt;br /&gt;
&lt;br /&gt;
=Design Patterns proposed =&lt;br /&gt;
&lt;br /&gt;
The proposed Design Patterns for SOA fall in to following categories.They are listed below and corresponding patterns in &lt;br /&gt;
each category are given.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch6 Foundational Inventory Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Enterprise Inventory,Domain Inventory,Service Normalization,Logic Centralization, Service Layers Canonical Protocol,Canonical Schema &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch7 Logical Inventory Layer Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Utility Abstraction,Entity Abstraction,Process Abstraction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch8 Inventory Centralization Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Process Centralization,Schema Centralization,Policy Centralization,Rules Centralization.&lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch9 Inventory Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Dual Protocols,Canonical Resources,State Repository,Stateful Services,Service Grid,Inventory Endpoint,Cross-Domain Utility Layer&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch10 Inventory Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Canonical Expression,Metadata Centralization,Canonical Versioning&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch11 Foundational Service Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Functional Decomposition,Service Encapsulation,Agnostic Context,Non-Agnostic Context,Agnostic Capability &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch12 Service Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Service Facade,Redundant Implementation,Service Data Replication,Partial State Deferral,Partial Validation,UI Mediator&lt;br /&gt;
  &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch13 Service Security Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Exception Shielding,Message Screening,Trusted Subsystem ,Service Perimeter Guard&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch14 Service Contract Design Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Decoupled Contract,Contract Centralization,Contract Denormalization,Concurrent Contracts,Validation Abstraction &lt;br /&gt;
 &lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch15 Legacy Encapsulation Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Legacy Wrapper, Multi-Channel Endpoint,File Gateway&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch16 Service Governance Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Compatible Change,Version Identification,Termination Notification,Service Refactoring,Service Decomposition,Proxy Capability,Decomposed Capability,Distributed Capability&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch17 Capability Composition Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Capability Composition,Capability Recomposition&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch18 Service Messaging Patterns]&lt;br /&gt;
&lt;br /&gt;
examples in this category are Service Messaging,Messaging Metadata,Service Agent,Intermediate Routing,State Messaging,Service Callback,Service Instance Routing,Asynchronous Queuing,Reliable Messaging,Event-Driven Messaging.&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch19 Composition Implementation Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Agnostic SubController,Composition Autonomy,Atomic Service Transaction,Compensating ServiceTransaction&lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch20 Service Interaction Security Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Confidentiality, Data Origin Authentication, Direct Authentication, Brokered Authentication &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch21 Transformation Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Data Model Transformation,Data Format Transformation, Protocol Bridging &lt;br /&gt;
&lt;br /&gt;
[http://www.soapatterns.org/masterlist_c.asp#ch22 Common Compound Design Patterns]&lt;br /&gt;
&lt;br /&gt;
examples for this category are Orchestration,Enterprise Service Bus,Service Broker,Canonical Schema Bus,Official Endpoint,Federated Endpoint Layer,Three-Layer Inventory&lt;br /&gt;
&lt;br /&gt;
=Example Design Patterns =&lt;br /&gt;
&lt;br /&gt;
For example, a service can be built and implemented as a component, a SOAP-based Web service, or a REST service. Essentially, any implementation technology that can be used to create a distributed system may be suitable for service-orientation. Many of the design patterns in this catalog are not specific to any one of these three implementation mediums, but some are. Several examples are based on the use of SOAP-based Web services because this service implementation medium has been historically the most popular. This does not preclude you from applying the patterns with other suitable technologies. Some patterns in particular can be carried out with vendor-specific products and technologies that rely on alternative communication protocols and APIs that are not based on industry standards.&lt;br /&gt;
&lt;br /&gt;
==Canonical protocol==&lt;br /&gt;
&lt;br /&gt;
[[Image:Canonicalpattern.jpg.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Services that support different communication technologies compromise interoperability, limit the quantity of potential consumers, and introduce the need for undesirable protocol bridging measures.&lt;br /&gt;
&lt;br /&gt;
Solution: The architecture establishes a single communications technology as the sole or primary medium by which services can interact.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the above figure it is observed that though still delivered by different projects via different vendor platforms A,B,C etc  these services conform to one centralized communications technology, making them technologically compatible.&lt;br /&gt;
&lt;br /&gt;
==Dual protocol==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:dualprotocol.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Canonical Protocol requires that all services conform to the use of the same communications technology; however, a single protocol may not be able to accommodate all service requirements, thereby introducing limitations. &lt;br /&gt;
&lt;br /&gt;
Solution: The service inventory architecture is designed to support services based on primary and secondary protocols. &lt;br /&gt;
&lt;br /&gt;
Regardless of protocol, all services must invoke each other via their official service contracts (A, B). Bypassing the contract may seem convenient when the underlying service logic of the primary service supports the same protocol as the secondary service (C), but it is an anti-pattern that will eventually inhibit the application of this pattern and further weaken the overall service inventory foundation.&lt;br /&gt;
&lt;br /&gt;
==Protocol Bridging==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:protocolbridging.png]] &lt;br /&gt;
&lt;br /&gt;
Problem: Services using different communication protocols or different versions of the same protocol cannot exchange data. &lt;br /&gt;
&lt;br /&gt;
Solution: Bridging logic is introduced to enable communication between different communication protocols by dynamically converting one protocol to another at runtime.&lt;br /&gt;
&lt;br /&gt;
From the above figure it can be noticed that the consumer programs interact with a middle-tier broker that provides protocol bridging features. Separate protocol adapters are used to translate the two incompatible protocols to the required SOAP version 1.2 over HTTP. The broker then transmits the messages to the service on behalf of the consumers.&lt;br /&gt;
&lt;br /&gt;
==UI Mediator==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:uimediator.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: Because the behavior of individual services can vary depending on their design,runtime usage, and the workload required to carry out a given capability, the consistency with which a service-oriented solution can respond to requests originating from a user-interface can fluctuate, leading to a poor user experience. &lt;br /&gt;
&lt;br /&gt;
Solution: Establish mediator logic solely responsible for ensuring timely interaction and feedback with user-interfaces and presentation logic. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The mediator service (D) regularly updates the user interface while services A, B, and C work behind-the-scenes to complete the task&lt;br /&gt;
&lt;br /&gt;
==Service Facade==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:service_facade.png]]&lt;br /&gt;
&lt;br /&gt;
Problem: The coupling of the core service logic to contracts and implementation resources can inhibit its evolution and negatively impact service consumers. &lt;br /&gt;
&lt;br /&gt;
Solution: A service facade component is used to abstract a part of the service architecture with negative coupling potential.&lt;br /&gt;
&lt;br /&gt;
Facade logic is placed in between the contract and the core service logic. This allows the core service logic to remain decoupled from the contract.&lt;br /&gt;
&lt;br /&gt;
=Similarities and Differences=&lt;br /&gt;
=Conclusion=&lt;br /&gt;
=Glossary=&lt;br /&gt;
&lt;br /&gt;
Serive : &amp;quot;A service is a discoverable resource that executes a repeatable task, and is described by an externalized service           specification.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[http://www.com/developerworks/webservices/library/ws-soa-term1/ SOA Terminology]&lt;br /&gt;
&lt;br /&gt;
SOA  :[http://en.wikipedia.org/wiki/Service-oriented_architecture  Service oriented Architecture]&lt;br /&gt;
&lt;br /&gt;
API  :[http://en.wikipedia.org/wiki/Application_programming_interface  Application programming interface]&lt;br /&gt;
&lt;br /&gt;
SOAP :[http://en.wikipedia.org/wiki/SOAP  Simple Object Access Protocol]&lt;br /&gt;
&lt;br /&gt;
HTTP :[http://en.wikipedia.org/wiki/HyperText_Transfer_Protocol  Hypertext Transfer Protocol]&lt;br /&gt;
&lt;br /&gt;
GoF  :[http://en.wikipedia.org/wiki/Design_Patterns:_Elements_of_Reusable_Object-Oriented_Software Gang of Four]&lt;br /&gt;
&lt;br /&gt;
[ http://soaglossary.com/ SOA Glossory]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;/div&gt;</summary>
		<author><name>Chargers</name></author>
	</entry>
</feed>