Tuesday, June 25, 2013

ON SERVICES AND THEIR PROXIES

Hi there! Yes it's been a while since I posted....reason? Same old-work! Well I found out I could eek out some minutes from my Tuesday morning and put something together on this blog. By the way thanks for always stopping by to read or just check if Charles has anything up his sleeves this time :)

Today I'll like to draw an analogy between what obtains in the world of software services and what Christians call the Trinity.

For those who may not be in the know, the Trinity is made up of the Godhead-God the Father, God the Son-Jesus, and God the Holy Spirit. As it currently stands, the Holy Spirit is on the earth, resident in believers, while God the Father and God the Son are in Heaven.

Now though this cannot be explained it is TRUE that the 3 persons are really 1 GOD and whatever God the Father is thinking or saying is also relayed to the Holy Spirit representing the Godhead here on earth.

When believers who are the containers as it were of the Holy Spirit, pray, the Spirit helps their prayers get to God and meet their need.

So what's the analogy when it comes to XML web services? Simple. The Service Class resides on a server somewhere and contains all the functionality. This maps 1 to 1 with God the Father and God the Son. Then the proxy that is created in the client that consumes the service, represents the service on the client side.

When any method is invoked on the proxy, it simply relays the request to the actual service over wire and the service executes the method. The result is returned wrapped in XML. Now if any of you don't agree with this analogy let me know. After all we disagree to agree.

See yah later!