I am fairly new to the Silverlight and Web Services, unfortunately I have come across an issue that seems seems to make each one more complicated for me. What I am trying to do is use a Web Service to connect a Silverlight Phone Application with an SQL Server
2008 database. Connecting and getting data from the database is easy, but my issue lies with transferring it back to the Phone Application using the web service.
Currently there are 2 projects - one is the actual Phone Application, and the other is a web application with the ASMX.
In the Phone Application project is a Customer class (basic attributes - id, name, phone number etc), which I want to fill with data from SQL Server using the Web Service. Visual Studio is not letting me directly use the Customer class from the Silverlight
Project in the Web Service, same if I were to create the class in the Web Application and use it in the Silverlight Application.
What I planned on doing was iterating through the data set in the web service and create an XmlDocument, which has been created successfully. The InnerText of this document is:
"<?xml version=\"1.0\" encoding=\"utf-8\"?>
View Complete Post