Download Document

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Incorporating XML with Mobile
Devices and ASP.NET
casey chesnut
brains-N-brawn.com
4/4/2005
Student Ambassadors
1
Sample Code

http://www.brains-Nbrawn.com/artifacts/saXmlCfAsp.zip
2
Outline
Basics
 Real World Web Services
 Advanced
 Future

3
XML Web Services

ASP.NET


NOT Remoting
ASMX Web Services

NOT Web Forms
4
Core Standards
XML - document model
 XSD - data types and structure
 SOAP - communication
 WSDL - description
 UDDI – discovery
…

5
ASP.NET Web Service

Demo
Code
 Autogenerated test page
 Autogenerated WSDL

6
Mobile Devices

.NET Framework
Notebooks
 Tablet PCs


.NET Compact Framework (CF)
Pocket PC
 Pocket PC Phone Edition
 Smartphones


.NET Embedded

SPOT Watches
7
Compact Framework Client

Demo
8
Compact Framework Client
9
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
10
User Experience
Cache data
 Display the hourglass
 Use asynchronous calls

11
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>
12
Serialization Attributes
Used to shape object serialization
 [XmlRoot()]
 [XmlElement()]
 [XmlAttribute()]
 [XmlText()]

13
Soap Headers

Work with SoapHeaders as objects

http://msdn.microsoft.com/library/default.asp
?url=/library/enus/cpref/html/frlrfsystemwebservicesprotoco
lssoapheaderclasstopic.asp
14
Soap Extensions

Work with the request / response Xml
15
Soap Extension
16
Real World Web Services
Google API
 MapPoint Web Service
 TerraServer
 Microsoft.com
 Amazon
 eBay / PayPal
 FedEx

17
MapPoint

Demo
18
Advanced Web Services
WSE
 WS-*
 Hosting Web Services

19
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/

20
WSE for CF

Sample WS-Security requests
21
Hosting Web Services

Monash University Mobile Web Server

http://msdn.microsoft.com/library/default.asp
?url=/library/enus/dnnetcomp/html/netcfma.asp
22
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
 …
23
Future

Compact Framework v2


Indigo


Visual Studio 2005
ASMX Replacement
Devices Profile
WS-Discovery
 UPnP 2.0 devices

24
Questions

[email protected]
25
Related documents