+ All Categories
Home > Documents > 1 Incorporating XML with Mobile Devices and ASP.NET casey chesnut brains-N-brawn.com 4/4/2005...

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

Date post: 01-Apr-2015
Category:
Upload: carlos-swanton
View: 213 times
Download: 0 times
Share this document with a friend
Popular Tags:
25
1 Incorporating XML with Mobile Devices and ASP.NET casey chesnut brains-N-brawn.com 4/4/2005 Student Ambassadors
Transcript
Page 1: 1 Incorporating XML with Mobile Devices and ASP.NET casey chesnut brains-N-brawn.com 4/4/2005 Student Ambassadors.

1

Incorporating XML with Mobile Devices and ASP.NET

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

Student Ambassadors

Page 2: 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

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

3

Outline

BasicsReal World Web ServicesAdvancedFuture

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

4

XML Web Services

ASP.NETNOT Remoting

ASMX Web ServicesNOT Web Forms

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

5

Core Standards

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

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

6

ASP.NET Web Service

DemoCodeAutogenerated test pageAutogenerated WSDL

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

7

Mobile Devices

.NET FrameworkNotebooksTablet PCs

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

.NET EmbeddedSPOT Watches

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

8

Compact Framework Client

Demo

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

9

Compact Framework Client

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

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: 1 Incorporating XML with Mobile Devices and ASP.NET casey chesnut brains-N-brawn.com 4/4/2005 Student Ambassadors.

11

User Experience

Cache dataDisplay the hourglassUse asynchronous calls

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

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: 1 Incorporating XML with Mobile Devices and ASP.NET casey chesnut brains-N-brawn.com 4/4/2005 Student Ambassadors.

13

Serialization Attributes

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

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

14

Soap Headers

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

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

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

15

Soap Extensions

Work with the request / response Xml

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

16

Soap Extension

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

17

Real World Web Services

Google APIMapPoint Web ServiceTerraServerMicrosoft.comAmazoneBay / PayPalFedEx

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

18

MapPoint

Demo

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

19

Advanced Web Services

WSEWS-*Hosting Web Services

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

20

WSE

Web Service EnhancementsWS-AddressingWS-SecurityWS-SecureConversationWS-Attachments

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

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

21

WSE for CF

Sample WS-Security requests

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

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: 1 Incorporating XML with Mobile Devices and ASP.NET casey chesnut brains-N-brawn.com 4/4/2005 Student Ambassadors.

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: 1 Incorporating XML with Mobile Devices and ASP.NET casey chesnut brains-N-brawn.com 4/4/2005 Student Ambassadors.

24

Future

Compact Framework v2Visual Studio 2005

IndigoASMX Replacement

Devices ProfileWS-DiscoveryUPnP 2.0 devices

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

25

Questions

[email protected]


Recommended