Posts

Showing posts with the label webservice

Topics

Image
 Web Service  REST  SOAP

01.Web Service - Introduction

Image
  WEB SERVICE ඔබගේ  wedding   එකකට උටරට නිලමේ ඇදුම් ගන්න ඕනේ කියලා හිතන්න.එකට අපි මොකද කරන්නේ එහෙම ඇදුම් දෙන කෙනෙක් ලගට ගහින් ඒ අදුම රෙන්ට් එකට ගන්නවා නැත්තන් මසාගන්නවා.එහිදී අපිට ඇදුමක් ඕනේ එනම් සේවාවක් ඕනේ( service ).එහිදී හිතමු අපි ඒ අදුම ගන්න යන්නේ ABC  shop  න්.අපට අවසානයේදී ඉල්ලන ඇදුම දෙද්දී එයාල කඩේ ඇතුලෙදි ලොකු process එකක් කරලා තම අඩුම  rent  එකට හෝ මහල ඕනෙනම් එහෙම හරි දෙන්නේ.අපිටම ඒ කඩේඇතුලේ වෙන process එක කරගන්න පුළුවන්.නමත් එකට අපිට එකටකාලයක් යනවා,ඇදුම් මැසීම සහ ඇදුම් සහ සම්බන්ද දේවල් ඉගෙන ගන්න වෙනවා.එහෙම ගොඩක් මහන්සි වෙලා තමා ඒ සේවාව පිටින් ගන්නේ නැතිව අපිම කරගන්නවනම් කරගන්න වෙන්නේ.එත් සමහර විට එක අපිට හොදට කරගන්න බැරි වෙන්නට් පුළුවන් අර කඩෙන් කර ගන්නවා වගේ.සරලව ක්වොත්  යම් යම් දේවල් වලට සම්බන්ද expert  අය ඉන්නවා.අපිට එයාල සම්බන්දවන field  එක සමබන්ද දෙයක් කරගනන්වන්ම් එහෙම කරලා දෙන ඒ පළපුරුද්ද තියන කෙනෙක් ලව කරගන්නවා සල්ලි දීලා හෝ නොදී.අපිට අන්තිමට කරගන්න ඕනේ එකට  row material   දීලා හරි නැතිව හරි.එ...

02.Web Service - REST

Image
  REST This is the GitHub URL of developed  project for rest API. https://github.com/LahiruPriyankara/restOne-Jersey.git   Jersey Rest කියන්නේ concept එකක් විතරයි.එක implement කරන්න spring හෝ jersey වගේ එකක් බාවිතා කරන්න ඔනී.ඒ දෙකේදීම ඒවාට අදාළ libraries සහ project structures, dependencies පාවිච්චි කරන්න ඕනේ.ඒවා අපිම හදන්නේ නෑ.මොකද එක ටිකක් tough වැඩක්.ඒ නිසා maven හෝ gradle වැනි technology එකක් බවිතා කරලා තමා Spring හෝ jersey projects හදන්නේ. Maven වලින් ඕනේ කරන මුලික libraries (libraries ලේසියෙන් add කරගන්න ද පුළුවන්) සහ project structure හදල දෙනවා (request එකක් යැවුවම response එවන්න ඕනේ.එක servlet හරහා තමා normal වෙන්නේ. එහිදී normal java class එකකට http java class implements  වෙලා තමා servlet හැදෙන්නේ.එත් මෙහිදී ඒවා පිටට පෙන්නේ නෑ.) Project creation Steps,   (GO TO window – prferences – maven – check as bellows-ok) Maven jersy   project in eclipe to implement REST Right click – Other – search maven project and select it – next – in the filte...

03.Web Service - SOAP

Image
  SOAP - Simple Object Access Protocol This is the GitHub URL of developed    project for soap API. https://github.com/LahiruPriyankara/soapOne 01.Introduction SOAP Soap is a xml format that is used to encored and decoded different massages. When we think about a soap web service it is transfer as soap massage over the network. WSDL - Web service Description Language Web service descripting language. It describe about web service in a XML format which every language can understand. Web service එක කොහෙද තියෙන්නේ , end point එකේ method මොනාද , arguments මොනාද , return type මොනාදවගේ විස්තර . UDDI webservice එක පිළිබද detail ගන්න පුළුවන් directory   තමා UDDI – universal description discovery interface කියන්නේ. (JNDI   ? ).It is a directory where any publisher can publish their web services and customer can query this directory and get access all services. 02. SEI – Service Endpoint Interface SEI SEI is an interface to service end point interface. Th...