Your SlideShare is downloading. ×
Easy Web Serivce on iOS with Pico
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Easy Web Serivce on iOS with Pico

1,090
views

Published on

Introduction to a light client-side web serivice framework tailored for iOS platform

Introduction to a light client-side web serivice framework tailored for iOS 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
1,090
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Easy Web Service on iOS withPico -by William http://bulldog2011.github.com/
  • 2. Problem Domain  There is a gap between iOS device and traditional SOAP/XML based web service SOAP/XML Web Service
  • 3. Pico to Fill the Gap Pico is a light client-side web service framework tailored for iOS platform. Feature Highlight:  Support WSDL driven development, auto-generate proxy from WSDL,  Support SOAP 1.1/1.2 and XML based Web service,  Automatic XML to Objective-C binding,  Built on popular and mature AFNetworking library,  Verified with Industrial grade Web Services like Amazon and eBay Web Services,  Asynchronous service invocation, flexible HTTP/SOAP header, timeout, encoding setting, logging, etc.
  • 4. The Big Picture
  • 5. Code Generation from WSDL
  • 6. Automatic XML<>Object Binding
  • 7. WSDL Driven Dev Flow on iOS1. Generate Objective-C proxy from WSDL,2. Create new iOS project, add Pico runtime and generated proxy into the project,3. Implement application logic and UI, call proxy to invoke web servie as needed.
  • 8. Simple Service Invocation Paradigm Invoke service with: 1. Request object 2. Success callback for success handling logic 3. Failure callback for failure handling logic
  • 9. A Service Call Sample
  • 10. Demo 1 – Currency Converter
  • 11. Demo 2 – Amazon Book Finder Amazon Product Advertising API used: 1. itemSearch for book search 2. cartCreate to add chosen book into shopping cart
  • 12. Demo 3 – eBay Demo AppeBay Finding API used: 1. findItemsByKeywords for item searcheBay Shopping API used: 1. getSingleItem for item detailseBay Trading API used: 1. addToWatchList for adding item to watch list 2. getMyeBayBuying for watch list view
  • 13. Source, Samples and Tutorials https://github.com/bulldog2011/pico