220 likes | 404 Views
Web Services & API. กฤษฎา แก้วผุดผ่อง นักวิชาการ คอมพิวเตอร์ งานเทคโนโลยีสารสนเทศ หอสมุดและคลังความรู้ม.มหิดล. Service Provider. Service Consumer. www.li.mahidol.ac.th. IUG16th 2012 @ Mahidol University. Service Consumer / Requestor. Service Registry. ( ไฟล์ WSDL).
E N D
Web Services & API กฤษฎา แก้วผุดผ่องนักวิชาการคอมพิวเตอร์งานเทคโนโลยีสารสนเทศหอสมุดและคลังความรู้ม.มหิดล Service Provider Service Consumer www.li.mahidol.ac.th IUG16th 2012 @ Mahidol University
Service Consumer /Requestor Service Registry (ไฟล์WSDL) Service Publisher/Provider www.li.mahidol.ac.th
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 party application API / WSDL file Millennium Server Your Applications www.li.mahidol.ac.th 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 portalintegration 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 And More ... www.li.mahidol.ac.th IUG16th 2012 @ Mahidol University
Patron API – How It Works Patron API – How It Works REC INFO[p!]=pEXP DATE[p43]= - - PCODE1[p44]=dPCODE2[p45]=sPCODE3[p46]=4P TYPE[p47]=2TOT CHKOUT[p48]=48TOT RENWAL[p49]=0CUR CHKOUT[p50]=3BIRTH DATE[p51]= - -19 HOME LIBR[p53]=north • Send an HTML request to a URL • The API returns patron data • Allows limits by library or vendor • Often used for patron verification http://library.edu:4500/PATRONAPI/.p112233/dump • For authentication Millennium Server Your Applications
My Millennium Web Service Patron API – 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 Web Service How It Works <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelopexmlns: soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns: xsd= "http://www.w3.org/2001/XMLSchema" xmlns: xsi= "http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body>... update • Send an XML request to the server • The web service returns patron data • Send an XML update to the server • Get back status or errors • Millennium record updated searchPatrons status • For updating patrons Millennium Server Your Applications
Fines Payment Web Service How Fines Payment works payPatronFine searchPatrons • External software requests patron fine information • Millennium responds • External software displays fines • External software takes payment • External software sends payment information • Millennium updates patron record patronInfo For Selfcheck Millennium Server External Software
Item Status API Patron API – How It Works For Selfcheck • Teaches MilCirc to work with RFID • Multiple item checkin and 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/THeGIFth.pdf* http://www.eiug.org/c2007/OnlinePaymentLibraryCharges2.pps* APIs – The Glue You Can Alan Dyck, Product Manager, Web Eric Leckbee, Product Manager, Circulation (IUG 2011-San Francisco) 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