Service Publisher/Provider (ไฟล์ WSDL)

Download Report

Transcript Service Publisher/Provider (ไฟล์ WSDL)

Web Services
& API
Service
Consumer
www.li.mahidol.ac.th
Service
Provider
กฤษฎา แก้วผุดผอง
่
นักวิชาการคอมพิวเตอร ์
งานเทคโนโลยี
สารสนเทศ
หอสมุดและคลังความรู้
ม.มหิดล
IUG16th 2012 @ Mahidol University
Service Consumer
/Requestor
Service Registry
(ไฟล์ WSDL)
Service
Publisher/Provider
www.li.mahidol.ac.th
3
Web Services, API and Millennium
Integration

What do API & Web Services do?
• Teach different systems to work
together
• Allows Millennium
to work with a third
API /
party application
WSDL file
Millennium Server
www.li.mahidol.ac.th
Your Applications
IUG16th 2012 @ Mahidol University
http://xxx.xxx.xxx/iii/patronio/services/
PatronIO?wsdl
www.li.mahidol.ac.th
IUG16th 2012 @ Mahidol University
Web Services, API and Millennium
Integration

How do libraries use API ?
• For selfcheck
• For fines payment
• For backups
• For web portal integration
www.li.mahidol.ac.th
IUG16th 2012 @ Mahidol University
Web Services, API and Millennium
Integration

What might you do with an API?
• Read records
• Update/create records
• Search for records
• Perform a business function
e.g. >renew a book
>pay off a fine
www.li.mahidol.ac.th
IUG16th 2012 @ Mahidol University
Available API products
Patron API
My Millennium Web Service
Patron Update Web Service
Fines Payment Web Service
Item Status API
www.li.mahidol.ac.th
And More ...
IUG16th 2012 @ Mahidol University
Patron
API –API
How
It Works
Patron
– How
It Works
REC INFO[p!]=p
EXP DATE[p43]= - PCODE1[p44]=d
PCODE2[p45]=s
PCODE3[p46]=4
P TYPE[p47]=2
TOT
CHKOUT[p48]=48
TOT
RENWAL[p49]=0
CUR
CHKOUT[p50]=3
BIRTH DATE[p51]= -19
HOME
LIBR[p53]=north
http://library.edu:4500/PATRONAPI/.
p112233/dump
Your Applications
For
authenticatio
•n Send an HTML request to a URL
Millennium Server
• The API returns patron data
• Allows limits by library or vendor
• Often used for patron verification
My Millennium
Service
Patron APIWeb
– How
It Works
For Display
• SearchPatrons
• Current checkouts, including due dates
• Items available for pickup
• Status of outstandings holds
• Booking information
• Fines information
Patron Update
Service
HowWeb
It Works
For updating
patrons
Millennium Server
<?xml version="1.0"
encoding="UTF-8"?>
update
<soapenv:Envelope
xmlns:
soapenv="http://sche
searchPatrons
mas.xmlsoap.org/so
ap/envelope/" xmlns:
xsd=
status
"http://www.w3.org/2
001/XMLSchema"
xmlns: xsi=
"http://www.w3.org/2
001/XMLSchemainstance">
<soapenv:Body>...
Your Applications
• Send an XML request to
the server
• The web service returns
patron data
• Send an XML update to the
server
FinesHow
Payment
Service
Fines Web
Payment
works
payPatronFine
searchPatrons
patronInfo
Millennium Server
External Software
• External software requests patron fine
information
For Selfcheck
• Millennium responds
• External software displays fines
• External software takes payment
• External software sends payment
information
Item Patron
Status API – How It Works
For Selfcheck
• Teaches MilCirc to work with RFID
• Multiple item checkin and checkout
Express Lane
Checkout
MilCir Checkout
MilCir Checkout
MilCir Checkout
www.li.mahidol.ac.th
IUG16th 2012 @ Mahidol University
Reference
*
http://www.mict.go.th/ewt_news.php?nid=186
*
http://ict.moph.go.th/training/ict_2007/50/UDDI
.pdf
*
http://egif.mict.go.th/phase3/document/THeGI
Fth.pdf
*
http://www.eiug.org/c2007/OnlinePaymentLibr
www.li.mahidol.ac.th
IUG16th 2012 @ Mahidol University
Reference
* Web Services, APIs and Millennium
Integration /
Eric Leckbee, Product Manager,
Circulation
(IUG 2010-Chicago)
www.li.mahidol.ac.th
IUG16th 2012 @ Mahidol University
ขอบคุณครับ
www.li.mahidol.ac.th
IUG16th 2012 @ Mahidol University