Free Powerpoint TemplatesFree Powerpoint Templates
Pengenalan Web ServiceOleh : Tim PDPT DIKTI
Free Powerpoint Templates
Agenda
• Mengenal Web Service
– SOA (Serive Oriented Architecture)
– Komponen Web Service
• Web Service PULL (Praktek)
• Web Service PUSH (Praktek)
Free Powerpoint Templates
SOA (Service Oriented Architectures)
SOAP
HTTP
PDPT
PT
BANPT
Kepegawaian
PEMDA
Masyarakat
BALITBANG…
HTTP
Free Powerpoint Templates
SOA (Service Oriented Architectures)
DIKTI
Integrasi Aplikasi, Platform, Standar dalam
EnterprisePlatform
Aplikasi
Database
Web PortalOracle
MySQL
MS SQL Server
Windows
Linux
Unix
Web Service
J2EE
XML
PHP
Open Standard
Mac OS X
PostgreSQL
IGOS
…
…
…
Free Powerpoint Templates
Web Service PDPT
DataData
DataData
PT 1 PT 2
DIKTI
WS WS
WSWS
SI PT1 SI PT2
SI = Sistem Informasi
WS = Web Service
OracleMySQL
PDPT
Portal
Free Powerpoint Templates
Web Service Sederhana
SOAP Request
SOAP Response
Web Service Web Service
Requester ProviderKomunikasi Web
Service Sederhana
Free Powerpoint Templates
Komponen Web Service
• XML (eXtensible Markup
Language)
• SOAP (Simple Object
Access Protocol)
• WSDL (Web Service
Description Language)
• UDDI (Universal Description
Discovery and Integration)
UDDI
Registry
C++, C#,
Java,
PHP, etc…
Web Service
Requester
Web Server
SOAP
Retrieves link
to service
SearchPublish
bind
Web Service
Provider
WSDL WSDL
Free Powerpoint Templates
Web Service Dasar
Service Description
WSDL
Data Exchange Protocols
SOAP
Data Representation
XML
Networks and Transport Protocols
TCP/IP, HTTP, HTTPS, FTP, SMTP
Discovery and Publication
UDDI
Free Powerpoint Templates
XML
• eXtensible Markup Language (XML)
• suatu kumpulan aturan untuk menulis
dokumen dalam bentuk yang bisa dibaca
mesin.
Free Powerpoint Templates
Bagian XML
• Element
– Pasangan penanda (tag) awal dan akhir.
• Penanda (tag) menggunakan kurung siku “< >”
• Attribute
– Pasangan suatu nama dan nilai yang
merupakan bagian dari penanda (tag) awal
suatu Elemen.
Free Powerpoint Templates
SOAP
• Simple Object Access Protocol
• Mekanisme untuk mendefinisikan unit
komunikasi
• Mekanisme bagaimana menangani
kesalahan
• Mekanisme ekstensibilitas.
Free Powerpoint Templates
Struktur SOAP Messages
• Elemen dasar dari SOAP
Message adalah SOAP
Envelope.
• SOAP Envelope terdiri atas
elemen Header (opsional)
dan Body (harus ada)
• Elemen dapat memanggil
Fault untuk kondisi
perkecualian
• Bila diperlukan bisa
menggunakan lampiran.
SOAP Envelope
SOAP Attachment (optional)
Header (optional)
Body
XML Content
Fault (optional)
Free Powerpoint Templates
Contoh SOAP (request)
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle=“http://www.w3.org/2001/12/soap-encoding”>
<soap:Body xmlns:m="http://http://ws.pdpt.dikti.go.id/pt">
<m:GetNamaPT>
<m:kodePT>001001</m:kodePT>
</m:GetNamaPT>
</soap:Body>
</soap:Envelope>
Free Powerpoint Templates
Contoh SOAP (response)
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soapenvelope"
soap:encodingStyle="http://www.w3.org/2001/12/soapencoding">
<soap:Body xmlns:m="http://ws.pdpt.dikti.go.id/pt">
<m:GetNamaPTResponse>
<m:NamaPT>Universitas Gadjah Mada</m:NamaPT>
</m:GetNamaPTResponse>
</soap:Body>
</soap:Envelope>
Free Powerpoint Templates
WSDL
• Web Services Definition Language
• Format XML untuk menggambarkan
semua informasi untuk meminta dan
berkomunikasi dengan Web Service
Free Powerpoint Templates
Struktur WSDL
Elemen Keterangan
<types> Tipe data yang
digunakan web service
<message> Pesan yang digunakan
web service
<portType> Operasi yang dilakukan
web service
<binding> Protokol komunikasi
yang digunakan web
service
Service
Porthttp
BindingSOAP
Port
Binding
portType
Operation(s)
inMessage outMessage
Free Powerpoint Templates
Struktur Dokumen WSDL
<definitions>
<types>
definisi type........
</types>
<message>
definisi message....
</message>
<portType>
definisi port.......
</portType>
<binding>
definisi binding....
</binding>
</definitions>
Free Powerpoint Templates
UDDI (Universal Description Discovery and Integration)
• Direktori untuk
menyimpan informasi
tentang web service
• Berkomunikasi
menggunakan SOAP
Free Powerpoint Templates
Referensi Lanjut
• SOAP - http://www.w3c.org/TR/soap
• WSDL - http://www.w3c.org/TR/wsdl
• UDDI - http://www.uddi.xml.org
Top Related