world wide networking university of wollongong 2004 - lecture 12

27
WEEK12 - IACT303/ITCS923/MCS9303 WEEK12 - IACT303/ITCS923/MCS9303 Web Services, .NET and Subject Wrap-up Peter Eklund Materials used in the production of these slides are suitably acknowledged and/or where appropriate © the author, the intended use is for educational purposes not for publication or public broadcast or profit.

Upload: eword

Post on 17-Jul-2016

221 views

Category:

Documents


0 download

DESCRIPTION

World Wide Networking University of Wollongong 2004 - Lecture 12

TRANSCRIPT

Page 1: World Wide Networking University of Wollongong 2004 - Lecture 12

WEEK12 - IACT303/ITCS923/MCS9303WEEK12 - IACT303/ITCS923/MCS9303

Web Services, .NET and Subject Wrap-up

Peter Eklund

Materials used in the production of these slides are suitably acknowledged and/or where appropriate © the author, the intended use is for educational purposes not for publication or public broadcast or profit.

Page 2: World Wide Networking University of Wollongong 2004 - Lecture 12

Last Week, Week 11• SVG• RDF• OWL• RSS

• Forgot to say that a major point of the semantic Web is (in many senses) to have “more than one type of HREF”

Page 3: World Wide Networking University of Wollongong 2004 - Lecture 12

This time: .NET is built on the following Internet standards:• HTTP: the communication protocol

between Internet Applications • XML: the format for exchanging data

between Internet Applications (includes DTD XML Schema, XSL etc)

• SOAP: the standard format for requesting Web Services

• UDDI: the standard to search and discover Web Services

Page 4: World Wide Networking University of Wollongong 2004 - Lecture 12

Web Services

http://www-106.ibm.com/developerworks/library/ws-best10/Figure3.gif

Page 5: World Wide Networking University of Wollongong 2004 - Lecture 12

WSDL – Web Services DL• WSDL is a document written in XML.

The document describes a Web service. It specifies the location of the service and the operations (or methods) the service exposes.

WSDLDOC

URI’s

URI’s

URI’s

SOAP envelops

Page 6: World Wide Networking University of Wollongong 2004 - Lecture 12

Web Services are Extensible

WSDL provides a way (in this case) to add another server to the service list that deals provides another service site

Page 7: World Wide Networking University of Wollongong 2004 - Lecture 12

ASP.NET or ASP+ • Currently all .NET stuff is proprietary although MS

claim that Python, PHP and Perl etc will be incorporated (eventually).

• This means you need to have the Internet Information Services (IIS) to do .NET, i.e. you can’t be running Apache and you need the IDE. To run ASP .NET you need a computer capable of running Windows.

• Currently .NET supports C++, C#, Visual Basic, and JScript (The Microsoft version of JavaScript).

• For these reasons we look at the .NET idea as ASP.NET

Page 8: World Wide Networking University of Wollongong 2004 - Lecture 12

ASP.NET - How Does it Work?• When a browser requests an HTML

file, the server returns the file • When a browser requests an ASP file,

IIS passes the request to ASP • ASP engine reads the file, line-by-line,

and executes the scripts in the file • Finally, the ASP file is returned to the

browser as plain HTML • So what?

Page 9: World Wide Networking University of Wollongong 2004 - Lecture 12

ASP example in-line script

Page 10: World Wide Networking University of Wollongong 2004 - Lecture 12

HTML Server controls: Event trapping and dynamic services resolution

Server controls (3 types) • HTML Server Controls - Traditional HTML tags • Web Server Controls - New ASP .NET tags • Validation Server Controls - For input validation

Page 11: World Wide Networking University of Wollongong 2004 - Lecture 12

Server controls (3 types) • HTML Server Controls - Traditional HTML tags • Web Server Controls - New ASP .NET tags • Validation Server Controls - For input validation

Catch and throw events: In the above a Button server is declared in an .aspx file. An event handler for the Click event changes the text on the button.http://www.w3schools.com/aspnet/showasp.asp?filename=demo_button

Page 12: World Wide Networking University of Wollongong 2004 - Lecture 12

Server controls (3 types) • HTML Server Controls - Traditional HTML tags • Web Server Controls - New ASP .NET tags • Validation Server Controls - For input validation

Page 13: World Wide Networking University of Wollongong 2004 - Lecture 12

