Hi -

I noticed someone posted a question last month about trying to use Axis to access a legacy SOAP server that takes a Hashtable parameter. I'm having the same problem, and there don't seem to be any examples of Hashtable parameters in the samples.

My old SOAP call set a parameter like this:

Vector params = new Vector();
params.addElement(new Parameter("args", Hashtable.class,
subparams, Constants.NS_URI_SOAP_ENC));
call.setParams(params);

where subparams is my Hashtable.

In Axis, I've tried this:

call.addParameter("args", org.apache.axis.Constants.SOAP_MAP,
javax.xml.rpc.ParameterMode.IN);
call.invoke(new Object[] { subparams });

but it throws a Mapping exception.

Has anyone else made this work? Is the only solution to change Hashtable to Hashmap on the SOAP server side?

Thanks in advance,

Lajos

--
galatea.com
Cocoon training, consulting & support

Reply via email to