CS590VC Tutorial 11 Web Service Composition in SL (Advanced architecture)
-
Upload
sabina-miles -
Category
Documents
-
view
222 -
download
0
description
Transcript of CS590VC Tutorial 11 Web Service Composition in SL (Advanced architecture)
![Page 1: CS590VC Tutorial 11 Web Service Composition in SL (Advanced architecture)](https://reader034.fdocuments.us/reader034/viewer/2022052608/5a4d1b8f7f8b9ab0599c059c/html5/thumbnails/1.jpg)
CS590VC – Tutorial 11
Web Service Composition in SL (Advanced architecture)
![Page 2: CS590VC Tutorial 11 Web Service Composition in SL (Advanced architecture)](https://reader034.fdocuments.us/reader034/viewer/2022052608/5a4d1b8f7f8b9ab0599c059c/html5/thumbnails/2.jpg)
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)](https://reader034.fdocuments.us/reader034/viewer/2022052608/5a4d1b8f7f8b9ab0599c059c/html5/thumbnails/3.jpg)
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)](https://reader034.fdocuments.us/reader034/viewer/2022052608/5a4d1b8f7f8b9ab0599c059c/html5/thumbnails/4.jpg)
Part 1
How to build your own web service
![Page 5: CS590VC Tutorial 11 Web Service Composition in SL (Advanced architecture)](https://reader034.fdocuments.us/reader034/viewer/2022052608/5a4d1b8f7f8b9ab0599c059c/html5/thumbnails/5.jpg)
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)](https://reader034.fdocuments.us/reader034/viewer/2022052608/5a4d1b8f7f8b9ab0599c059c/html5/thumbnails/6.jpg)
Add the “web.config” file
![Page 7: CS590VC Tutorial 11 Web Service Composition in SL (Advanced architecture)](https://reader034.fdocuments.us/reader034/viewer/2022052608/5a4d1b8f7f8b9ab0599c059c/html5/thumbnails/7.jpg)
Choose “Web Configuration File”
![Page 8: CS590VC Tutorial 11 Web Service Composition in SL (Advanced architecture)](https://reader034.fdocuments.us/reader034/viewer/2022052608/5a4d1b8f7f8b9ab0599c059c/html5/thumbnails/8.jpg)
Add the XML snippet given in “config_xml.txt” from blackboard
![Page 9: CS590VC Tutorial 11 Web Service Composition in SL (Advanced architecture)](https://reader034.fdocuments.us/reader034/viewer/2022052608/5a4d1b8f7f8b9ab0599c059c/html5/thumbnails/9.jpg)
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)](https://reader034.fdocuments.us/reader034/viewer/2022052608/5a4d1b8f7f8b9ab0599c059c/html5/thumbnails/10.jpg)
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)](https://reader034.fdocuments.us/reader034/viewer/2022052608/5a4d1b8f7f8b9ab0599c059c/html5/thumbnails/11.jpg)
Select “Publish <your web service>”
![Page 12: CS590VC Tutorial 11 Web Service Composition in SL (Advanced architecture)](https://reader034.fdocuments.us/reader034/viewer/2022052608/5a4d1b8f7f8b9ab0599c059c/html5/thumbnails/12.jpg)
Click on the browse button “[…]”
![Page 13: CS590VC Tutorial 11 Web Service Composition in SL (Advanced architecture)](https://reader034.fdocuments.us/reader034/viewer/2022052608/5a4d1b8f7f8b9ab0599c059c/html5/thumbnails/13.jpg)
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)](https://reader034.fdocuments.us/reader034/viewer/2022052608/5a4d1b8f7f8b9ab0599c059c/html5/thumbnails/14.jpg)
Wait for the success notice (might take some time)
![Page 15: CS590VC Tutorial 11 Web Service Composition in SL (Advanced architecture)](https://reader034.fdocuments.us/reader034/viewer/2022052608/5a4d1b8f7f8b9ab0599c059c/html5/thumbnails/15.jpg)
Part 3
Creating a web service middleware
![Page 16: CS590VC Tutorial 11 Web Service Composition in SL (Advanced architecture)](https://reader034.fdocuments.us/reader034/viewer/2022052608/5a4d1b8f7f8b9ab0599c059c/html5/thumbnails/16.jpg)
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)](https://reader034.fdocuments.us/reader034/viewer/2022052608/5a4d1b8f7f8b9ab0599c059c/html5/thumbnails/17.jpg)
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)](https://reader034.fdocuments.us/reader034/viewer/2022052608/5a4d1b8f7f8b9ab0599c059c/html5/thumbnails/18.jpg)
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.