Hi all,
I'm having problems passing a hash table from my soap client to a soap service running on my server. Here's the code on the client side:
(code for hashtable):
Hashtable firstname = new Hashtable();
firstname.put("fname1", "Hans");
firstname.put("fname2", "Henrik");
(code for adding the hashtable to the vector 'params'):
params.addElement( new Parameter( "fname", Hashtable.class, firstname, null ) );
(And my code for the service method I'm calling):
public String getSalutation( Hashtable fname )
{
String firstname1 = (String)fname.get("fname1");
String firstname2 = (String)fname.get("fname2");
String salutation = "Hello " + firstname1 + " " + firstname2 + " . How are you today?";
return salutation;
}
This works fine when I'm passing a string, but for hashtables I get the eror:
"Exception while handling service request: TestTestService.getSalutation(java.util.Hashtable) -- no signature match"
Hashtables, like Strings don't need a custom type mapping, right? So what am I missing here? Thanks in advance for any help.
Get your FREE download of MSN Explorer at http://explorer.msn.com