18
CS590VC – Tutorial 11 Web Service Composition in SL (Advanced architecture)

CS590VC Tutorial 11 Web Service Composition in SL (Advanced architecture)

Embed Size (px)

DESCRIPTION

Architecture of today’s tutorial Part 1: How to build your own web service Part 2: How to publish your web service to the umkc ftp server Part 3: Creating a web service middleware Part 4: Creating a web service composition environment in SL and connecting that to the middleware.

Citation preview

Page 1: CS590VC  Tutorial 11 Web Service Composition in SL (Advanced architecture)

CS590VC – Tutorial 11

Web Service Composition in SL (Advanced architecture)

Page 2: CS590VC  Tutorial 11 Web Service Composition in SL (Advanced architecture)

Three Tier Designing

LSL Client

Web Service 1

Web Service 2

Web Service N

service type request

service response

Middleware Logic

(on .Net Platform)

Middleware(Match-Maker)

reasons the service type &

connects to corresponding service

service connection & response

(over SOAP)

Over HTTP

Page 3: CS590VC  Tutorial 11 Web Service Composition in SL (Advanced architecture)

Architecture of today’s tutorial• Part 1: How to build your own web service

• Part 2: How to publish your web service to the umkc ftp server

• Part 3: Creating a web service middleware

• Part 4: Creating a web service composition environment in SL and

connecting that to the middleware.

Page 4: CS590VC  Tutorial 11 Web Service Composition in SL (Advanced architecture)

Part 1

How to build your own web service

Page 5: CS590VC  Tutorial 11 Web Service Composition in SL (Advanced architecture)

Creating a custom web service (TV Show Schedule)

• Download the file “TV Show schedule.txt” from blackboard.

• Create a new “website project” in MS Visual Studio 2005

• Select ASP.Net Web Service -> location: “File System” -> give a name to your proj (say: tv_schedule)

• Paste the code in the text file as the .cs code.

Page 6: CS590VC  Tutorial 11 Web Service Composition in SL (Advanced architecture)

Add the “web.config” file

Page 7: CS590VC  Tutorial 11 Web Service Composition in SL (Advanced architecture)

Choose “Web Configuration File”

Page 8: CS590VC  Tutorial 11 Web Service Composition in SL (Advanced architecture)

Add the XML snippet given in “config_xml.txt” from blackboard

Page 9: CS590VC  Tutorial 11 Web Service Composition in SL (Advanced architecture)

Part 2

How to publish your web service to the UMKC ftp server

Page 10: CS590VC  Tutorial 11 Web Service Composition in SL (Advanced architecture)

UMKC FTP server

• UMKC has it’s own FTP server. You can connect to it over HTTP through the url:

http://s.web.umkc.edu/<your umkc login>/

Page 11: CS590VC  Tutorial 11 Web Service Composition in SL (Advanced architecture)

Select “Publish <your web service>”

Page 12: CS590VC  Tutorial 11 Web Service Composition in SL (Advanced architecture)

Click on the browse button “[…]”

Page 13: CS590VC  Tutorial 11 Web Service Composition in SL (Advanced architecture)

Choose “Remote Site” -> put http://s.web.umkc.edu/<your umkc login> /<folder_name> in the Web Site Location

Page 14: CS590VC  Tutorial 11 Web Service Composition in SL (Advanced architecture)

Wait for the success notice (might take some time)

Page 15: CS590VC  Tutorial 11 Web Service Composition in SL (Advanced architecture)

Part 3

Creating a web service middleware

Page 16: CS590VC  Tutorial 11 Web Service Composition in SL (Advanced architecture)

Middleware logic• Accepts a service type as a HttpRequest from LSL client.

• Calls the matching web service (either of your custom service “TV Show Schedule” or an existing web service “Airport Information”)

• Download the file “middleware.txt” from blackboard and create another web service application with that.

• Follow the same procedure as earlier. Your middleware is a web service.

Page 17: CS590VC  Tutorial 11 Web Service Composition in SL (Advanced architecture)

Part 4

Creating a web service composition environment in SL and connecting that to the middleware.

Page 18: CS590VC  Tutorial 11 Web Service Composition in SL (Advanced architecture)

The SL environment• Create a vehicle through LSL and mount your avatar.

• Connect your vehicle script to the weather service. Use the script “vehicle.txt” from blackboard.

• The vehicle takes the avatar to any of the two locations (two objects to be created) based on weather decision.

• Use the scripts “trigger1.txt” & “trigger2.txt” behind the two location objects

• The middleware gets a command based on such decision.