Friday, October 01, 2004

Web-Services and document model

Web-Services are all about achieving loose coupling, Its obvious that web-services will be used across organizations and you cannot assume that the service definition wont change

Today in most implementations, classes (stubs) are generated based on the WSDL which delegate the call from the client to the service. The problem is that the WSDL sort of acts like a interface and if this interface changes your generated classes have to change, which in turn means you can no longer use the service!

The fundamental problem is with the way web-services are being used. Right now they are following a pure RPC model. (ok internally they might use SOAP/XML over http, but it does not matter).

girl-cooking

When we say 'SOA' the model should be closer to a document exchange model instead of RPC model. What i mean by this is that service should define a simple interface probably with one method like:
string processDocument(string xmlDocument);

There is not much in the interface itself, so it won’t change :)
The intention is that the client should pass all the information that is required as a XML document. XML has the flexibility that it is easily extensible. So if your service adds some more functionality and requires more parameters it can be easily included in the xml document.
Your old clients will still work it wont break them. Your new clients can still happily send the xml doc that includes the new parameters and still work.

This is fundamental to how we should define and use web-services. There are more intelligent guys there who have thought of this and explained this in much more easier and clearer way than i have explained :)
Adam Bosworth explains this concept beautifully.

12 Comments:

At 10:19 AM, Anonymous Sai said...

Hi Narasimha,
You said:
::What i mean by this is that
::service should define a simple
::interface probably with one
::method like:

string processDocument(string xmlDocument);

We are following this approach.
We have 1 Generic service which has a method:
string processRequestMsg(string xmlRequest){}

It kind of acts as a gateway to all the request messages which are in the form of xmlString. Then foreach request we create class where we process the request and return the response as an xmlstring.

In such scenarios it appears like we need only 1 web service which will process all the requests and returns the responses. I am wondering you also agree or if you have a difference in opinion, please enlighten me. In other words 1 Webservice for 1 application is all is needed is what i am wondering.

Thanks,
Sai.

 
At 1:59 AM, Anonymous Anonymous said...

酒店兼職 酒店打工 打工兼差 台北酒店 酒店兼差 酒店經紀 禮服酒店 酒店工作 酒店上班 兼差 酒店應徵 酒店 打工兼職 打工

 
At 5:35 PM, Blogger ninest123 said...

oakley sunglasses, louis vuitton, oakley sunglasses, air max, longchamp outlet, ugg boots, nike outlet, burberry, gucci outlet, louis vuitton outlet, ray ban sunglasses, oakley sunglasses, polo ralph lauren outlet, louboutin outlet, louboutin, polo ralph lauren outlet, longchamp, ralph lauren pas cher, tiffany jewelry, ugg boots, chanel handbags, replica watches, kate spade outlet, prada handbags, louboutin pas cher, nike free, replica watches, longchamp outlet, louboutin shoes, christian louboutin outlet, air jordan pas cher, ray ban sunglasses, louis vuitton, jordan shoes, nike free, louis vuitton outlet, tiffany and co, nike air max, longchamp pas cher, nike roshe run, uggs on sale, cheap oakley sunglasses, tory burch outlet, sac longchamp, prada outlet, ray ban sunglasses, oakley sunglasses, nike air max, michael kors, louis vuitton

 
At 5:49 PM, Blogger ninest123 said...

kate spade handbags, new balance pas cher, hollister, michael kors outlet, north face, true religion jeans, nike roshe, north face, michael kors, nike air max, true religion jeans, vanessa bruno, replica handbags, michael kors, converse pas cher, hermes, sac guess, nike air max, abercrombie and fitch, nike air max, ralph lauren uk, lululemon, ray ban pas cher, coach purses, hogan, air force, hollister pas cher, vans pas cher, oakley pas cher, michael kors, michael kors outlet, nike free run uk, mulberry, michael kors outlet, tn pas cher, nike blazer, coach outlet, ugg boots, lacoste pas cher, michael kors outlet, ray ban uk, michael kors, true religion jeans, michael kors outlet, true religion outlet, burberry, burberry outlet online, coach outlet, timberland, ugg boots

 
At 5:56 PM, Blogger ninest123 said...

mont blanc, hollister, north face outlet, lululemon, north face outlet, louboutin, ralph lauren, mcm handbags, reebok shoes, hollister, iphone cases, nike roshe, herve leger, converse, nike huarache, instyler, bottega veneta, longchamp, mac cosmetics, asics running shoes, soccer jerseys, converse outlet, nfl jerseys, ray ban, ghd, ferragamo shoes, beats by dre, valentino shoes, wedding dresses, gucci, oakley, giuseppe zanotti, abercrombie and fitch, insanity workout, nike air max, babyliss, baseball bats, new balance, birkin bag, p90x workout, nike trainers, soccer shoes, vans, chi flat iron, hollister, celine handbags, jimmy choo shoes, vans shoes, nike air max, timberland boots

 
At 5:56 PM, Blogger ninest123 said...

