1 / 25

Incorporating XML with Mobile Devices and ASP.NET

Incorporating XML with Mobile Devices and ASP.NET. casey chesnut brains-N-brawn.com 4/4/2005 Student Ambassadors. Sample Code. http://www.brains-N-brawn.com/artifacts/saXmlCfAsp.zip. Outline. Basics Real World Web Services Advanced Future. XML Web Services. ASP.NET NOT Remoting

winka
Download Presentation

Incorporating XML with Mobile Devices and ASP.NET

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Incorporating XML with Mobile Devices and ASP.NET casey chesnut brains-N-brawn.com 4/4/2005 Student Ambassadors

  2. Sample Code • http://www.brains-N-brawn.com/artifacts/saXmlCfAsp.zip

  3. Outline • Basics • Real World Web Services • Advanced • Future

  4. XML Web Services • ASP.NET • NOT Remoting • ASMX Web Services • NOT Web Forms

  5. Core Standards • XML - document model • XSD - data types and structure • SOAP - communication • WSDL - description • UDDI – discovery • …

  6. ASP.NET Web Service • Demo • Code • Autogenerated test page • Autogenerated WSDL

  7. Mobile Devices • .NET Framework • Notebooks • Tablet PCs • .NET Compact Framework (CF) • Pocket PC • Pocket PC Phone Edition • Smartphones • .NET Embedded • SPOT Watches

  8. Compact Framework Client • Demo

  9. Compact Framework Client

  10. Gotchas • Check for connectivity • http://localhost URLs will not work • Use Machine Name or IP Address instead • Install Loopback Adapter • When developing without internet connection

  11. User Experience • Cache data • Display the hourglass • Use asynchronous calls

  12. Soap Document <soap:Envelope ...> <soap:Header> <SecurityToken>1234</SecurityToken> </soap:Header> <soap:Body> <StockQuoteRequest ...> <symbols> <Symbol>FABRIKAM</Symbol> <Symbol>CONTOSO</Symbol> </symbols> </StockQuoteRequest> </soap:Body> </soap:Envelope>

  13. Serialization Attributes • Used to shape object serialization • [XmlRoot()] • [XmlElement()] • [XmlAttribute()] • [XmlText()]

  14. Soap Headers • Work with SoapHeaders as objects • http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebservicesprotocolssoapheaderclasstopic.asp

  15. Soap Extensions • Work with the request / response Xml

  16. Soap Extension

  17. Real World Web Services • Google API • MapPoint Web Service • TerraServer • Microsoft.com • Amazon • eBay / PayPal • FedEx

  18. MapPoint • Demo

  19. Advanced Web Services • WSE • WS-* • Hosting Web Services

  20. WSE • Web Service Enhancements • WS-Addressing • WS-Security • WS-SecureConversation • WS-Attachments • WSE for CF • http://www.OpenNETCF.org • http://www.brains-N-brawn.com/cfWSE2/

  21. WSE for CF • Sample WS-Security requests

  22. Hosting Web Services • Monash University Mobile Web Server • http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/netcfma.asp

  23. WS-* • WS-ReliableMessaging • http://www.brains-N-brawn.com/cfReliable/ • WS-Eventing • http://www.brains-N-brawn.com/cfEvent/ • WS-AtomicTransaction, WS-Coordination, WS-BusinessActivity • WS-Federation, WS-Privacy, WS-Authorization • BPEL4WS • …

  24. Future • Compact Framework v2 • Visual Studio 2005 • Indigo • ASMX Replacement • Devices Profile • WS-Discovery • UPnP 2.0 devices

  25. Questions • casey@brains-N-brawn.com

More Related