How to call REST web service and get response in talend
I have REST web Service URL- http://XYZ:8080/WebApp/search/service
If I send following json format data using Advanced Rest Client(Chrome-extension) then I get O/p as below-
Input- {
"query": {
"text": "i lOVE inDIA",
"service":
}
}
Hi rhall,
One more doubt...Now I got response in string(json/xml). but how to extract particular tag's data from that string on the fly?
eg-
Input-
{
"query": {
"text": "i lOVE inDIA",
"service":
}
}
Output-
{"response":{"ner":}]}}
now here I want only PERSON from response string, so how to extract that?
Use the tExtractJSONFields component. You will need to look at the documentation for this as it is not always very straight forward working with the tExtract components.
Hi rhall,
I have scenario like below-
col1 col2
1 a
1 b
1 c
2 p
2 q
3 x
3 y
3 z
I want Output as-
col1 col2
1 array={a,b,c}
2 array={p,q}
3 array={x,y,z}
I want to store col2 in array object for that i follow above instruction given by Link-
https://www.talendforge.org/forum/viewt … 81#p165081.
but I am getting O/P like below-
col1 col2
1
1 1 2 2 3 3 3