Upload
sabina-miles
View
222
Download
0
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
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
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.
Part 1
How to build your own web service
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.
Add the “web.config” file
Choose “Web Configuration File”
Add the XML snippet given in “config_xml.txt” from blackboard
Part 2
How to publish your web service to the UMKC ftp server
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>/
Select “Publish <your web service>”
Click on the browse button “[…]”
Choose “Remote Site” -> put http://s.web.umkc.edu/<your umkc login> /<folder_name> in the Web Site Location
Wait for the success notice (might take some time)
Part 3
Creating a web service middleware
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.
Part 4
Creating a web service composition environment in SL and connecting that to the middleware.
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.