<?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: Can not manipulate webservice response in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Can-not-manipulate-webservice-response/m-p/2287872#M144595</link>
    <description>&lt;P&gt;Hey Sabrina,&lt;BR /&gt;&lt;BR /&gt;yes, this&amp;nbsp;solved my issue, thank you!&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;&lt;P&gt;Viktor&lt;/P&gt;</description>
    <pubDate>Mon, 03 Dec 2018 08:57:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-12-03T08:57:29Z</dc:date>
    <item>
      <title>Can not manipulate webservice response</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Can-not-manipulate-webservice-response/m-p/2287870#M144593</link>
      <description>&lt;P&gt;I'm trying to create a SOAP based webservice. I use Talend Open Studio ESB 7.1.1 and SOAP 5.3. I have wsdl below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;&amp;lt;wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://www.talend.org/service/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" name="Test_Webservice_2" targetNamespace="http://www.talend.org/service/"&amp;gt;
&amp;lt;script/&amp;gt;
&amp;lt;wsdl:types&amp;gt;
&amp;lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://www.talend.org/service/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://www.talend.org/service/"&amp;gt; &amp;lt;/xsd:schema&amp;gt;
&amp;lt;/wsdl:types&amp;gt;
&amp;lt;wsdl:message name="Operation_1Request"&amp;gt;
&amp;lt;wsdl:part name="nev" type="xsd:string"&amp;gt; &amp;lt;/wsdl:part&amp;gt;
&amp;lt;wsdl:part name="kor" type="xsd:long"&amp;gt; &amp;lt;/wsdl:part&amp;gt;
&amp;lt;/wsdl:message&amp;gt;
&amp;lt;wsdl:message name="Operation_1Response"&amp;gt;
&amp;lt;wsdl:part name="responseText" type="xsd:string"&amp;gt; &amp;lt;/wsdl:part&amp;gt;
&amp;lt;wsdl:part name="responseText2" type="xsd:int"&amp;gt; &amp;lt;/wsdl:part&amp;gt;
&amp;lt;/wsdl:message&amp;gt;
&amp;lt;wsdl:portType name="TWS_PortType"&amp;gt;
&amp;lt;wsdl:operation name="Operation_1"&amp;gt;
&amp;lt;wsdl:input message="tns:Operation_1Request"&amp;gt; &amp;lt;/wsdl:input&amp;gt;
&amp;lt;wsdl:output message="tns:Operation_1Response"&amp;gt; &amp;lt;/wsdl:output&amp;gt;
&amp;lt;/wsdl:operation&amp;gt;
&amp;lt;/wsdl:portType&amp;gt;
&amp;lt;wsdl:binding name="Test_Webservice_2Binding" type="tns:TWS_PortType"&amp;gt;
&amp;lt;soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/&amp;gt;
&amp;lt;wsdl:operation name="Operation_1"&amp;gt;
&amp;lt;soap:operation soapAction="http://www.talend.org/service/Operation_1"/&amp;gt;
&amp;lt;wsdl:input&amp;gt;
&amp;lt;soap:body use="literal"/&amp;gt;
&amp;lt;/wsdl:input&amp;gt;
&amp;lt;wsdl:output&amp;gt;
&amp;lt;soap:body use="literal"/&amp;gt;
&amp;lt;/wsdl:output&amp;gt;
&amp;lt;/wsdl:operation&amp;gt;
&amp;lt;/wsdl:binding&amp;gt;
&amp;lt;wsdl:service name="Test_Webservice_2"&amp;gt;
&amp;lt;wsdl:port binding="tns:Test_Webservice_2Binding" name="Test_Webservice_2Port"&amp;gt;
&amp;lt;soap:address location="http://localhost:8090/services/Test_Webservice_2"/&amp;gt;
&amp;lt;/wsdl:port&amp;gt;
&amp;lt;/wsdl:service&amp;gt;
&amp;lt;/wsdl:definitions&amp;gt;&lt;/PRE&gt; 
&lt;P&gt;And here is the basic structure, I made and the Map component binding.&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ws_create_res_err.jpg" style="width: 991px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0nI.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150203i4DED1046B29FC1A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0nI.jpg" alt="0683p000009M0nI.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ws_create_res_err_2.jpg" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M19H.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131254i00EDC67BF62E608A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M19H.jpg" alt="0683p000009M19H.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;the tJava componenet only log some technical data...&lt;BR /&gt;When I call this API like this -from SOAP UI-:&lt;/P&gt; 
&lt;PRE&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&amp;gt;
   &amp;lt;soapenv:Header/&amp;gt;
   &amp;lt;soapenv:Body&amp;gt;
      &amp;lt;nev&amp;gt;?&amp;lt;/nev&amp;gt;
      &amp;lt;kor&amp;gt;?&amp;lt;/kor&amp;gt;
   &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;&lt;/PRE&gt; 
