15
Views
5
Comments
Solved
Cannot Request arrays to consume a web service
Question

hi there,

I have a structure for a request where RequestData is of type List:

The consume web service is generated using outsystems. Then i populate a request to send to external web service. Unfortunately, the external web service only gets the first two have values, ReffNo and Product, but the List is blank. How it come - the list is blank?

Thank you very much.

2020-06-08 02-42-28
Wasabi
Solution

Ok, thank you Sir,

Find already:

# do NOT assign value like this: requestdata.current.field = "x"... etc

====

Do this below:

- create variable of type RequestDataITEM (NOT RequestData)

- populate that variable

- appendlist(RequestData, RequestDataITEM)

That's IT.

bingo!





2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Pasar,

There's probably a mismatch between what you send and what the external service expects. Are we talking SOAP or REST here? In both cases, you can log what is sent, and examine if it is what the external services wants.

2020-06-08 02-42-28
Wasabi

hi, it is Rest. How to know what actually does our consume web service's request's value sent to external web service?

thank you.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Pasar,

Please read my previous post beyond my question. Then you will see I actually already answered your question ;).

2020-06-08 02-42-28
Wasabi
Solution

Ok, thank you Sir,

Find already:

# do NOT assign value like this: requestdata.current.field = "x"... etc

====

Do this below:

- create variable of type RequestDataITEM (NOT RequestData)

- populate that variable

- appendlist(RequestData, RequestDataITEM)

That's IT.

bingo!





2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Pasar, 

It's possible to assign the current of a list in e.g. a for each, or in a screen action triggered by a table records, but it's not possible to assign the current, then list append the current to the list.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.