SlideShare a Scribd company logo
1 of 13
Java Web Service
İrkan Əhmədov
Proqramçı
http://www.linkedin.com/pub/irkan-ahmadov
Başlıqlar
 Web Servis Nədir?
 Web Servislərin Strukturu
 Web Servis Növləri
 SOAP – based Web Servislər
 REST - based Web Servislər
 SOAP vs. REST
Web Servis Nədir ?
 Bəsit bir cümlə ilə, iki proqram arasındakı əlaqə,və ya
elektron cihazların world wide web üzərindən əlaqəsi.
 Client və Serverlərin world wide HTTP üzərindən əlaqəsi.
 Şəbəkə üzərində baş verən əməliyyatların standard XML
mesaj formatı strukturunu təmin edən interfeysdir.
 Proqramların xarici əlaqələrini quran komponentdir.
 Dil və Platforma asılılığı yoxdur.
 XML mesajlaşması ( Sadə və ya SOAP )
 Metro (java.net proyekti )
WSIT (Web Services Interoperability Technologies )
dəstəkləyir.
Web Servilərin Strukturu
Web Servislərin Növləri
1. REST-base Web Services (RESTful)
2. SOAP-based Web Services
1 - REST-based
• RESTfull servislər olaraq bilinir.
• HTTP tək protokoldur.
o GET, PUT, POST, and DELETE
• Web Qaynaqlar URI olaraq ifadə edilir.
• Hər bir əməliyyat və ya sənəd üçün bir URI yaradır.
• Məlumatın konvertasiya tipləri;
o XML ( basit ) NOT SOAP XML!
o JSON
o HTML
• Bir cox hallarda browser Client olaraq hərəkət edirlər.
• Təhlükəsizlik tələb olunmayan həllərdə istifadə edilir.
• Project Jersey ( Netbeans, İntellij, MyEclipse support )
2 - SOAP-based
• Böyük həllərdə və ya qarışıq əməliyyatlar üçün istifadə edilir.
• Eğer uygulamalarınız ;
o Yüksək təhlükəsizlik
o Etibarlılıq
o WS-* standards-supported
o HTTP dən daha çox imkan, JMS və SMTP.
• WSDL əsaslı
• XML format (SOAP)
• JAX-WS istifadə edilən standard.
o JAX-RPC üzərinə implement edilmiştir.
o Annotations, web servis qurulması asanlaşmışdır
o SOAP formatında mesaj
o WS-* Spesifikasyalarını dəstəkləyir
• WS-Security
• WS-ReliableMessaging
• Binding WSDL to Java with JAXB
REST vs. SOAP ( 1 )
• REST servislər ümumiyyətlə stateles, Buna baxmayarq SOAP
həm stateles həmdə stateful olur.
• REST http üzerindən get istifadə etdiyi HTTP caching
mexanizmasını istifadə edir və bu da performansı artırır. SOAP
da isə cache ehtiyyacınızı özünüz qarşılamalısınız.
• REST də bir standart olmadığı üçün əlaqə qurulan sistemlərin
bir birlərinin content lərini göstərmək lazımdır ona görə
əlaqələrini qura bilirlər. Ama SOAP isə hər cür mühit ilə əlaqə
qura bilir.
• REST daha çox xırda (bəsit) cihazlar üçün daha əlverişlidir,
çünki bir çox SOAP komponentləri ( header, əlavə parametrlər )
yük gətirmir.
• REST servislərin SOAP a görə daha bəsit implementasyaları
vardır.
REST vs. SOAP ( 2 )
• WSDL qaydaları(messages,binding,operation,locastion wsdl )
təyin edir, buda platforadan asılı olmayaraq əlaqəni qurarlar.
• SOAP da REST ə görə daha az code yazılır, buda daha qarışıq
proqramların yazılmasını düşünsək, proqramçının çox daha az
düşünməsi və coda vaxt sərf etməsidir. (
transaction,security,coordination, addressing vb. )
• SOAP web servislər ( JAX-WS ) asynchronous proseslərdə daha
əlverişlidir.
• SOAP bir çox protokolları və texnologiyaları dəstəkləyir(
WSDL,XSDs,SOAP ,WS-Addressing vs. )
• Əgər Real Time mühitdə complex proqramlar yazırsınızsa
SOAP daha əlverişli, daha asan servislər ehtiyyacınızı
qarçılıyırsa REST istifadə edə bilərsiniz. ( CRUD kimi)
Təşəkkürlər
• İrkan Əhmədov
• Proqramçı
• http://www.linkedin.com/pub/irkan
-ahmadov

