<?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: SOAP webservice as a datasource in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/SOAP-webservice-as-a-datasource/m-p/2320589#M90717</link>
    <description>Hi
&lt;BR /&gt;Why are you trying to extract data from a wsdl file? If you have a soap webservice as input, you should use tWebserviceInput or tSOAP component to call the webservice and load the result into Mysql, the job looks like:
&lt;BR /&gt;tWebserviceInput(or tSOAP)--main--tMysqlOutput.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
    <pubDate>Fri, 18 Nov 2011 04:43:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-11-18T04:43:18Z</dc:date>
    <item>
      <title>SOAP webservice as a datasource</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SOAP-webservice-as-a-datasource/m-p/2320588#M90716</link>
      <description>Hello, 
&lt;BR /&gt;I'm trying to connect to a datasource using a soap webservice with Talend. 
&lt;BR /&gt;I'd like to retreive data through this webservice and use Talend to put it into a MySQL database. 
&lt;BR /&gt;I've got the wsdl file and have completed the 'How to create a File Xml Metadata' tutorial. 
&lt;BR /&gt;The turorial was easy but when using the real life wsdl file, i got stuck at stage 4, 'Add a Metadata File on repository- Define the setting of the parse job'. 
&lt;BR /&gt;Problem is when using the New Xml File wizard, i'm not sure which 'source schema' object to drag to the 'xpath loop expression' or the 'fields to extract' either ? 
&lt;BR /&gt;here are my options 
&lt;BR /&gt;My'source schema' options are : 
&lt;BR /&gt;wsdl:definitions 
&lt;BR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/127897"&gt;@Name&lt;/a&gt; 
&lt;BR /&gt;@targetNamespace 
&lt;BR /&gt;wsdl:types(many options available within collaspable folder) 
&lt;BR /&gt;wsdl:message(many options available within collaspable folder) 
&lt;BR /&gt;wsdl 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAB6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158321i00588DF41617C922/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAB6.png" alt="0683p000009MAB6.png" /&gt;&lt;/span&gt;ortType(many options available within collaspable folder) 
&lt;BR /&gt;wsdl:binding(many options available within collaspable folder) 
&lt;BR /&gt;wsdl:service(many options available within collaspable folder) 
&lt;BR /&gt;Many thanks in advance 
&lt;BR /&gt;Soti</description>
      <pubDate>Sat, 16 Nov 2024 12:33:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SOAP-webservice-as-a-datasource/m-p/2320588#M90716</guid>
      <dc:creator>sosc</dc:creator>
      <dc:date>2024-11-16T12:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: SOAP webservice as a datasource</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SOAP-webservice-as-a-datasource/m-p/2320589#M90717</link>
      <description>Hi
&lt;BR /&gt;Why are you trying to extract data from a wsdl file? If you have a soap webservice as input, you should use tWebserviceInput or tSOAP component to call the webservice and load the result into Mysql, the job looks like:
&lt;BR /&gt;tWebserviceInput(or tSOAP)--main--tMysqlOutput.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 18 Nov 2011 04:43:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SOAP-webservice-as-a-datasource/m-p/2320589#M90717</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-18T04:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: SOAP webservice as a datasource</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SOAP-webservice-as-a-datasource/m-p/2320590#M90718</link>
      <description>Hi, 
