java - Talend tRESTClient requires Document data type in schema -


i'm using trestclient call rest service post json string (with records). trestclient component not allow me use custom schema matches string. says:

the method getdocument() undefined type string

it seems trying execute getdocument against schema input schema string not document data type.

if use tmap try convert json string document, error:

type mismatch: cannot convert string document

how 1 convert string document? json string such this:

{"names:[{"fname":"edgar"},{"fname":"jose"},{"fname":"peter"}]} 

you store string in json file , read data json file , use txmlmap component provide input trestclient tfileinputjson -> txmlmap -> trestclien hope :)


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -