Nano

525 views
454 views

Published on

introducing a light-weight web service client framework targeting android platform.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
525
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Nano

  1. 1. Easy Web Service on Androidwith Nano-by Williamhttp://bulldog2011.github.com/
  2. 2. Problem Domain There is a gap between Android device andtraditional SOAP/XML based web serviceSOAP/XMLWeb Service
  3. 3. Nano to Fill the Gap Nano is a light client-side web service frameworktailored for Android platform. Feature Highlight: Support WSDL driven development, auto-generate stronglytyped proxy from WSDL. Support SOAP 1.1/1.2 and XML based Web service. Automatic XML to Java binding, performance comparableto Android native XML parser. Verified with industrial grade Web Services like Amazonand eBay Web Services. Asynchronous service invocation, flexible HTTP/SOAPheader, timeout, encoding setting, logging, etc. Can be used as a standalone XML and JSON bindingframework.
  4. 4. The Big Picture
  5. 5. Code Generation from WSDL
  6. 6. Automatic XML<>Object Binding
  7. 7. WSDL Driven Dev Flow on Android1. Generate Android Java proxy from WSDL,2. Create new Android project, add Nanoruntime and generated proxy into the project,3. Implement application logic and UI, callproxy to invoke web service as needed.
  8. 8. Simple Service Invocation Paradigm Invoke service with:1. Request object2. Callback object with success, failure and SOAP fault handlinglogic
  9. 9. A Service Call Sample
  10. 10. Demo 1 – BarCode
  11. 11. Demo 2 – Amazon Book FinderAmazon Product AdvertisingAPI used:1. itemSearch for booksearch2. cartCreate to addchosen book intoshopping cart
  12. 12. Demo 3 – eBay Demo AppeBay Finding API used:1. findItemsByKeywordsfor item searcheBay Shopping API used:1. getSingleItem for itemdetailseBay Trading API used:1. addToWatchList foradding item to watch list
  13. 13. Source, Samples and TutorialsFor Android:https://github.com/bulldog2011/nanoSimilar framework for iOS:https://github.com/bulldog2011/pico

×