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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:20:35+00:00 2026-05-11T05:20:35+00:00

Using ASP.NET WebServices, by default you can’t pass any IDictionary objects, because xml serialization

  • 0

Using ASP.NET WebServices, by default you can’t pass any IDictionary objects, because xml serialization for IDictionaries isn’t supported. I have found various ways to serialized dictionaries (http://weblogs.asp.net/pwelter34/archive/2006/05/03/444961.aspx, http://blogs.msdn.com/psheill/archive/2005/04/09/406823.aspx, http://www.mattberther.com/2004/06/14/serializing-an-idictionary-object/) but, I can’t find any way to hook this into the Asp.NET web methods.

Is there a way to hook it up so that I can use IDictionaries with WebMethods?

  • 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. 2026-05-11T05:20:35+00:00Added an answer on May 11, 2026 at 5:20 am

    depends on how you are calling these methods, we use the .net 2.0 method with ‘web references’ and you will notice that the WSDL generated class is a partial, we create a (web reference name).cs file and have something like:

     public partial class WebReferenceName : System.Web.Services.Protocols.SoapHttpClientProtocol  {     // Overload the WSDL generated method that only takes a simple array     public ReturnType MethodName(List  collection)     {         // redirect the call to the wsdl generated method with the appropriate parameters         return this.MethodName(collection.ToArray());     } } 

    Overloading will allow you to call the method name with either type of collection

    At the web service side you can convert from a simple collection back to a more powerful collection, most likely with the use of that more powerful collections ctor. One of the ctors will probably consume a simple collection.

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

Sidebar

Related Questions

I've created an ASP.NET WebService that is to be consumed using ASP.NET Ajax. The
Im just wondering how to go about using FormAuthentication in asp.net In our project
Using this tutorial: http://dotnetslackers.com/articles/ajax/Using-jQuery-with-ASP-NET.aspx The web service is invoked such as Service1.asmx/HelloToYou The default
I have an ASP.NET webservice with along the lines of: [WebService(Namespace = http://internalservice.net/messageprocessing)] [WebServiceBinding(ConformsTo
We have an ASP.NET web application running in IIS that uses the SoapHttpClientProtocol class
I have written an ASP.NET MVC application that allows the user to specify their
I'd like to glue my custom permissioning system into a new ASP.NET MVC app.
Ok, so I created a test project just to verify that jQuery AJAX works
I am kind of stumped with this one, and was hoping I could find

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.