• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

hashtable or hashmap in a web service

 
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm building a C# web service (whatever, that could be in java anyway) and I just realized that I need to send something similar to a hashtable (similar to the hashmap in java) as a response to my web service consumer.


Will that simply work?

As I'm new to the web service world, there might be a trick that I'm not yet aware of.

If it will not work, do you guys have a suggestion on how I could build something similar to a hashtable manually?

Thank you.
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
If you want to test whether your web service conforms to the WS-I Basic Profile (conformance will facilitate interoperability), then you can use the WS-I testing tool that is embedded in soapUI or that can be downloaded separately to examine the WSDL of your web service.
To be more interoperable, I would use an array of items where each item contains a key and a value. If you have a multi-value hashmap, then each item need to contain a key and a list of values.
Hope this helps!
 
Whose rules are you playing by? This tiny ad doesn't respect those rules:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic