Work with Windows Azure from Mobile Apps
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Work with Windows Azure from Mobile Apps

  • 1,648 views
Uploaded on

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

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

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
1,648
On Slideshare
1,645
From Embeds
3
Number of Embeds
2

Actions

Shares
Downloads
11
Comments
0
Likes
1

Embeds 3

http://paper.li 2
http://www.linkedin.com 1

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. jakarta, sep 29, 2011work with Windows Azure from mobile platformsAndri Yadiandri (at) dycode (dot) com@andri_yadi
  • 2. about me
  • 3. 4 years in a row
  • 4. start my own company & code for food
  • 5. 8 years in mobile development
  • 6. a movie freak
  • 7. the ceo of
  • 8. i won’t talk much about Azure, but mostly on client side
  • 9. azure?
  • 10. use cloud as storage(blob + structured data)access web applicationshosted in azurereceive notifications
  • 11. work with azure from mobile client apps can be complex
  • 12. scenario 1 table storagehttp blob storage
  • 13. you need to create storage, thenremember the account name & key
  • 14. REST Endpoint:http://[account].blob.core.windows.net•List, Create, and Delete Containers•List, Put, Get, Delete Blobs blob storage
  • 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. 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. 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. 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. REST Endpoint:http://[account].table.core.windows.net•List, Create, and Delete Tables•List, Put, Get, Delete Table Entities table storage
  • 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. it’s hard, right? luckily...
  • 22. there’re toolkits for popular mobile platforms iOS toolkitandroid toolkit wp7 toolkit
  • 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. 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. 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. demo
  • 27. we do apps for all mobile platforms
  • 28. our mobile apps portfolios
  • 29. our mobile apps portfolios