<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [resolved] File as service input parameter in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-as-service-input-parameter/m-p/2229074#M20122</link>
    <description>Hi, 
&lt;BR /&gt;I have to implement this use case: 
&lt;BR /&gt;A dotnet program -----&amp;gt; Esb Service ----&amp;gt; ORACLE Database 
&lt;BR /&gt;The dotnet program collect data from user. Among input data there is a File path, then I convert this file to a byte array. 
&lt;BR /&gt;I create a service with Talend ESB which accept a base64Binary as input. 
&lt;BR /&gt;I passed the file converted as a binary of byte to the service. 
&lt;BR /&gt; 
&lt;PRE&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="monospace"&gt;&amp;lt;wsdl:definitions&amp;nbsp;xmlns:xsd="http://www.w3.org/2001/XMLSchema"&amp;nbsp;xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"&amp;nbsp;xmlns:tns="http://www.talend.org/service/"xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"&amp;nbsp;name="BytesReaderService"&amp;nbsp;targetNamespace="http://www.talend.org/service/"&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="monospace"&gt;&lt;BR /&gt;&amp;lt;wsdl:types&amp;gt;&lt;BR /&gt;&amp;lt;xsd:schema&amp;nbsp;xmlns:xsd="http://www.w3.org/2001/XMLSchema"&amp;nbsp;xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"&amp;nbsp;xmlns:tns="http://www.talend.org/service/"xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"&amp;nbsp;targetNamespace="http://www.talend.org/service/"&amp;gt;&lt;BR /&gt;&amp;lt;xsd:element&amp;nbsp;name="BytesReaderServiceOperationRequest"&amp;gt;&lt;BR /&gt;&amp;lt;xsd:complexType&amp;gt;&lt;BR /&gt;&amp;lt;xsd:sequence&amp;gt;&lt;BR /&gt;&amp;lt;xsd:element&amp;nbsp;name="in"&amp;nbsp;type="xsd:base64Binary"/&amp;gt;&lt;BR /&gt;&amp;lt;/xsd:sequence&amp;gt;&lt;BR /&gt;&amp;lt;/xsd:complexType&amp;gt;&lt;BR /&gt;&amp;lt;/xsd:element&amp;gt;&lt;BR /&gt;&amp;lt;xsd:element&amp;nbsp;name="BytesReaderServiceOperationResponse"&amp;gt;&lt;BR /&gt;&amp;lt;xsd:complexType&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt;Now I need to consume this byte array as an input file or stream in my service. 
&lt;BR /&gt;Any idea to do this ? 
&lt;BR /&gt;or is there an other way to send a file as a service input parameter? 
&lt;BR /&gt;Please help ! 
&lt;BR /&gt;Thank you in advance</description>
    <pubDate>Fri, 26 Dec 2014 09:48:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-12-26T09:48:37Z</dc:date>
    <item>
      <title>[resolved] File as service input parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-as-service-input-parameter/m-p/2229072#M20120</link>
      <description>Hi,&lt;BR /&gt;I have to create a service which has as input a text file.&lt;BR /&gt;Text File ---&amp;gt; ESB Service ------&amp;gt; Oracle Database&lt;BR /&gt;Is there a file type accepted as &amp;nbsp;input in talend ESB service ?&lt;BR /&gt;or should I convert the file content as XML data .&lt;BR /&gt;Any idea, please advise&lt;BR /&gt;Many thanks</description>
      <pubDate>Sat, 16 Nov 2024 11:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-as-service-input-parameter/m-p/2229072#M20120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] File as service input parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-as-service-input-parameter/m-p/2229073#M20121</link>
      <description>Hi&amp;nbsp;
&lt;BR /&gt;If you use tESBRequestProvider to build a SOAP webservice, the component&amp;nbsp;requires a document as input request, read the file content and convert the data to a document on&amp;nbsp;tXMLMap, and then pass it to webservice as input request.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 24 Dec 2014 14:21:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-as-service-input-parameter/m-p/2229073#M20121</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-24T14:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] File as service input parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-as-service-input-parameter/m-p/2229074#M20122</link>
      <description>Hi, 
