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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T06:48:07+00:00 2026-05-21T06:48:07+00:00

I am creating a webservice that essentially remotes some database calls (so that they

  • 0

I am creating a webservice that essentially remotes some database calls (so that they happen over HTTP rather than the default SQL Server port of 1433).

Essentially what I have been trying to do is pass a number of parameters to a WebMethod on an ASMX WebService. The parameters are:

  • A string representing the ID of the
    query to be execute.
  • A DataTable
    representing the structure of the
    table that the information should be
    filled into.
  • A dictionary of
    parameters (i.e. name value pairs) to
    be run with the query represented by
    the ID above to get the expected
    results.
  • A boolean which is
    unimportant to this question

Now the problem I am having is that the string for the ID, the DataTable and the boolean are all coming through just fine, but the Dictionary does not. I know that by default, anything implementing IDictionary is not supported by XMLSerializing, so I have converted the dictionary into two object arrays, one for the keys, and one for the values.

What I’m sending through from the Client appears to be correct. The SOAP packet contains the correct values for both the keys array and the values array.

What I’m receiving on the WebService end (I can break in the WebMethod as it is called) is null for both of the arrays. Not an empty array, just null.

I have tried a lot of things in order to get these parameters across to the webservice (coded a SerializableDictionary, attempted to jam the key/value pairs into a data table, attempted to simply use two string arrays and then cast the results back into the correct types on the WebService end) but I’ve had absolutely no luck whatsoever.

So I suppose in summary, my question is:

Does anyone know a good way to successfully send Name-Value pairs where Name is a string, and Value can be almost any object type, but will always be a serializable object to a WebService WebMethod, such that they Name-Values are correctly interpreted on the service side.

  • 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-21T06:48:08+00:00Added an answer on May 21, 2026 at 6:48 am

    I’m not entire sure what the problem was (it may have been my own
    stupidity) but I started from scratch again, and implemented the
    solution with 2 arrays (one of keys (strings) and one of objects
    (values)) and it worked as expected.

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

Sidebar

Related Questions

This question is regarding the ASP.NET webservice that i am creating using the DAL-BLL
I'm creating a Windows Phone 7 application that will consume an exposed webservice. For
I am working on creating a .asmx webservice to meet the specific needs of
If I was a webservice, such as Twitter, how does creating an API for
While creating classes in Java I often find myself creating instance-level collections that I
I have some written a number of unit tests that test a wrapper around
Hello i am creating a small webpage that give our users an interface to
I'm creating a client to a WebService and one of the methods of the
I've got an existing website (based on .net 1.1), that calls web-services (based on
Creating a patch is very easy in SubVersion, With Tortoise, you right-click and select

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.