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 472297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:04:22+00:00 2026-05-13T00:04:22+00:00

Background: 3-4 weeks experience in Silverlight3/C#/.Net and about 3days worth with the RIA Services

  • 0

Background: 3-4 weeks experience in Silverlight3/C#/.Net and about 3days worth with the RIA Services concept. (most of my previous questions up to date should explain why)

I am doing a test implementation of Microsoft’s RIA services with Silverlight3. This is part of a proof of concept i have to do for a client. So its very basic.
I have figured out how build the Silverlight3 project using RIA services etc. So passing and returning strings and int’s is no problem at the moment.

But i require to return an ArrayList from my Domain Service Class to my SL3 client. But it seems passing back an ArrayList as is, is not permitted. And my limited knowledge of C# does not aid in doing quick type casting/convertions/etc. This server-side function gets an ArrayList which must be returned to the SL3 client, so i have to do something with it to send it client side.

Question:
Does anyone know what should be done to an ArrayList (in c#) to allow a DomainService class function to return it to a calling client/SL3 function?

[NOTE: the majority of my attempts all end in the error: “Service operation named ‘myFunctionName’ does not conform to the required signature. Both return and parameter types must be an entity type or one of the predefined serializable types.”]

Please feel free to request any information you feel would be appropriate.
Thank you in advance.

  • 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-13T00:04:22+00:00Added an answer on May 13, 2026 at 12:04 am

    My apologies for not posting the solution i found. Bosses threw more work at me than i could handle. 🙂
    Please note my solution may not be the best but since my knowledge in SL and RIA services are so new, i guess it may be excused. Initially i wanted to pass back rather complicated arrays from the code provided by our client, but effort and time restraints allowed me to only get it right to convert and return a List.
    Hope this helps in some way.

    Client Side : Silverlight Code in the MainPage.xaml.cs i have a call to retrieve a list of data from the server side, to display in a dropDown list.

    // Function called on load of the SL interface
    // 'slayer' is an object of the Domain Service Class server-side
    // 'this.gidSessionNumber' is just a number used in the demo to represent a session
    public void loadPaymentTypeComboBox()
    {
        InvokeOperation<IEnumerable<string>> comboList = sLayer.getPaymentTypeCombo(this.gidSessionNumber);
        comboList.Completed += new EventHandler(popPaymentCombo_complete);
    }//function loadAllComboBoxes
    
    // Event handler assigned
    public void popPaymentCombo_complete(object sender, EventArgs e)
    {
        InvokeOperation<IEnumerable<string>> obj = (InvokeOperation<IEnumerable<string>>)sender;
        string[] list = obj.Value.ToArray();
    
        // 'paymentTypeDropdown' is the name of the specific comboBox in the xaml file
        paymentTypeDropdown.IsEnabled = true;
    
        // Assign the returned arrayList as itemSource to the comboBox
        paymentTypeDropdown.ItemsSource = list;
    }
    

    In the Domain Service Class i have the associated function:

        [ServiceOperation]
        public List<string> getPaymentTypeCombo(string gidNumber)
        {
            // Build objects from libraries provided by our client
            SDT.Life.LifeCO.clsSystemCreator.CreateSysObjects(gidNumber);
            this.lobjSys = SDT.Life.LifeCO.clsSystemCreator.GetSysObject(gidNumber);
    
            // Rtrieve the ArrayList from the client's code       
            clsTextList comboList= this.lobjSys.lstPaymentType_PaymentQueue;
    
            // Get the length of the returned list
            int cnt= (int)comboList.Count();
    
            // Create the List<string> which will be populated and returned
            List<string> theList= new List<string>();
    
            // Copy each element from the clsTextList to the List<string>
            for (int i = 0; i < cnt;i++)
            {
                string status= comboList.Item(i).Description;
                theList.Add(status);
            }
    
            // return the newly populated List<string>
            return theList;
        }//end function getPaymentTypeCombo
    

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

Sidebar

Related Questions

Background about myself: I have about 3 years experience working in Java/J2EE. I am
Background: I want to show the time and date uptill only 1 week. After
background: I work on an asp.net web application that is on a company intranet.
Background Information Our application reads/writes from 3 components: ASP.NET MVC 3 customer front end
Bit of background, I'm a total lisp noob, only started a few weeks ago,
I have been using Photoshop for about three weeks now, finding it very different
These last two weeks have been my first experience with Castle ActiveRecord, and with
I am new to Java (but have a fair bit of .NET experience). I
Background I admit, this question stems from an ultimate lack of deep understanding of
Background: Our web app uses the jquery.constrain.js plugin to handle data entry in some

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.