More Related Content

Featured

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 

Featured (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

Java Web Servislər

  • 1. Java Web Service İrkan Əhmədov Proqramçı http://www.linkedin.com/pub/irkan-ahmadov
  • 2. Başlıqlar  Web Servis Nədir?  Web Servislərin Strukturu  Web Servis Növləri  SOAP – based Web Servislər  REST - based Web Servislər  SOAP vs. REST
  • 3. Web Servis Nədir ?  Bəsit bir cümlə ilə, iki proqram arasındakı əlaqə,və ya elektron cihazların world wide web üzərindən əlaqəsi.  Client və Serverlərin world wide HTTP üzərindən əlaqəsi.  Şəbəkə üzərində baş verən əməliyyatların standard XML mesaj formatı strukturunu təmin edən interfeysdir.  Proqramların xarici əlaqələrini quran komponentdir.  Dil və Platforma asılılığı yoxdur.  XML mesajlaşması ( Sadə və ya SOAP )  Metro (java.net proyekti ) WSIT (Web Services Interoperability Technologies ) dəstəkləyir.
  • 5. Web Servislərin Növləri 1. REST-base Web Services (RESTful) 2. SOAP-based Web Services
  • 6. 1 - REST-based • RESTfull servislər olaraq bilinir. • HTTP tək protokoldur. o GET, PUT, POST, and DELETE • Web Qaynaqlar URI olaraq ifadə edilir. • Hər bir əməliyyat və ya sənəd üçün bir URI yaradır. • Məlumatın konvertasiya tipləri; o XML ( basit ) NOT SOAP XML! o JSON o HTML • Bir cox hallarda browser Client olaraq hərəkət edirlər. • Təhlükəsizlik tələb olunmayan həllərdə istifadə edilir. • Project Jersey ( Netbeans, İntellij, MyEclipse support )
  • 7.
  • 8. 2 - SOAP-based • Böyük həllərdə və ya qarışıq əməliyyatlar üçün istifadə edilir. • Eğer uygulamalarınız ; o Yüksək təhlükəsizlik o Etibarlılıq o WS-* standards-supported o HTTP dən daha çox imkan, JMS və SMTP. • WSDL əsaslı • XML format (SOAP) • JAX-WS istifadə edilən standard. o JAX-RPC üzərinə implement edilmiştir. o Annotations, web servis qurulması asanlaşmışdır o SOAP formatında mesaj o WS-* Spesifikasyalarını dəstəkləyir • WS-Security • WS-ReliableMessaging • Binding WSDL to Java with JAXB
  • 9.
  • 10.
  • 11. REST vs. SOAP ( 1 ) • REST servislər ümumiyyətlə stateles, Buna baxmayarq SOAP həm stateles həmdə stateful olur. • REST http üzerindən get istifadə etdiyi HTTP caching mexanizmasını istifadə edir və bu da performansı artırır. SOAP da isə cache ehtiyyacınızı özünüz qarşılamalısınız. • REST də bir standart olmadığı üçün əlaqə qurulan sistemlərin bir birlərinin content lərini göstərmək lazımdır ona görə əlaqələrini qura bilirlər. Ama SOAP isə hər cür mühit ilə əlaqə qura bilir. • REST daha çox xırda (bəsit) cihazlar üçün daha əlverişlidir, çünki bir çox SOAP komponentləri ( header, əlavə parametrlər ) yük gətirmir. • REST servislərin SOAP a görə daha bəsit implementasyaları vardır.
  • 12. REST vs. SOAP ( 2 ) • WSDL qaydaları(messages,binding,operation,locastion wsdl ) təyin edir, buda platforadan asılı olmayaraq əlaqəni qurarlar. • SOAP da REST ə görə daha az code yazılır, buda daha qarışıq proqramların yazılmasını düşünsək, proqramçının çox daha az düşünməsi və coda vaxt sərf etməsidir. ( transaction,security,coordination, addressing vb. ) • SOAP web servislər ( JAX-WS ) asynchronous proseslərdə daha əlverişlidir. • SOAP bir çox protokolları və texnologiyaları dəstəkləyir( WSDL,XSDs,SOAP ,WS-Addressing vs. ) • Əgər Real Time mühitdə complex proqramlar yazırsınızsa SOAP daha əlverişli, daha asan servislər ehtiyyacınızı qarçılıyırsa REST istifadə edə bilərsiniz. ( CRUD kimi)
  • 13. Təşəkkürlər • İrkan Əhmədov • Proqramçı • http://www.linkedin.com/pub/irkan -ahmadov