&lt;BR /&gt;you schould use tWebServiceInput as Shong mentioned. Because these components were not at usable state in days I needed it for my old project, I used custom java code to work with web services as following: 
&lt;BR /&gt; 
&lt;PRE&gt;package routines;&lt;BR /&gt;import java.io.BufferedWriter;&lt;BR /&gt;import java.io.File;&lt;BR /&gt;import java.io.FileInputStream;&lt;BR /&gt;import java.io.FileWriter;&lt;BR /&gt;import java.io.StringWriter;&lt;BR /&gt;import java.io.Writer;&lt;BR /&gt;import javax.xml.soap.*;&lt;BR /&gt;import javax.xml.transform.Source;&lt;BR /&gt;import javax.xml.transform.Transformer;&lt;BR /&gt;import javax.xml.transform.TransformerFactory;&lt;BR /&gt;import javax.xml.transform.stream.StreamResult;&lt;BR /&gt;import javax.xml.transform.stream.StreamSource;&lt;BR /&gt;public class NAVWSInvoices {&lt;BR /&gt;    public static void RequestWS(String destinationServiceURL, String soapAction,String inputXMLMessage,String outputXMLMessage) {&lt;BR /&gt;    			try {&lt;BR /&gt;    				// First create the connection&lt;BR /&gt;    				SOAPConnectionFactory soapConnFactory = SOAPConnectionFactory.newInstance();&lt;BR /&gt;    				SOAPConnection connection = soapConnFactory.createConnection();&lt;BR /&gt;    				&lt;BR /&gt;    				// Next, create the actual message&lt;BR /&gt;    				MessageFactory messageFactory = MessageFactory.newInstance();&lt;BR /&gt;    				SOAPMessage messageRequest = messageFactory.createMessage();&lt;BR /&gt;    				// Add eventually a SoapAction header if necessary	&lt;BR /&gt;    				MimeHeaders hd = messageRequest.getMimeHeaders();&lt;BR /&gt;    				hd.addHeader("SOAPAction", soapAction);&lt;BR /&gt;    				// Create objects for the message parts&lt;BR /&gt;    				SOAPPart soapPart = messageRequest.getSOAPPart();&lt;BR /&gt;    				StreamSource preparedMessageSource = new StreamSource( new FileInputStream(inputXMLMessage));&lt;BR /&gt;    				System.out.println(inputXMLMessage);&lt;BR /&gt;    				soapPart.setContent(preparedMessageSource);&lt;BR /&gt;    				messageRequest.saveChanges();&lt;BR /&gt;    				// Check the input&lt;BR /&gt;    				System.out.println("\nREQUEST:\n");&lt;BR /&gt;    				System.out.println(messageRequest.toString());&lt;BR /&gt;    				System.out.println("\nREQUEST:\n");&lt;BR /&gt;    				messageRequest.writeTo(System.out);&lt;BR /&gt;    				System.out.println();&lt;BR /&gt;    				// Send the message&lt;BR /&gt;    				SOAPMessage reply = connection.call(messageRequest, destinationServiceURL);&lt;BR /&gt;    				// Check the output&lt;BR /&gt;    				System.out.println("\nRESPONSE:\n");&lt;BR /&gt;    				// Create the transformer&lt;BR /&gt;    				TransformerFactory transformerFactory = TransformerFactory.newInstance();&lt;BR /&gt;    				Transformer transformer = transformerFactory.newTransformer();&lt;BR /&gt;    				// Extract the content of the reply&lt;BR /&gt;    				Source sourceContent = reply.getSOAPPart().getContent();&lt;BR /&gt;    				&lt;BR /&gt;    				// Set the output for the transformation&lt;BR /&gt;    				StringWriter sw = new StringWriter();&lt;BR /&gt;    				StreamResult result = new StreamResult(sw);&lt;BR /&gt;    				transformer.transform(sourceContent, result);&lt;BR /&gt;    				StringBuffer sb = sw.getBuffer();&lt;BR /&gt;    				String SOAPResponse = sb.toString(); &lt;BR /&gt;    				System.out.println(SOAPResponse);&lt;BR /&gt;    				System.out.println();&lt;BR /&gt;    				&lt;BR /&gt;    				// Close the connection&lt;BR /&gt;    				connection.close();&lt;BR /&gt;    				Writer output = null;&lt;BR /&gt;    				&lt;BR /&gt;    				// Write response to file&lt;BR /&gt;    				File file = new File(outputXMLMessage);&lt;BR /&gt;    				output = new BufferedWriter(new FileWriter(file));&lt;BR /&gt;    				output.write(SOAPResponse);&lt;BR /&gt;    				output.close();&lt;BR /&gt;    			} catch (Exception e) {&lt;BR /&gt;                                // Some error handling&lt;BR /&gt;    				System.out.println(e.getMessage());&lt;BR /&gt;    			}&lt;BR /&gt;    		}&lt;BR /&gt;    &lt;BR /&gt;}&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Nov 2011 11:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SOAP-webservice-as-a-datasource/m-p/2320590#M90718</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-18T11:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: SOAP webservice as a datasource</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SOAP-webservice-as-a-datasource/m-p/2320591#M90719</link>
      <description>Hello and thanks to you both. 
&lt;BR /&gt;I'm new to webservices &amp;amp; I see the error of my ways. 
&lt;BR /&gt;Which is better to use tsoap or twebservice ?
&lt;BR /&gt;All i need to do is connect to a webservice with login parameters and download data into a local mySQL db. I don't need a continous service, just a data dump
&lt;BR /&gt;when the job is executed. 
&lt;BR /&gt;I've been working on this Talend tutorial to learn how to use the tWebserviceInput function :
&lt;BR /&gt;'Using the advanced settings of tWebServiceInput' 
&lt;BR /&gt;
&lt;A href="http://www.talendforge.org/tutorials/tutorial.php?language=english&amp;amp;idTuto=47" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/tutorials/tutorial.php?language=english&amp;amp;idTuto=47&lt;/A&gt;
&lt;BR /&gt;I completed part 1&amp;amp;2 but got stuck editting java code in Step 3. 
&lt;BR /&gt;I got lost in java code when trying to call the webservice functions and download data. Is this the only way or is there a simpler one without having to edit so much java code ?</description>
      <pubDate>Mon, 21 Nov 2011 17:41:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SOAP-webservice-as-a-datasource/m-p/2320591#M90719</guid>
      <dc:creator>sosc</dc:creator>
      <dc:date>2011-11-21T17:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: SOAP webservice as a datasource</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SOAP-webservice-as-a-datasource/m-p/2320592#M90720</link>
      <description>Hi 
&lt;BR /&gt;Do you really need the advanced usage of the component? I suggest you to read the component doc and learn the basic usage of the two component, which is rather simpler. You can download the component doc from this URL:
&lt;BR /&gt;
&lt;A href="http://www.talend.com/download.php?src=HomePage" rel="nofollow noopener noreferrer"&gt;http://www.talend.com/download.php?src=HomePage&lt;/A&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 22 Nov 2011 01:39:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SOAP-webservice-as-a-datasource/m-p/2320592#M90720</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-22T01:39:36Z</dc:date>
    </item>
  </channel>
</rss>

