Work with Windows Azure from Mobile Apps

1,438 views
1,362 views

Published on

Talks about Windows Azure Toolkit for WP7, iOS, and Android. Presented on Microsoft TechDays event, Sept 29 2011, Jakarta.

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

No Downloads
Views
Total views
1,438
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
12
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Work with Windows Azure from Mobile Apps

  1. 1. jakarta, sep 29, 2011work with Windows Azure from mobile platformsAndri Yadiandri (at) dycode (dot) com@andri_yadi
  2. 2. about me
  3. 3. 4 years in a row
  4. 4. start my own company & code for food
  5. 5. 8 years in mobile development
  6. 6. a movie freak
  7. 7. the ceo of
  8. 8. i won’t talk much about Azure, but mostly on client side
  9. 9. azure?
  10. 10. use cloud as storage(blob + structured data)access web applicationshosted in azurereceive notifications
  11. 11. work with azure from mobile client apps can be complex
  12. 12. scenario 1 table storagehttp blob storage
  13. 13. you need to create storage, thenremember the account name & key
  14. 14. REST Endpoint:http://[account].blob.core.windows.net•List, Create, and Delete Containers•List, Put, Get, Delete Blobs blob storage
  15. 15. list all blob containersGET  http://watiosdemo.blob.core.windows.net/?comp=list&include=metadatax-­‐ms-­‐date:  Thu,  14  Apr  2011  20:30:00  GMTx-­‐ms-­‐version:  2009-­‐09-­‐19x-­‐ms-­‐blob-­‐type:  BlockBlobAuthorization:  SharedKey  watiosdemo:[ComputedHash] blob storage
  16. 16. compute hashAccountKey:  /9seXadQ9HwOpXUO1jKxFN8q…Request:  GETnnnnnnnnnnnnx-­‐ms-­‐blob-­‐type:BlockBlobnx-­‐ms-­‐date:Thu,  14  Apr  2011  20:30:00  GMTnx-­‐ms-­‐version:2009-­‐09-­‐19n/watiosdemo/ncomp:listninclude:metadataHash = HMACSHA256(UTF8Encode(Request), Base64Decode(AccountKey))
  17. 17. list all blob containersGET  http://watiosdemo.blob.core.windows.net/?comp=list&include=metadatax-­‐ms-­‐date:  Thu,  14  Apr  2011  20:30:00  GMTx-­‐ms-­‐version:  2009-­‐09-­‐19x-­‐ms-­‐blob-­‐type:  BlockBlobAuthorization:  SharedKey  watiosdemo:[ComputedHash] <?xml  version="1.0"  encoding="utf-­‐8"?> <EnumerationResults  AccountName="http://watiosdemo.blob.core.windows.net/"> blob storage    <Prefix>c</Prefix>    <MaxResults>3</MaxResults>    <Containers>        <Container>            <Name>movieposter</Name>            <Url>http://watiosdemo.blob.core.windows.net/movieposter</Url>            <Properties>                <Last-­‐Modified>Sun,  14  Apr  2011  20:09:03  GMT</Last-­‐Modified>            </Properties>        </Container>    </Containers> ....
  18. 18. add new imagePUT  http://watiosdemo.blob.core.windows.net/movieposter/poster.jpg  x-­‐ms-­‐date:  Thu,  14  Apr  2011  20:30:00  GMTx-­‐ms-­‐version:  2009-­‐09-­‐19x-­‐ms-­‐blob-­‐type:  BlockBlobAuthorization:  SharedKey  watiosdemo:[ComputedHash]{...binary  representation  of  image...} blob storage
  19. 19. REST Endpoint:http://[account].table.core.windows.net•List, Create, and Delete Tables•List, Put, Get, Delete Table Entities table storage
  20. 20. list all tablesGET  http://watiosdemo.table.core.windows.net/Tablesx-­‐ms-­‐date:  Thu,  14  Apr  2011  20:30:00  GMTx-­‐ms-­‐version:  2009-­‐09-­‐19DataServiceVersion:  1.0;NetFxMaxDataServiceVersion:  2.0;NetFxAuthorization:  SharedKey  watiosdemo:[ComputedHash] <feed  xml:base="http://iostest.tables.core.windows.net/"  xmlns:d="http:// schemas.microsoft.com/ado/2007/08/dataservices"  xmlns:m="http:// schemas.microsoft.com/ado/2007/08/dataservices/metadata"  xmlns="http:// www.w3.org/2005/Atom">    <title  type="text">Tables</title> blob storage    <id>http://watiosdemo.tables.core.windows.net/Tables</id>    <updated>2011-­‐04-­‐04T17:18:54.7062347Z</updated>    <link  rel="self"  title="Tables"  href="Tables"  />    <entry>        <id>http://watiosdemo.tables.core.windows.net/Tables(‘movie)</id>        <title  type="text"></title>        <updated>2009-­‐01-­‐04T17:18:54.7062347Z</updated>        <author>            <name  />        </author> ....
  21. 21. it’s hard, right? luckily...
  22. 22. there’re toolkits for popular mobile platforms iOS toolkitandroid toolkit wp7 toolkit
  23. 23. windows azure toolkit for windows phone 7encapsulates authentication(directly or through proxy)requests & responses abstractionfor cloud storage & SQL Azuresupports both Apple pushnotification & MS push notificationsource code is available at:https://watwp.codeplex.comlatest version 1.3.0, sep 30, 2011
  24. 24. windows azure toolkit for iOSencapsulates authentication(directly or through proxy)requests & responses abstractionfor cloud storagesupports Apple push notificationsource code is available at:https://github.com/microsoft-dpe/wa-toolkit-ioslatest version 1.2.1, aug 31, 2011
  25. 25. windows azure toolkit for androidencapsulates authentication(directly or through proxy)requests & responses abstractionfor cloud storagesource code is available at:https://github.com/microsoft-dpe/wa-toolkit-androidlatest version 0.8, aug 31, 2011
  26. 26. demo
  27. 27. we do apps for all mobile platforms
  28. 28. our mobile apps portfolios
  29. 29. our mobile apps portfolios

×