canada goose, louis vuitton, moncler, ugg pas cher, moncler, bottes ugg, montre pas cher, louis vuitton, barbour jackets, moncler, doudoune canada goose, sac louis vuitton pas cher, pandora jewelry, moncler, hollister, links of london, canada goose, moncler, juicy couture outlet, pandora charms, replica watches, coach outlet, moncler, lancel, barbour, canada goose uk, swarovski crystal, karen millen, wedding dresses, canada goose outlet, moncler, juicy couture outlet, moncler outlet, ugg,ugg australia,ugg italia, pandora jewelry, pandora charms, marc jacobs, canada goose, louis vuitton, supra shoes, ugg boots uk, canada goose, canada goose outlet, louis vuitton, swarovski, ugg,uggs,uggs canada, thomas sabo, toms shoes

 
At 1:24 AM, Blogger Lo Lo said...

http://www.ju.edu.jo/home.aspx
Jordan University
[url]http://www.ju.edu.jo[/url]

 
At 7:20 AM, Blogger soma taha said...


I like it when people come together and share ideas.
http://www.prokr.net/2016/09/company-spraying-pesticides-anti-insects-in-al-madina.html
http://www.prokr.net/2016/09/spraying-pesticides-anti-insects-company-in-yanbu.html

 
At 12:30 PM, Blogger داليا said...

http://www.prokr.net/2016/09/spraying-companies-10.html
http://www.prokr.net/2016/09/spraying-companies-9.html
http://www.prokr.net/2016/09/spraying-companies-6.html
http://www.prokr.net/2016/09/spraying-companies-5.html
http://www.prokr.net/2016/09/spraying-companies-3_14.html
http://www.prokr.net/2016/09/spraying-companies-3.html
http://www.prokr.net/2016/09/spraying-companies-2.html

 
At 12:31 PM, Blogger داليا said...


http://www.prokr.net/2016/09/spraying-companies-16.html
http://www.prokr.net/2016/09/spraying-companies-15.html
http://www.prokr.net/2016/09/spraying-companies-14.html
http://www.prokr.net/2016/09/spraying-companies-13.html
http://www.prokr.net/2016/09/spraying-companies-12.html
http://www.prokr.net/2016/09/spraying-companies-11.html

 
At 5:30 AM, Blogger RAGAB KAMAL said...





شركة الكمال أفضل شركة تنظيف بحائل للتنظيف أهمية كبيرة جدا لانها تجل المكان دائما نظيف

وجيد كيى تتواصل مع اقاربك وجيرانك فنحن نقدم


شركة تنظيف بحائل
ولانها الشركة الرائدة والمشهود لها بالكفائه العاليه بما فعلته من انجازات فى اعمال التنظيفالجاد

بافضل وسائل التنظيف الحديثه والمعدات المتطوره فى تنظيف الفلل ومقدم ايضا


شركة تنظيف فلل بحائل
ويقوم طاقم العمل الكبير المدرب على اعله مستوى بتنظيف الشقه بدون التسبب بأى إزعاج للعميل فلا تتباطؤ فى إختيار شركة الكمال لتنظيف منزلكم لأنها أفضل


شركة تنظيف شقق بحائل
لأن تنظيف المجالس يحتاج إلى وقت طويل وجهد كبير فشركة

الكمال أفضل شركة تنظيف مجالس وكنب بحائل كفيلة بتنظيف مجلسك سواء كان عربى او

مجلط او كنب فى أسرع وقت وبدون جهد وبالتالى شركة الكمال هى الحل الأمثل فى فى مجال

تنظيف المجال بحائل ونحن بانتظاركم فى اى وقت واى مكان


شركة تنظيف مجالس بحائل
وأفضل مايميز شركة الكمال أفضل شركة تنظيف عام

بحائل وضعها للخطط قبل البدء فى
شركة تنظيف مجالس وكنب بحائل
شركة تنظيف سجاد

وموكيت بحائل
كما نقدم ايضا بقيت خدمات التنظيف ومنها تنظيف الواجهات التى تكون

هى وجهت البيت ودليل نظافة البيت


شركة تنظيف واجهات بحائل
شركة الكمال أفضل شركة كشف تسربات المياه التى من

خلالها نقدر ان نحافظ على البيت من الانهيار والهدم ةالحفلظ ايضا على فتورة المياه


شركة كشف تسربات المياه بحائل
كما نقدم ايضا خدمه من اهم الخدمات التى تهم كل

العملاء وهى


شركة نقل اثاث بحائل
وذلك تحت اشراف فريق عمل كبير مدرب على اعله مستوى من

الكفائه العاليه والخبرة الكبيرة فى نقل العفش والاثاث والمشهود له بالخبرة والكفائه من جميع

عملائنا الكرام

 
At 4:25 PM, Blogger roba gad said...


Very nice post. I definitely appreciate this site. Stick with it!
http://www.kuwait.prokr.net/
http://www.emirates.prokr.net/

 

Post a Comment

<< Home