One Star

get xml file via http-request (wget)

Hi,
I need to retrieve data from a web-service. With wget it works as shown here:
wget --post-file=in.xml --output-document=out.xml "http://<ip>/mi/xmlInterfaceRequest.do?user=<user>pwd=<pwd>"
(the out.xml can be processed subsequently with a tFileInputXML).
How can I carry out this request with TOS?
I checked tFileFetch, tXMLRPCInput and tSOAP but none of them seems to be useful.
Can anybody give a hint?
Thanks
Guenter
9 REPLIES
One Star

Re: get xml file via http-request (wget)

Really nobody with knowledge about this matter?
One Star

Re: get xml file via http-request (wget)

I've been looking for a solution for this as well.
Hopefully someone can help us out!
One Star

Re: get xml file via http-request (wget)

The fallback approach is
- a tSystem-call with a pure wget-call and a subsequent tFileInputXML
or
- a script outside of TOS which starts the TOS job afterwards.
But I'd really prefer an integrated TOS-solution!
I just reviewed tFileFetch and tXMLRPCInput, but there is no way to post a file to the web-service.
One Star

Re: get xml file via http-request (wget)

Hi,
We asked Talend following the recent webinar on tFileFetch but did not get any answers. I just asked them to post the answer here directly.
So far, we will be using httpclient to make our calls programmatically.
Best Regards,
Daniel
Employee

Re: get xml file via http-request (wget)

Hi,
Did you try the tSOAP component ?
HTH,
One Star

Re: get xml file via http-request (wget)

Hi mhirt,
Thanks for the suggestion. However, this is for a RESTful web service (kind of XML over HTTP), without SOAP envelopes. I think this is not possible yet on tFileFetch, but I guess it could be a good enhancement.
Regards,
Daniel
Employee

Re: get xml file via http-request (wget)

Hi All,
The component you're looking forward is called the tSOAP (available from the version 4.1).
Best regards.
One Star

Re: get xml file via http-request (wget)

Hi cantoine,
It looks like tSOAP is for SOAP web services. How to make it work for RESTful web services (simple XML over HTTP)
Thanks,
Daniel
One Star

Re: get xml file via http-request (wget)

Yes, correctly. Pure XML in both input- and output-file (no SOAP envelopes et cetera).