<?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 Talend ESB using PUT method in the tRestClient component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-ESB-using-PUT-method-in-the-tRestClient-component/m-p/2368636#M131877</link>
    <description>&lt;P&gt;Hello EveryOne,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to transform this Java code using only Talend components.&lt;/P&gt;&lt;P&gt;I would like to call the tRestClient component using the PUT method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to do this? In the existing job, we use the tWebserviceInput component (wsdl type). We would like to replace it with a REST type Web Service.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know how to handle exceptions with tRestClient. Could you help me with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		// EndPoint&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		String endPoint = context.endPoint;&lt;/P&gt;&lt;P&gt;		RoutineServiceLocator locator = new RoutineServiceLocator();&lt;/P&gt;&lt;P&gt;		locator.setRoutineEndpointAddress(endPoint);&lt;/P&gt;&lt;P&gt;		Routine_PortType Routine_PortType = locator.getRoutine();&lt;/P&gt;&lt;P&gt;		RoutineSoapBindingStub sub = (RoutineSoapBindingStub)Routine_PortType;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		//Inputs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		// ID file created&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		String tempFile = "";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		if("DI".equals(context.typeDI))&lt;/P&gt;&lt;P&gt;			{&lt;/P&gt;&lt;P&gt;			tempFile = context.workspace_path + context.codeFlux + "/SL_QUOTIDIEN_ALIM_DI.xml";&lt;/P&gt;&lt;P&gt;			}&lt;/P&gt;&lt;P&gt;		else if("BN".equals(context.typeDI))&lt;/P&gt;&lt;P&gt;			{&lt;/P&gt;&lt;P&gt;			tempFile = context.workspace_path + context.codeFlux + "/SL_QUOTIDIEN_ALIM_BN.xml";&lt;/P&gt;&lt;P&gt;			}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		// Building the String from the XML file&lt;/P&gt;&lt;P&gt;		String xmlDI = routines.Sillage.XMLtoString(tempFile);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		// System.out.println("query to GTPAPP = \n" + xmlDI);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		// Call to Web Service for the creation of IDs&lt;/P&gt;&lt;P&gt;		String reponseGTPAPP = sub.createDIRoutine(xmlDI, context.WSGTP_TIMEOUT);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		// System.out.println("Response GTPAPP = \n" + reponseGTPAPP);&lt;/P&gt;&lt;P&gt;		// Creation of the XML file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		String pathFile = "";&lt;/P&gt;&lt;P&gt;		String pathFileXMLSent="";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		if("DI".equals(context.typeDI))&lt;/P&gt;&lt;P&gt;			{&lt;/P&gt;&lt;P&gt;			pathFileXMLSent=context.archivi_space_path+context.codeFlux+"/PUBLICATION/SL_QUOTIDIEN_REQ_DI_"+TalendDate.getDate("yyyyMMdd_hhmmss")+".xml";&lt;/P&gt;&lt;P&gt;			pathFile = context.archivi_space_path+context.codeFlux+"/PUBLICATION/SL_QUOTIDIEN_REP_DI_"+TalendDate.getDate("yyyyMMdd_hhmmss")+".xml";&lt;/P&gt;&lt;P&gt;			}&lt;/P&gt;&lt;P&gt;		else if("BN".equals(context.typeDI))&lt;/P&gt;&lt;P&gt;			{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;			pathFileXMLSent=context.archivi_space_path+context.codeFlux+"/PUBLICATION/SL_QUOTIDIEN_REQ_BN_"+TalendDate.getDate("yyyyMMdd_hhmmss")+".xml";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;			pathFile = context.archivi_space_path+context.codeFlux+"/PUBLICATION/SL_QUOTIDIEN_REP_BN_"+TalendDate.getDate("yyyyMMdd_hhmmss")+".xml";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;			}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		//Save the query&lt;/P&gt;&lt;P&gt;		Sillage.stringToXml(pathFileXMLSent, xmlDI);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		//Save the response&lt;/P&gt;&lt;P&gt;		Sillage.stringToXml(pathFile, reponseGTPAPP);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		// return&amp;nbsp;&lt;/P&gt;&lt;P&gt;		row9.reponse = reponseGTPAPP;&lt;/P&gt;&lt;P&gt;		row9.pathFile = pathFile;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thank you in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: It is urgently and I did not find a solution around me.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:52:26 GMT</pubDate>
    <dc:creator>slim025</dc:creator>
    <dc:date>2024-11-16T01:52:26Z</dc:date>
    <item>
      <title>Talend ESB using PUT method in the tRestClient component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-ESB-using-PUT-method-in-the-tRestClient-component/m-p/2368636#M131877</link>
      <description>&lt;P&gt;Hello EveryOne,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to transform this Java code using only Talend components.&lt;/P&gt;&lt;P&gt;I would like to call the tRestClient component using the PUT method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to do this? In the existing job, we use the tWebserviceInput component (wsdl type). We would like to replace it with a REST type Web Service.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know how to handle exceptions with tRestClient. Could you help me with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		// EndPoint&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		String endPoint = context.endPoint;&lt;/P&gt;&lt;P&gt;		RoutineServiceLocator locator = new RoutineServiceLocator();&lt;/P&gt;&lt;P&gt;		locator.setRoutineEndpointAddress(endPoint);&lt;/P&gt;&lt;P&gt;		Routine_PortType Routine_PortType = locator.getRoutine();&lt;/P&gt;&lt;P&gt;		RoutineSoapBindingStub sub = (RoutineSoapBindingStub)Routine_PortType;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		//Inputs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		// ID file created&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		String tempFile = "";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		if("DI".equals(context.typeDI))&lt;/P&gt;&lt;P&gt;			{&lt;/P&gt;&lt;P&gt;			tempFile = context.workspace_path + context.codeFlux + "/SL_QUOTIDIEN_ALIM_DI.xml";&lt;/P&gt;&lt;P&gt;			}&lt;/P&gt;&lt;P&gt;		else if("BN".equals(context.typeDI))&lt;/P&gt;&lt;P&gt;			{&lt;/P&gt;&lt;P&gt;			tempFile = context.workspace_path + context.codeFlux + "/SL_QUOTIDIEN_ALIM_BN.xml";&lt;/P&gt;&lt;P&gt;			}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		// Building the String from the XML file&lt;/P&gt;&lt;P&gt;		String xmlDI = routines.Sillage.XMLtoString(tempFile);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		// System.out.println("query to GTPAPP = \n" + xmlDI);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		// Call to Web Service for the creation of IDs&lt;/P&gt;&lt;P&gt;		String reponseGTPAPP = sub.createDIRoutine(xmlDI, context.WSGTP_TIMEOUT);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		// System.out.println("Response GTPAPP = \n" + reponseGTPAPP);&lt;/P&gt;&lt;P&gt;		// Creation of the XML file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		String pathFile = "";&lt;/P&gt;&lt;P&gt;		String pathFileXMLSent="";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		if("DI".equals(context.typeDI))&lt;/P&gt;&lt;P&gt;			{&lt;/P&gt;&lt;P&gt;			pathFileXMLSent=context.archivi_space_path+context.codeFlux+"/PUBLICATION/SL_QUOTIDIEN_REQ_DI_"+TalendDate.getDate("yyyyMMdd_hhmmss")+".xml";&lt;/P&gt;&lt;P&gt;			pathFile = context.archivi_space_path+context.codeFlux+"/PUBLICATION/SL_QUOTIDIEN_REP_DI_"+TalendDate.getDate("yyyyMMdd_hhmmss")+".xml";&lt;/P&gt;&lt;P&gt;			}&lt;/P&gt;&lt;P&gt;		else if("BN".equals(context.typeDI))&lt;/P&gt;&lt;P&gt;			{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;			pathFileXMLSent=context.archivi_space_path+context.codeFlux+"/PUBLICATION/SL_QUOTIDIEN_REQ_BN_"+TalendDate.getDate("yyyyMMdd_hhmmss")+".xml";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;			pathFile = context.archivi_space_path+context.codeFlux+"/PUBLICATION/SL_QUOTIDIEN_REP_BN_"+TalendDate.getDate("yyyyMMdd_hhmmss")+".xml";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;			}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		//Save the query&lt;/P&gt;&lt;P&gt;		Sillage.stringToXml(pathFileXMLSent, xmlDI);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		//Save the response&lt;/P&gt;&lt;P&gt;		Sillage.stringToXml(pathFile, reponseGTPAPP);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;		// return&amp;nbsp;&lt;/P&gt;&lt;P&gt;		row9.reponse = reponseGTPAPP;&lt;/P&gt;&lt;P&gt;		row9.pathFile = pathFile;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thank you in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: It is urgently and I did not find a solution around me.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:52:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-ESB-using-PUT-method-in-the-tRestClient-component/m-p/2368636#M131877</guid>
      <dc:creator>slim025</dc:creator>
      <dc:date>2024-11-16T01:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Talend ESB using PUT method in the tRestClient component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-ESB-using-PUT-method-in-the-tRestClient-component/m-p/2368637#M131878</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":sad_but_relieved_face:"&gt;😥&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 19:17:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-ESB-using-PUT-method-in-the-tRestClient-component/m-p/2368637#M131878</guid>
      <dc:creator>slim025</dc:creator>
      <dc:date>2020-07-17T19:17:01Z</dc:date>
    </item>
  </channel>
</rss>

