Lesson 5

420 views
390 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
420
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
61
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Lesson 5

  1. 1. HIREVIETNAMESEiPhone Training Lesson 5
  2. 2. HIREVIETNAMESEhttp://www.hirevietnamese.com Contents 1 Web Service Architectures 2 SOAP Introduction 3 NSURLConnection 4 NSXMLParser 5 Example 5 6 Exercise 5 2
  3. 3. HIREVIETNAMESEhttp://www.hirevietnamese.com Web services Architecture SOAP Protocol Database SOAP Services XML 3
  4. 4. HIREVIETNAMESEhttp://www.hirevietnamese.com SOAP Introduction  What is SOAP?  SOAP stands for Simple Object Access Protocol  SOAP is a communication protocol  SOAP is for communication between applications  SOAP is a format for sending messages  SOAP communicates via Internet  SOAP is platform independent  SOAP is language independent  SOAP is based on XML  SOAP is simple and extensible  SOAP allows you to get around firewalls  SOAP is a W3C recommendation 4
  5. 5. HIREVIETNAMESEhttp://www.hirevietnamese.com SOAP Introduction  Why SOAP?  It is important for application development to allow Internet communication between programs.  HTTP is supported by all Internet browsers and servers.  SOAP provides a way to communicate between applications running on different operating systems, with different technologies and programming languages. 5
  6. 6. HIREVIETNAMESEhttp://www.hirevietnamese.com SOAP Introduction  SOAP Building Blocks  An Envelope element that identifies the XML document as a SOAP message.  A Header element that contains header information.  A Body element that contains call and response information.  A Fault element containing errors and status information. 6
  7. 7. HIREVIETNAMESEhttp://www.hirevietnamese.com SOAP Introduction SOAP Request 7
  8. 8. HIREVIETNAMESEhttp://www.hirevietnamese.com SOAP Introduction SOAP Response 8
  9. 9. HIREVIETNAMESEhttp://www.hirevietnamese.com NSURLConnection Request 9
  10. 10. HIREVIETNAMESEhttp://www.hirevietnamese.com NSURLConnection Delegate 10
  11. 11. HIREVIETNAMESEhttp://www.hirevietnamese.com NSXMLParser Delegate 11
  12. 12. HIREVIETNAMESEhttp://www.hirevietnamese.com NSXMLParser XML 12
  13. 13. HIREVIETNAMESEhttp://www.hirevietnamese.com NSXMLParser XML 13
  14. 14. HIREVIETNAMESEhttp://www.hirevietnamese.com Example 5 14
  15. 15. HIREVIETNAMESEhttp://www.hirevietnamese.com Exercise 5 15
  16. 16. HIREVIETNAMESE

×