Steps for calling Web Service from Silverlight Application


steps follow call web service silverlight application:

1. create silverlight alpha 1.1 application in visual studio codename ‘orcas’

2. create new asp.net web service project .net 3.5 framework

3. uncomment line: [system.web.script.services.scriptservice]

(for step work fine, add reference system.web.extensions dll , add @ using stmt  using system.web.script.services;”)

4. write necessary methods. build web service

5. open iis; create new virtual directory under default web site. set physical path of web service created in above step

6. open silverlight project created in step1. add web reference in project web service hosted in iis in step 5

7.(most important step) open iis; create new virtual directory under default web site (if new web site created in step 5, create virtual directory under new web site only. have because silverlight doesn’t support cross domain calls in version.

8. right click on virtual directory silverlight application. in application settings change execute permissions scripts , executables scripts only

9. write code call web service in silverlight application.

10. browse testpage.html of silverlight project iis.

 



Silverlight  >  Programming Silverlight with .NET – General



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........