Six Stars

Send List Webservice Rest

Hi, 

 

This is how I send the data : 

 

1.JPG

 

This is how I receive the data :

 

 

picture 2 :

 

1.JPG

 

This is how I would like to receive the data, inside an array with the  [    ]

 

  • {"root":{"list":[{"facturacion":"8.50","nmaquina":"2003015","servicios":"14.29","ubicacion":"ANDEN","ultimoarticulo":"AGUA"}] }}

 

When I have more than one row to send, the webservice send the data using an array with the [    ]  . But when I have only one row to send the webservice is sending them without using an array just like picture 2. I want to have the data inside [    ] even if I have only one element to send.

2 REPLIES
Six Stars

Re: Send List Webservice Rest

It seems to be an issue from 2013, I found this topic : https://www.talendforge.org/forum/viewtopic.php?id=31107

 

This is exactly what happens to me :

 

1.JPG

Moderator

Re: Send List Webservice Rest

Hello,

Here is the related jira issue mentioned in this referenced topic.

https://jira.talendforge.org/browse/TESB-16205

Could you please take a look at tRESTResponse and tRESTClient components which can use XML to JSON auto-conversion feature?



Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.