Events, Validation, Data Binding• Pageload: http://www.w3schools.com/aspnet/showasp.asp?

filename=demo_pageload • First pageload: http://www.w3schools.com/aspnet/showasp.asp?

filename=demo_pageispostback• Radio button input:

http://www.w3schools.com/aspnet/showasp.asp?filename=demo_xml_radio1

Page 14: World Wide Networking University of Wollongong 2004 - Lecture 12

.NET Summary• .NET is Microsoft's new Internet and Web strategy • .NET is NOT a new operating system • .NET is a new Internet and Web based

infrastructure • .NET delivers software as Web Services • .NET is a framework for universal services • .NET is a server centric computing model • .NET will run in any browser on any platform but

you must run IIS and Windows on your server • .NET is based on the newest Web standards

Page 15: World Wide Networking University of Wollongong 2004 - Lecture 12

IACT303 – Lecture Summary

Page 16: World Wide Networking University of Wollongong 2004 - Lecture 12

IACT303 – Tutorial Summary

Page 17: World Wide Networking University of Wollongong 2004 - Lecture 12

IACT303 – Tutorial Summary

Page 18: World Wide Networking University of Wollongong 2004 - Lecture 12

IACT303 – Tutorial Summary

Page 19: World Wide Networking University of Wollongong 2004 - Lecture 12

IACT303 – Tutorial Summary

Page 20: World Wide Networking University of Wollongong 2004 - Lecture 12

IACT303 – Lab Summary• Lab 1 = HTML Forms• Lab 2 = JavaScript and data validation• Lab 3 = Accessing a Database via CGI• Lab 4 = PHP + Database → HTML• Lab 5 = Content Management and XML

Page 21: World Wide Networking University of Wollongong 2004 - Lecture 12

IACT303 – Lab Summary• Lab 1 = HTML Forms• Lab 2 = JavaScript and data validation• Lab 3 = Accessing a Database via CGI• Lab 4 = PHP + Database → HTML• Lab 5 = Content Management and XML

Page 22: World Wide Networking University of Wollongong 2004 - Lecture 12

IACT303 – Lab Summary• Lab 1 = HTML Forms• Lab 2 = JavaScript and data validation• Lab 3 = Accessing a Database via CGI• Lab 4 = PHP + Database → HTML• Lab 5 = Content Management and XML

Page 23: World Wide Networking University of Wollongong 2004 - Lecture 12

IACT303 – Lab Summary• Lab 1 = HTML Forms• Lab 2 = JavaScript and data validation• Lab 3 = Accessing a Database via CGI• Lab 4 = PHP + Database → HTML• Lab 5 = Content Management and XML

Page 24: World Wide Networking University of Wollongong 2004 - Lecture 12

IACT303 – where to now?

IACT303

CSCI262 System Security

CSCI361 Computer Security

CSCI368 Network Security

More Security

Page 25: World Wide Networking University of Wollongong 2004 - Lecture 12

IACT303 – where to now?

IACT303

CSCI213 Java Programming & the Internet

CSCI214 Distributed Systems

CSCI262 System Security

CSCI361 Computer Security

CSCI368 Network Security

CSCI407 Corba and Enterprise Java

CSCI408 Distributed Java

CSCI445 Parallel Computing

More Programming

ITCS431 Advance Web Application Development

Page 26: World Wide Networking University of Wollongong 2004 - Lecture 12

IACT303 – where to now?

IACT303

CSCI213 Java Programming & the Internet

CSCI214 Distributed Systems

CSCI262 System Security

CSCI361 Computer Security

CSCI368 Network Security

CSCI407 Corba and Enterprise Java

CSCI408 Distributed Java

CSCI445 Parallel Computing

IACT304 E-Business

Fundamentals

IACT305 E-Business Technologies

IACT405 Information Technology and Innovation

IACT406 Strategic e-Business Solutions

IACT418 Corporate Network Management

IACT417 Information Management

IACT424 Corporate Network Design and Management

ITCS431 Advance Web Application Development

ITCS432 Web Design

ITCS436 Detailed Design of Integrated Solutions to e-business

ITCS450 Patterns for e-Business

ITCS451 Web Services for Dynamic e-Business

ITCS301 Mark up

languages

More ofEverything!

Page 27: World Wide Networking University of Wollongong 2004 - Lecture 12

References• http://www.w3schools.com/aspnet/

• Good luck!