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
Post a Comment