incorporating xml with mobile devices and asp.net

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

Upload: winka

Post on 22-Jan-2016

25 views

Category:

Documents


0 download

DESCRIPTION

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 - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Incorporating XML with Mobile Devices and ASP.NET

1

Incorporating XML with Mobile Devices and ASP.NET

casey chesnutbrains-N-brawn.com4/4/2005

Student Ambassadors

Page 2: Incorporating XML with Mobile Devices and ASP.NET

2

Sample Code

http://www.brains-N-brawn.com/artifacts/saXmlCfAsp.zip

Page 3: Incorporating XML with Mobile Devices and ASP.NET

3

Outline

BasicsReal World Web ServicesAdvancedFuture

Page 4: Incorporating XML with Mobile Devices and ASP.NET

4

XML Web Services

ASP.NETNOT Remoting

ASMX Web ServicesNOT Web Forms

Page 5: Incorporating XML with Mobile Devices and ASP.NET

5

Core Standards

XML - document modelXSD - data types and structureSOAP - communicationWSDL - descriptionUDDI – discovery…

Page 6: Incorporating XML with Mobile Devices and ASP.NET

6

ASP.NET Web Service

DemoCodeAutogenerated test pageAutogenerated WSDL

Page 7: Incorporating XML with Mobile Devices and ASP.NET

7

Mobile Devices

.NET FrameworkNotebooksTablet PCs

.NET Compact Framework (CF)Pocket PCPocket PC Phone EditionSmartphones

.NET EmbeddedSPOT Watches

Page 8: Incorporating XML with Mobile Devices and ASP.NET

8

Compact Framework Client

Demo

Page 9: Incorporating XML with Mobile Devices and ASP.NET

9

Compact Framework Client

Page 10: Incorporating XML with Mobile Devices and ASP.NET

10

Gotchas

Check for connectivityhttp://localhost URLs will not work

Use Machine Name or IP Address insteadInstall Loopback Adapter

When developing without internet connection

Page 11: Incorporating XML with Mobile Devices and ASP.NET

11

User Experience

Cache dataDisplay the hourglassUse asynchronous calls

Page 12: Incorporating XML with Mobile Devices and ASP.NET

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>

Page 13: Incorporating XML with Mobile Devices and ASP.NET

13

Serialization Attributes

Used to shape object serialization[XmlRoot()][XmlElement()][XmlAttribute()][XmlText()]

Page 14: Incorporating XML with Mobile Devices and ASP.NET

14

Soap Headers

Work with SoapHeaders as objectshttp://msdn.microsoft.com/library/default.asp

?url=/library/en-us/cpref/html/frlrfsystemwebservicesprotocolssoapheaderclasstopic.asp

Page 15: Incorporating XML with Mobile Devices and ASP.NET

15

Soap Extensions

Work with the request / response Xml

Page 16: Incorporating XML with Mobile Devices and ASP.NET

16

Soap Extension

Page 17: Incorporating XML with Mobile Devices and ASP.NET

17

Real World Web Services

Google APIMapPoint Web ServiceTerraServerMicrosoft.comAmazoneBay / PayPalFedEx

Page 18: Incorporating XML with Mobile Devices and ASP.NET

18

MapPoint

Demo

Page 19: Incorporating XML with Mobile Devices and ASP.NET

19

Advanced Web Services

WSEWS-*Hosting Web Services

Page 20: Incorporating XML with Mobile Devices and ASP.NET

20

WSE

Web Service EnhancementsWS-AddressingWS-SecurityWS-SecureConversationWS-Attachments

WSE for CFhttp://www.OpenNETCF.orghttp://www.brains-N-brawn.com/cfWSE2/

Page 21: Incorporating XML with Mobile Devices and ASP.NET

21

WSE for CF

Sample WS-Security requests

Page 22: Incorporating XML with Mobile Devices and ASP.NET

22

Hosting Web Services

Monash University Mobile Web Serverhttp://msdn.microsoft.com/library/

default.asp?url=/library/en-us/dnnetcomp/html/netcfma.asp

Page 23: Incorporating XML with Mobile Devices and ASP.NET

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 …

Page 24: Incorporating XML with Mobile Devices and ASP.NET

24

Future

Compact Framework v2Visual Studio 2005

IndigoASMX Replacement

Devices ProfileWS-DiscoveryUPnP 2.0 devices

Page 25: Incorporating XML with Mobile Devices and ASP.NET

25

Questions

[email protected]