Send List Webservice Rest

Highlighted
Seven 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.

Seven 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.

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read