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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:42:31+00:00 2026-05-12T17:42:31+00:00

Im trying to send a List of Items with generic Keys and Value Types

  • 0

Im trying to send a List of Items with generic Keys and Value Types to a asp.net webservice.
How can i do this?
I tried it with List<Dictionary<String, String>>, but this doens’t work. I do not get an exception, but when i break in the webserivice, my collection is null.
The Data could look like this:
{"Data":{"fieldtype":"integer","isrequired":true,"isrequirederror":"Invalid Data"}}.
But as i said, the Keys are generic, sometimes there are more properties, sometimes not.

Thx alot

This post couldn’t help my btw:
How to send a hashtable to an asmx webservice?

  • 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-12T17:42:31+00:00Added an answer on May 12, 2026 at 5:42 pm

    You are going to have hard times with SOA and WCF in particular if you want to introduce any kind of generics in your service – starting from serialization/deserialization issues and finishing interoperability issues.

    Don’t use generic parameters. Hashtable (or Dictionary) makes sense only within in-process usage due to read/write operations performance. If you want to transmit something in such format over the wire, use something like the following structure:
    List of pairs (string, string).

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

Sidebar

Related Questions

I'm using asp.net mvc2 and trying to send a list of json objects with
I am trying to send the clicked value of a dropdown list to my
I am trying to send a jquery sortable list of items to my MVC
I am trying to send a model to ASP.NET MVC controller action, but for
I'm trying to send a Python list in to client side (encoded as JSON).
I'm trying to send email to Active Directory distribution groups. I know you can
I'm trying to create a list of recipients to send in an external request
Anyone here who has experience with using Exchange webservice. I am trying to send
Im already 5 days trying to make jquery drag and drop with asp.net c#
I am trying to submit all the items in a select list to an

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.