1 / 14

SOA korišćenjem REST-a

Nikola Bogavac 12851. SOA korišćenjem REST-a. REST ( RE presentational S tate T ransfer ) - Prenos reprezentacija stanja - 2000, Architectural Styles and the Design of Network –based Software Architectures, R.T.Fielding. Šta je REST ?.

sezja
Télécharger la présentation

SOA korišćenjem REST-a

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Nikola Bogavac 12851 SOA korišćenjem REST-a

  2. REST ( REpresentational State Transfer ) - Prenos reprezentacija stanja - • 2000, Architectural Styles and the Design of Network –based Software Architectures, R.T.Fielding

  3. Šta je REST ?

  4. Ograničenja i arhitekturni principi • REST servisi nemaju stanja • REST servisi imaju jednobrazan interfejs • Arhitekture bazirane na REST-u su sačinjene od resursa • REST komponente upravljaju resursima menjajući reprezentacije resursa

  5. REST vs SOAP

  6. Primer • XYZ Korporacija • EIS( Enterprise Informations System ) – Informacioni sistem preduzeća • OMS( Order Menagement System ) – Sistem za upravljanje narudžbinama • CSS ( Customer Service System ) - Sistem usluživanja kupaca

  7. Zahtev • SOA aplikacija koja bi povezala OMS i CSS • Svaki put kada se nova narudžbina unese u OMS, SOA aplikacija bi trebalo da prenese tu informaciju do CSS i doda je u odgovarajuću istoriju kupovina klijenta

  8. XML dokumenti i XML schema • Oblikovanje EIS evidencije kao XML dokumenta • Proces je formalizovan kreiranjem XML Scheme koja definiše ograničenja i format XML dokumenta • XML dokumenti se koriste pri razmenjivanju poruka između aplikacija • XML šema dokumenata definiše interfejs aplikacije.

  9. Narudžbina u OMS-u

  10. Evidencija kupovina klijenta

  11. Povezivanje OMS-a i CSS-a

  12. REST klijenti • Osnovna funkionalnost koja je potrebna u radu sa SOA Web Servisima, jeste lako preuzimanje i postavljanje XML fajlova sa i na HTTP server. • Preuzimanje XML dokumenata sa REST Web servisa bez korićenja JWS • Postavljanje XML dokumenatana REST Web servisa bez korićenja JWS

  13. Preuzimanje XML dokumenata sa REST servisa bez korišćenja JWS Receiver Sender XML Message GetNewOrders URL openConn() HttpURLConnection InputStream Http response containing XML document read() HTTP GET request to download XML document connect() Client Web Service

  14. Slanje XML dokumenata REST servisu bez korišćenja JWS Sender Receiver XML Message PostCustomerHistory URL openConn() HttpURLConnection establish Http POST connection connect() OutputStream appending XML dokument to the POST record write() GetResponse() Client receiving the HTTP response Web Service

More Related