&lt;BR /&gt;I have to implement this use case: 
&lt;BR /&gt;A dotnet program -----&amp;gt; Esb Service ----&amp;gt; ORACLE Database 
&lt;BR /&gt;The dotnet program collect data from user. Among input data there is a File path, then I convert this file to a byte array. 
&lt;BR /&gt;I create a service with Talend ESB which accept a base64Binary as input. 
&lt;BR /&gt;I passed the file converted as a binary of byte to the service. 
&lt;BR /&gt; 
&lt;PRE&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="monospace"&gt;&amp;lt;wsdl:definitions&amp;nbsp;xmlns:xsd="http://www.w3.org/2001/XMLSchema"&amp;nbsp;xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"&amp;nbsp;xmlns:tns="http://www.talend.org/service/"xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"&amp;nbsp;name="BytesReaderService"&amp;nbsp;targetNamespace="http://www.talend.org/service/"&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="monospace"&gt;&lt;BR /&gt;&amp;lt;wsdl:types&amp;gt;&lt;BR /&gt;&amp;lt;xsd:schema&amp;nbsp;xmlns:xsd="http://www.w3.org/2001/XMLSchema"&amp;nbsp;xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"&amp;nbsp;xmlns:tns="http://www.talend.org/service/"xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"&amp;nbsp;targetNamespace="http://www.talend.org/service/"&amp;gt;&lt;BR /&gt;&amp;lt;xsd:element&amp;nbsp;name="BytesReaderServiceOperationRequest"&amp;gt;&lt;BR /&gt;&amp;lt;xsd:complexType&amp;gt;&lt;BR /&gt;&amp;lt;xsd:sequence&amp;gt;&lt;BR /&gt;&amp;lt;xsd:element&amp;nbsp;name="in"&amp;nbsp;type="xsd:base64Binary"/&amp;gt;&lt;BR /&gt;&amp;lt;/xsd:sequence&amp;gt;&lt;BR /&gt;&amp;lt;/xsd:complexType&amp;gt;&lt;BR /&gt;&amp;lt;/xsd:element&amp;gt;&lt;BR /&gt;&amp;lt;xsd:element&amp;nbsp;name="BytesReaderServiceOperationResponse"&amp;gt;&lt;BR /&gt;&amp;lt;xsd:complexType&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt;Now I need to consume this byte array as an input file or stream in my service. 
&lt;BR /&gt;Any idea to do this ? 
&lt;BR /&gt;or is there an other way to send a file as a service input parameter? 
&lt;BR /&gt;Please help ! 
&lt;BR /&gt;Thank you in advance</description>
      <pubDate>Fri, 26 Dec 2014 09:48:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-as-service-input-parameter/m-p/2229074#M20122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-26T09:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] File as service input parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-as-service-input-parameter/m-p/2229075#M20123</link>
      <description>Hi 
&lt;BR /&gt;Refer to this 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCq7uCAC" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-Send-file-to-WebService/td-p/106745&lt;/A&gt;, you need base64 encoding to encode &amp;amp; decode the input byte array, the job looks like: 
&lt;BR /&gt;your input program--main--tJavaRow-main-&amp;gt;tXMLMap-main-&amp;gt;tESBConsumer--main--&amp;gt;....other components. 
&lt;BR /&gt;on tJavaRow, encode and decode the input byte array. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Sat, 27 Dec 2014 04:43:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-as-service-input-parameter/m-p/2229075#M20123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-27T04:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] File as service input parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-File-as-service-input-parameter/m-p/2229076#M20124</link>
      <description>hi!&amp;nbsp; 
&lt;BR /&gt;i've read a lot of threads regarding webservices and files as input parameters. but i can't get anything to work. i want to create a webservice that accepts a *.csv file, it's name and does 
&lt;I&gt;something &lt;/I&gt;with it. could someone please show or explain a minimal example of how to do that? 
&lt;BR /&gt;i assume that the input has to be some xml like this: 
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" ?&amp;gt; 
&lt;BR /&gt;&amp;lt;data&amp;gt; 
&lt;BR /&gt;&amp;lt;filename&amp;gt;test.jpg&amp;lt;/filename&amp;gt;&amp;nbsp; 
&lt;BR /&gt;&amp;lt;file&amp;gt;…some base64 string …&amp;lt;/file&amp;gt;&amp;nbsp; 
&lt;BR /&gt;&amp;lt;/data&amp;gt; 
&lt;BR /&gt;i don't know where to start. creating a service with Talend ESB? creating a job and use some component? i can't find any example on the net, that's frustrating 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;i'd really appreciate a short step by step example of how to achieve that. 
&lt;BR /&gt;i've already created webservices with tRestRequest and sent some string to them. that works fine. but a file is something different and i think that this it not what REST should be used for. 
&lt;BR /&gt;thank you very much!!!</description>
      <pubDate>Tue, 03 Mar 2015 18:21:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-File-as-service-input-parameter/m-p/2229076#M20124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-03T18:21:41Z</dc:date>
    </item>
  </channel>
</rss>

