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

  • SEARCH
  • Home
  • 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 4601224
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T23:47:41+00:00 2026-05-21T23:47:41+00:00

I have a WCF Service which returns an Object-I. The Object-I is an collection

  • 0

I have a WCF Service which returns an Object-I. The Object-I is an collection of List,String X,List. my WCF service runs without any error and returns it but when i call this in my silverlight application, i can’t read this object-I.
Please Help Me

//WCF Service Interface
     [ServiceContract]
        public interface IUserConfiguration
        {
            [OperationContract]
            userlistresponse GetUser();
        }

     [DataContract]
        public class userlist
        {
            [DataMember]
            public string UserID { get; set; }
            [DataMember]
            public string UserName { get; set; }
            [DataMember]
            public string Password { get; set; }
            [DataMember]
            public string User_Type { get; set; }
            [DataMember]
            public string Salutation { get; set; }
            [DataMember]
            public string First_Name { get; set; }
            [DataMember]
            public string Middle_Name { get; set; }
            [DataMember]
            public string Last_Name { get; set; }
            [DataMember]
            public int User_Level { get; set; }
            [DataMember]
            public string Address { get; set; }
            [DataMember]
            public string City { get; set; }
            [DataMember]
            public string State { get; set; }
            [DataMember]
            public string Pincode { get; set; }
            [DataMember]
            public string Landmark { get; set; }
            [DataMember]
            public string Landline1 { get; set; }
            [DataMember]
            public string Landline2 { get; set; }
            [DataMember]
            public string Landline3 { get; set; }
            [DataMember]
            public string Mobile { get; set; }
            [DataMember]
            public string Email { get; set; }
            [DataMember]
            public string Status { get; set; }
            [DataMember]
            public string Token { get; set; }
            [DataMember]
        }

        [DataContract]
        public class ErrorManager
        {
            public string Error_ID { get; set; }
            public string Field { get; set; }
        }       

        [DataContract]
        public class userlistresponse
        { 
            public List<userlist> usersdetails { get; set; }
            public bool Flag { get; set; }
            public List<ErrorManager> Error { get; set; }
        }

//WCF Service Implementation
 public userlistresponse GetUser() 
        {
            userlistresponse ErrorUser = new userlistresponse();
            try
            {
                    DALUsersDetails DUD = new DALUsersDetails();
                    return DUD.GetUserDetails();                
            }
            catch (Exception Ex)
            {
                ErrorUser.Error.Add(new ErrorManager {Error_ID = "SUR0000",Field = Ex.Message.ToString()});
                ErrorUser.Flag = false;
            }
            return ErrorUser;
        }
//DATA ACCESS LAYER Just Returns a List From DataBase

Everything works fine here.and the WCF Service can be called in Silverlight application and can use the method.

//Silverlight Application

 public Searchuser()
        {
            InitializeComponent();
            UserConfigurationClient UserClient = new UserConfigurationClient();                        
            UserClient.GetUserCompleted += new EventHandler<GetUserCompletedEventArgs>(UserClient_GetUserCompleted);
            UserClient.GetUserAsync();
                   }
             void UserClient_GetUserCompleted(object sender, Proto.UserReference.GetUserCompletedEventArgs e) 
        {
            if (e.Result != null)
            {
                Proto.UserReference.userlistresponse user = new userlistresponse();                
                user = e.Result;//Its Just Returns a string.
                if(user.flag == false)

//Here is the Problem- The Object User[userlistresponse] does not shows or exposes the member inside that object.


             {
                           .......................//some code 
             }


            }
        }   

User does not shows or exposes the member in userlistresponse object

  • 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-05-21T23:47:42+00:00Added an answer on May 21, 2026 at 11:47 pm

    If you use [DataContract] for the class you should iclude [DataMember] attribute for all properties which you don’t want to skip be transfered.

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

Sidebar

Related Questions

I have a WCF service that returns a stream object. But for some reason
I have a WCF service that returns a stream object. But for some reason
I have a WCF service which accepts a string as a paramter for one
So I have wcf rest service which succesfuly runs from a console app, if
Let's say I have a WCF service which has a method returning object Person.
Greetings, I have to following problem. I have a WCF Service which runs under
I have a WCF Service which returns some custom objects to a desktop client
I'm building a WCF web service which returns a composite object that looks similar
I have a simple WCF service which has a method that returns a complex
I have created a WCF service which returns IEnumerable<CyberResourceProvisioningAction> . The CyberResourceProvisioningAction type has

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.