How to add idTypes with the importData service?

We want to add idTypes to the list in the Trading networks console. We are using the importData service. It has idTypes as one of the input data. We have created a hashtable with a string as the key and an Integer as the value. Still we get a classcast exception. Why is this? How should we construct the input to the importData service so it works?


From TN Built-in services guide:

The and services are intended to be used together. The
structure of the data output from service matches the structure of the data
input variable for service. can be used to add profile external ID’s. If you are working with wM EDI, there is a list already available which you can select from via wM EDI homepage.