Service Publisher/Provider (ไฟล์ WSDL)

advertisement
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
API /
third partyWSDL
application
file
Millennium Server
www.li.mahidol.ac.th
Your Applications
IUG16th 2012 @ Mahidol University
http://xxx.xxx.xxx/iii/patronio/servi
ces/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/PATRONA
PI/.p112233/dump
For
authenticati
•on
Send an HTML request to a URL
Millennium Server
Your Applications
• 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"
update
encoding="UTF8"?>
<soapenv:Envelope
searchPatrons
xmlns:
soapenv="http://sc
hemas.xmlsoap.org
status
/soap/envelope/"
xmlns: xsd=
"http://www.w3.or
g/2001/XMLSchem
a" xmlns: xsi=
"http://www.w3.or
g/2001/XMLSchem
a-instance">
<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/T
HeGIFth.pdf
*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
Download