sas web services - lex jansen · building sas based web services jonathan williamson amadeus...
TRANSCRIPT
Building SAS Based
Web Services
Jonathan Williamson
Amadeus Software Limited
20th May 2003
Slide 2 Copyright © 2003 Amadeus Software Limited
What Are Web Services?
• Generalised Communications Model
• Utilise standard Internet protocols– HTTP
– SOAP
– XML
Slide 3 Copyright © 2003 Amadeus Software Limited
How Do They Help Us?
• Data Storage Independence
• System Independence
• Remote access to data and processing power
Slide 4 Copyright © 2003 Amadeus Software Limited
How Can We Build a SAS Web Service
• Microsoft .NET Framework (Visual Basic)– Web Service Interface
• SAS Integrated Object Model (IOM)– Access and Control SAS
• ActiveX Data Objects (ADO.NET)– Data Retrieval
Slide 5 Copyright © 2003 Amadeus Software Limited
Web Service Code
<%@ WebService Language="vb"
Codebehind="Inventory.asmx.vb"
Class="SasStockController.SimpleInventory" %>
Public Class SimpleInventory
Inherits System.Web.Services.WebService
<WebMethod()> _
Public Function GetStockLevels( _
ByVal supplierRef As Integer) _
As DataSet
' Function Implementation
End Function
End Class
Slide 6 Copyright © 2003 Amadeus Software Limited
Writing Clients
• Web Service Proxy Object
– Built by retrieving WSDL
– Manages conversion of parameters to XML
– Creates SOAP envelope
– Converts response
– Provides asynchronous operation
Web Service Client
Function Call
Result
Client PC
SOAP over HTTP
XMLProxy
Object
Slide 7 Copyright © 2003 Amadeus Software Limited
Rich Client
Web Service System
Web Service Server
SAS ServerSAS IOM
and ADO
SOAP over
HTTP
XML
Rich Client
Slide 8 Copyright © 2003 Amadeus Software Limited
ASP.NET Client
Web Service System
Web Service Server
SAS ServerSAS IOM
and ADO
Web Server
(ASP Client)
Web Browser
HTTP
SOAP over
HTTP
XML
Slide 9 Copyright © 2003 Amadeus Software Limited
Browser Client
Web Service System
Web Service Server
SAS ServerSAS IOM
and ADO
SOAP over
HTTP
XML
Web Server
Browser Client
HTTP
Slide 10 Copyright © 2003 Amadeus Software Limited
Web Service Clients
Web Service System
Web Service Server
SAS ServerSAS IOM
and ADO
Web Server
(ASP Client)
Web Browser
HTTP
SOAP over
HTTP
XML
SOAP over
HTTP
XML
Web Server
Browser Client
HTTP
SOAP over
HTTP
XML
Rich Client
Slide 11 Copyright © 2003 Amadeus Software Limited
Conclusions
• Web services allow new levels of flexibility
• Different clients
• Immature technology– Still evolving
– Some things that should be possible are not – yet
Slide 12 Copyright © 2003 Amadeus Software Limited
Any Questions?
Slide 13 Copyright © 2003 Amadeus Software Limited
Contact Information
• Amadeus Conference Stand – Come and chat
• Email – [email protected]
• Amadeus Web Site– www.amadeus.co.uk