For performance reasons, the preferred to call ServiceStack services for Silverlight clients
is using standard DataContracts via the XML endpoint at:
~/servicestack/xml/reply/{ServiceName}
//Create a XmlServiceClient passing in the baseUrl where your services are hosted.
this.ServiceClient = new XmlServiceClient(
"http://localhost/ServiceStack.Examples.Host.Web/ServiceStack");
var request = new GetFactorial { ForNumber = 3 };
//Note: As this is a synchronous request it should always be run in a backround thread.
this.ServiceClient.Send<GetFactorialResponse>(request, response => Console.WriteLine(response.Dump()));
The complete source code for this example is
viewable online
or available to download as zip package from the link below: