You are not logged in.
Announcement
Unanswered posts
|
Pages: 1

I have a job that uses tOpenbravoERPInput component, which calls the REST Web service available at: "http://192.168.202.128/openbravo/ws/dal/Product/"+ context.ID
This returns an XML like this (captured via tFileOutputXML) :
<Openbravo> <Product> <id>F2BEBFC542E646B2ABC48DBDF5318C59</id> <client>000000002B81ED3D012B8270D1B30019;ADClient;MyCompany;;</client> ... ... ... </Product> </Openbravo>
whereas if I execute the same REST url from Firefox plugin POSTER(https://addons.mozilla.org/en-US/firefox/addon/2691/), I get the following result:
<?xml version="1.0" encoding="UTF-8"?>
<ob:Openbravo xmlns:ob="http://www.openbravo.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Product id="F2BEBFC542E646B2ABC48DBDF5318C59" identifier="ALTIMA-LLC-FS">
<id>F2BEBFC542E646B2ABC48DBDF5318C59</id>
<client id="000000002B81ED3D012B8270D1B30019" entity-name="ADClient" identifier="MyCompany"/>
...
...
...
</Product>
</ob:Openbravo>Questions are
1. Why does the Talend Component tFileOutputXML lose or modify the attributes? In the example above, we lost the id and identifier attributes for PRODUCT and CLIENT tags, though their values are retained as a string.
2. Is this by design or a bug?
3. Is there a work around?
4. Is there a way to capture XML output from a component as it is?
Please help - I'm evaluating talend for a new project and could use your responses to convince my management to stick with Talend.
Thank you.
Last edited by dministrator (2010-10-18 23:13:56)
Offline

Hello...Does any one else have a similar problem and was able to work-around this? Please share.
Thank you.
Offline

If the REST webservice is available throught the GET or POST method, then you can use the tFileFetch to directly download the content of the result and save it as a file on your local file system.
Else you will have to wait for a tRest component.
Offline
Pages: 1