Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS590VC – Tutorial 9 Calling Web Services from Second life.

Similar presentations


Presentation on theme: "CS590VC – Tutorial 9 Calling Web Services from Second life."— Presentation transcript:

1 CS590VC – Tutorial 9 Calling Web Services from Second life

2 Things to do today……. Connect to an existing US Zip web service. Call the GetInfoByZIP() method to retrieve information by providing Zip code from SL client Parse the information and display in channel 0 of SL Learn about creating one’s own web service and publishing that to IIS And of course, for me, go to Muddy’s after the class and brood on some “interesting” stuffs

3 What is a “Web Service”? Web Service – A programmable XML-Based service available over the web through SOAP requests which returns results through SOAP responses WSDL – An XML based protocol for information exchange. Jointly developed by Microsoft and IBM. Keywords include “Message Name”, “Port Type”, “Binding Name” and “Service Name”. Popular web services includes Google, Amazon, Ebay, Google Maps, Google Desktop Search, Yahoo Maps, Mappoint, Terra Webservices

4 Using HTTP for invoking web services Web services can be fetched from the internet using llHTTPRequest function. llHTTPRequest invokes the event http_response Returns only raw text (HTML source code) of the web page

5 Calling an existing web service Search for an existing web service in the internet. (A good place to start with can be http://www.webservicex.net/WCF/Default.aspx ) http://www.webservicex.net/WCF/Default.aspx Get the url of the web service and download the LSL script (client): “web service.txt” from blackboard. Paste the url as the value of the sourceURL string variable Attach the service method argument to the url

6 Calling a custom built service Create a service on the.Net platform in C# Publish that service to IIS server under the default website virtual directory Note the IP address of the host Provide access permission to the virtual directory Use the IP in the sourceURL variable as before

7 How to create a web service?

8 Select Language as “Visual C#” and appropriate location to create your project by typing the path or by hitting the browse button HTTP http://kc-sce-class/cs551/group1/<yourhttp://kc-sce-class/cs551/group1/

9 Code for Web Service Type in the below mentioned code, and comment the part which is green in color

10 Publishing the web service - 1

11 Publishing the web service - 2

12 Publishing the web service - 3

13 Publishing the web service - 4

14 Publishing the web service - 5

15 Reference Creating your world – official guide to advanced content creation for second life


Download ppt "CS590VC – Tutorial 9 Calling Web Services from Second life."

Similar presentations


Ads by Google