20
.Net Framework Information Integration on the Web Spring 2003 February 3, 2003

Net Framework · C# or VB.NET What We Are Going to Cover About .Net • Develop Web Services • Consume Web Services • Build simple applications with C#, VS.NET. Web Services

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Net Framework · C# or VB.NET What We Are Going to Cover About .Net • Develop Web Services • Consume Web Services • Build simple applications with C#, VS.NET. Web Services

.Net Framework

Information Integration on the WebSpring 2003

February 3, 2003

Page 2: Net Framework · C# or VB.NET What We Are Going to Cover About .Net • Develop Web Services • Consume Web Services • Build simple applications with C#, VS.NET. Web Services

Wrapper &AgentRunner

Information Integration –Wrapper View

Web

Wrapper &AgentRunnerWeb

Wrapper &AgentRunnerWeb Web

Apache Tomcat

Page 3: Net Framework · C# or VB.NET What We Are Going to Cover About .Net • Develop Web Services • Consume Web Services • Build simple applications with C#, VS.NET. Web Services

Web Service

Information Integration – Web Services View

Web Service

Web ServiceWeb

Web Server

Glue code

Page 4: Net Framework · C# or VB.NET What We Are Going to Cover About .Net • Develop Web Services • Consume Web Services • Build simple applications with C#, VS.NET. Web Services

What’s the Difference?

• Web services– Standard protocols, WSDL, SOAP…– “Easy” integration using commercial tools– Restricted to web sites that are web services– Less than 0.01% of web is in web service format

• Wrappers– Can support more web sites compared to web services– Integration using academic tools may be little harder

compared to commercial tools for web services– No standard protocols

Page 5: Net Framework · C# or VB.NET What We Are Going to Cover About .Net • Develop Web Services • Consume Web Services • Build simple applications with C#, VS.NET. Web Services

Overview

• Web services• Web services protocols• Develop web services• Consume web services

Page 6: Net Framework · C# or VB.NET What We Are Going to Cover About .Net • Develop Web Services • Consume Web Services • Build simple applications with C#, VS.NET. Web Services

What We Are Not Going to Cover About .Net

• We don’t expect you to become experts at C# or VB.NET

What We Are Going to Cover About .Net

• Develop Web Services• Consume Web Services• Build simple applications with C#, VS.NET

Page 7: Net Framework · C# or VB.NET What We Are Going to Cover About .Net • Develop Web Services • Consume Web Services • Build simple applications with C#, VS.NET. Web Services

Web Services Defined

• Definition– According to IBM “web services are self-

contained, modular applications that can be described, published, located, and invoked over a network, generally, the world wide web”

– According to Microsoft “a web service is programmable application logic, accessible using standard internet protocols”

Page 8: Net Framework · C# or VB.NET What We Are Going to Cover About .Net • Develop Web Services • Consume Web Services • Build simple applications with C#, VS.NET. Web Services

Web Services: Major Protocols

• XML• SOAP• WSDL• UDDI

Page 9: Net Framework · C# or VB.NET What We Are Going to Cover About .Net • Develop Web Services • Consume Web Services • Build simple applications with C#, VS.NET. Web Services

Developing .Net Framework Web Service

Hands on LabCreate Hello World Web ServiceDevelop a simple web service that

sends a message Hello World.

Page 10: Net Framework · C# or VB.NET What We Are Going to Cover About .Net • Develop Web Services • Consume Web Services • Build simple applications with C#, VS.NET. Web Services

Creating Hello World Web Service

When VS.NET comes up click on new project to beginTip: VS.NET can make machine run really slow, be patient

Page 11: Net Framework · C# or VB.NET What We Are Going to Cover About .Net • Develop Web Services • Consume Web Services • Build simple applications with C#, VS.NET. Web Services

Creating Hello World Web Service (Cont’d)

Pick Visual C# projects and select ASP.NET Web ServiceTip: Remember the location of your web service, also make sure IIS

is running on the machine.

Page 12: Net Framework · C# or VB.NET What We Are Going to Cover About .Net • Develop Web Services • Consume Web Services • Build simple applications with C#, VS.NET. Web Services

Creating Hello World Web Service (Cont’d)

You will see the standard VS.NET IDE, click on switch to code view to see the code behind the web service

Page 13: Net Framework · C# or VB.NET What We Are Going to Cover About .Net • Develop Web Services • Consume Web Services • Build simple applications with C#, VS.NET. Web Services

Creating Hello World Web Service (Cont’d)

Uncomment the four lines that have code for Hello World method.

Page 14: Net Framework · C# or VB.NET What We Are Going to Cover About .Net • Develop Web Services • Consume Web Services • Build simple applications with C#, VS.NET. Web Services

Developing .Net Framework Web Service

Hands on LabCreate Hello World Web ServiceLet’s See Web Service in Action

Page 15: Net Framework · C# or VB.NET What We Are Going to Cover About .Net • Develop Web Services • Consume Web Services • Build simple applications with C#, VS.NET. Web Services

Hello World Web Service

• What just happened?– VS.NET created test page for hello world– VS.NET also created WSDL for hello world– VS.NET also enabled hello world to ‘talk’

SOAP, WSDL and XML over HTTP• Why do we care about WSDL?

– WSDL can be used by programs like VS.NET or users to integrate our web service with their apps or web services

Page 16: Net Framework · C# or VB.NET What We Are Going to Cover About .Net • Develop Web Services • Consume Web Services • Build simple applications with C#, VS.NET. Web Services

Web Services

• Building blocks for building applications that integrate information

Geocoded Restaurant List

with Ratings

Name, Address, Lat, Long, Rating

RatingsRatingGeocoded

Restaurant ListName, Address, Lat, Long

Restaurant List Name, Address

City, State

GeocodeLat, Long

Address

Page 17: Net Framework · C# or VB.NET What We Are Going to Cover About .Net • Develop Web Services • Consume Web Services • Build simple applications with C#, VS.NET. Web Services

Integrating Web Services Using Visual Studio.Net

Hands on LabCalculator Example

Develop a windows application that accepts two numbers and an

operation and calls appropriate web service to provide the result

Page 18: Net Framework · C# or VB.NET What We Are Going to Cover About .Net • Develop Web Services • Consume Web Services • Build simple applications with C#, VS.NET. Web Services

Integrating Web Services Using Visual Studio.Net

Hands on LabCalculator Example

Let’s See the Application in Action

Page 19: Net Framework · C# or VB.NET What We Are Going to Cover About .Net • Develop Web Services • Consume Web Services • Build simple applications with C#, VS.NET. Web Services

Conclusion

• Issues– Web services coverage– Web services discovery– Object identification– Web service content description

• Solutions– Web services discovery

• Directory services, e.g. UDDI– Web service content description

• Resource description framework(RDF), semantic web ??– Object identification

• Active learning techniques ??

Page 20: Net Framework · C# or VB.NET What We Are Going to Cover About .Net • Develop Web Services • Consume Web Services • Build simple applications with C#, VS.NET. Web Services

Conclusion (Cont’d)

• More information on .Net framework– http://msdn.microsoft.com/library/ click on .Net

development– http://www.gotdotnet.com

• Questions, comments?