#1 2011-09-22 10:11:30

pouniok
New member
Registered: 2011-09-16
Posts: 7

WebService component method arguments sent in bad order due to HashMap

Hi

When using the WebService component, the parameters are sent in a random order because they are added in a HashMap.

Wouldn't it be better to add them in a LinkedHashMap so they would be sent in the user defined order ?

For now, when talend call my web service, the arguments of the method called are totally in random order.

Code:

java.util.Map<String, Object> paramMap_tWebService_1 = new java.util.HashMap<String, Object>();
Object inputValueObject_tWebService_1;
javax.xml.namespace.QName anyTypeQName_tWebService_1;

inputValueObject_tWebService_1 = row4.params;
paramMap_tWebService_1.put("parameters.params", inputValueObject_tWebService_1);

inputValueObject_tWebService_1 = row4.timestamp;
paramMap_tWebService_1.put("parameters.timestamp", inputValueObject_tWebService_1);

inputValueObject_tWebService_1 = row4.user;
paramMap_tWebService_1.put("parameters.user", inputValueObject_tWebService_1);
                    
inputValueObject_tWebService_1 = row4.signature;
paramMap_tWebService_1.put("parameters.signature", inputValueObject_tWebService_1);

Offline

#2 2011-09-29 09:14:55

pouniok
New member
Registered: 2011-09-16
Posts: 7

Re: WebService component method arguments sent in bad order due to HashMap

Fixed in 4.2.3

Offline

#3 2012-06-27 16:47:16

bouty
Guest

Re: WebService component method arguments sent in bad order due to HashMap

hello ,

i'm actually working on talend project using a webservice of Magento !

i'm trying to do a call but i'm facing a lot of problem.

i'm using tWebservice   as shown here  (MySql database------->tMap------>twebservice)

i don't know how to fill the input and output mapping of my webservice i have to fill ressource path and args ) but i don't know how

if you have  any idea how to fill those fields it will be welcom

could you please show me the schema followed for your post , where do we have to put the java Code ?

thanks a lot  in advance for your help

Board footer

Powered by FluxBB