Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8704367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:05:15+00:00 2026-06-13T03:05:15+00:00

I have the following Wcf Data Service: public class WcfDataService : DataService<WcfDataServiceContext> { public

  • 0

I have the following Wcf Data Service:

public class WcfDataService : DataService<WcfDataServiceContext>
{
    public static void InitializeService(DataServiceConfiguration config)
    {
        config.SetEntitySetAccessRule("*", EntitySetRights.All);
        config.SetServiceOperationAccessRule("*", ServiceOperationRights.All);
        config.UseVerboseErrors = true;
    }

    [WebGet]
    public IQueryable<Person> GetPeopleByName(string name)
    {
        WcfDataServiceContext context = this.CurrentDataSource;

        var match = from p in context.People
                    where p.FirstName == name
                    select p;

        return match;
    }

I can access the custom method from the browser like this:

http://127.0.0.1:8080/DataService/WcfDataService.svc/GetPeopleByName?name='Daniel'

How can I call that method and get that list of Person from a Silverlight application?

I’m using Visual Studio 2012, Silverlight 5, .NET Framework 4.0.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T03:05:16+00:00Added an answer on June 13, 2026 at 3:05 am

    As far as I remember whe using Silverlight you cannot connect to a different server than the one the Silverlight app came from so you would just use a relative Uri. If you would like to use WCF Data Services client you can take a look here: http://forums.silverlight.net/t/208481.aspx – there is a code snippet that shows it. However AFAIK WCF Data Services client does not support Service Operation so you may need to use XmlReader to be able to query and parse the response of the GetPeopleByName function.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given that I have the following WCF service: class LookUpService { public List<County> GetCounties(string
I have an ADO.NET Data service that I run through WCF: public class AdminService
I have the following data model: I am writing a WCF service that needs
I have the following WCF DataContract: [DataContract] public class Occupant { private string _Name;
I have following method in wcf webenabled service Public Person AddPerson(Person p); As of
I have a the following server side app.config for a WCF service: <system.serviceModel> <bindings>
I have an AJAX-enabled WCF service with the following signature: [OperationContract] [WebGet] public JQGridContract
Greetings, I have to following problem. I have a WCF Service which runs under
I have a WCF Service with the following requirements: a) The client requests a
Consider the following very basic WCF service implementation: public enum TransactionStatus { Success =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.