&lt;P&gt;I receive this result:&lt;/P&gt; 
&lt;PRE&gt;&amp;lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&amp;gt;
   &amp;lt;soap:Body&amp;gt;
      &amp;lt;nev&amp;gt;?&amp;lt;/nev&amp;gt;
   &amp;lt;/soap:Body&amp;gt;
&amp;lt;/soap:Envelope&amp;gt;&lt;/PRE&gt; 
&lt;P&gt;This is strange me, 'cause as I write down in the wsdl, I need responseText field in the response instead if &amp;lt;nev&amp;gt;&amp;lt;/nev&amp;gt;.&amp;nbsp;&lt;BR /&gt;Any idea what did I wrong?&lt;BR /&gt;I'm newbie in Talend... &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;UPDATE&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;I have recognised, I need to use tXMLMap instead of tMap component 'cause of this article:&lt;BR /&gt;&lt;A href="https://help.talend.com/reader/iYcvdknuprDzYycT3WRU8w/EHwWqn8Io8xKgHS09BJD4A" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/iYcvdknuprDzYycT3WRU8w/EHwWqn8Io8xKgHS09BJD4A&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;But if I use this componenet, I got this error message:&lt;/P&gt; 
&lt;PRE&gt;&amp;lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&amp;gt;
   &amp;lt;soap:Body&amp;gt;
      &amp;lt;soap:Fault&amp;gt;
         &amp;lt;faultcode&amp;gt;soap:Server&amp;lt;/faultcode&amp;gt;
         &amp;lt;faultstring&amp;gt;Could not generate the XML stream caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
 at [row,col {unknown-source}]: [2,0].&amp;lt;/faultstring&amp;gt;
      &amp;lt;/soap:Fault&amp;gt;
   &amp;lt;/soap:Body&amp;gt;
&amp;lt;/soap:Envelope&amp;gt;&lt;/PRE&gt; 
&lt;P&gt;The input and the output parameters are the same. Here is the connection:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ws_create_res_err_3.jpg" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M19M.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143841i4875CE46E8D44BAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M19M.jpg" alt="0683p000009M19M.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Any idea?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Can-not-manipulate-webservice-response/m-p/2287870#M144593</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T07:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can not manipulate webservice response</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Can-not-manipulate-webservice-response/m-p/2287871#M144594</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;This error indicates the&lt;SPAN&gt; tXMLMap setup within job is not correct.&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Ensure to verify following steps Once the job is designed with producer and consumer :&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;1. Right click on Services -&amp;gt; xxxxxx and select "Import WSDL Schemas".&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Open tXMLMap map editor. In the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;row1&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;input table right-click on the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;payload&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;and select "&lt;STRONG&gt;Import from repository&lt;/STRONG&gt;". From the "Metadata" popup that opens, select Metadata -&amp;gt; File xml -&amp;gt;xxxx -&amp;gt; service -&amp;gt;&amp;nbsp;xxxx -&amp;gt; xxxxx -&amp;gt; metadata&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. In the output table delete the current value of the Expression field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Redo the mapping between the input and output table.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Let us know if it is OK with you.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Sabrina&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 06:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Can-not-manipulate-webservice-response/m-p/2287871#M144594</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-03T06:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can not manipulate webservice response</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Can-not-manipulate-webservice-response/m-p/2287872#M144595</link>
      <description>&lt;P&gt;Hey Sabrina,&lt;BR /&gt;&lt;BR /&gt;yes, this&amp;nbsp;solved my issue, thank you!&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;&lt;P&gt;Viktor&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 08:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Can-not-manipulate-webservice-response/m-p/2287872#M144595</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-03T08:57:29Z</dc:date>
    </item>
  </channel>
</rss>

