<?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: Web services component with https problem in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Web-services-component-with-https-problem/m-p/2311301#M82355</link>
    <description>I think all your parameters need to be in quotes. Also I think your schema should be defined as string as the xml message that is returned. You then need to use tExtractXMLField to get the data field out.</description>
    <pubDate>Tue, 19 Jan 2010 08:58:13 GMT</pubDate>
    <dc:creator>janhess</dc:creator>
    <dc:date>2010-01-19T08:58:13Z</dc:date>
    <item>
      <title>Web services component with https problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Web-services-component-with-https-problem/m-p/2311297#M82351</link>
      <description>I'm using TOS 3.2.3 to develop a job for getting import/export data through web services from the Brazilian Central Bank. I'm having a problem which might have something to do with the fact that this web service works over https. I had no problems running the "weather" demo web service. 
&lt;BR /&gt;The web service is described here: 
&lt;BR /&gt; 
&lt;A href="https://www3.bcb.gov.br/sgspub/JSP/sgsgeral/sgsAjuda.jsp#SA" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www3.bcb.gov.br/sgspub/JSP/sgsgeral/sgsAjuda.jsp#SA&lt;/A&gt; (description) 
&lt;BR /&gt; 
&lt;A href="https://www3.bcb.gov.br/sgspub/JSP/sgsgeral/FachadaWSSGS.wsdl" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www3.bcb.gov.br/sgspub/JSP/sgsgeral/FachadaWSSGS.wsdl&lt;/A&gt; 
&lt;BR /&gt;If anybody wants to look t this description or wsdl, you may have to paste this into the browser twice because this site redirects to the home page the first time. 
&lt;BR /&gt;When I run my job for the GetValor() method I get the following error: 
&lt;BR /&gt;tarting job tWebServiceSGS at 12:57 18/01/2010. 
&lt;BR /&gt; connecting to socket on port 3541 
&lt;BR /&gt; connected 
&lt;BR /&gt;Exception in component tWebServiceInput_1 
&lt;BR /&gt;javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 
&lt;BR /&gt; at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174) 
&lt;BR /&gt; at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1611) 
&lt;BR /&gt; at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:187) 
&lt;BR /&gt; at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:181) 
&lt;BR /&gt; at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1035) 
&lt;BR /&gt; at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:124) 
&lt;BR /&gt; at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:516) 
&lt;BR /&gt; at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:454) 
&lt;BR /&gt; at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:884) 
&lt;BR /&gt; at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1112) 
&lt;BR /&gt; disconnected 
&lt;BR /&gt; at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1139) 
&lt;BR /&gt; at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1123) 
&lt;BR /&gt; at sun.net. 
&lt;A href="http://www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:434" target="_blank" rel="nofollow noopener noreferrer"&gt;www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:434&lt;/A&gt;) 
&lt;BR /&gt; at sun.net. 
&lt;A href="http://www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166" target="_blank" rel="nofollow noopener noreferrer"&gt;www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166&lt;/A&gt;) 
&lt;BR /&gt; at sun.net. 
&lt;A href="http://www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049" target="_blank" rel="nofollow noopener noreferrer"&gt;www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049&lt;/A&gt;) 
&lt;BR /&gt; at sun.net. 
&lt;A href="http://www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234" target="_blank" rel="nofollow noopener noreferrer"&gt;www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234&lt;/A&gt;) 
&lt;BR /&gt; at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:677) 
&lt;BR /&gt; at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:186) 
&lt;BR /&gt; at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771) 
&lt;BR /&gt; at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) 
&lt;BR /&gt; at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) 
&lt;BR /&gt; at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225) 
&lt;BR /&gt; at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283) 
&lt;BR /&gt; at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369) 
&lt;BR /&gt; at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420) 
&lt;BR /&gt; at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:482) 
&lt;BR /&gt; at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361) 
&lt;BR /&gt; at java.lang.Thread.run(Thread.java:619) 
&lt;BR /&gt;Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 
&lt;BR /&gt; at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:285) 
&lt;BR /&gt; at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:191) 
&lt;BR /&gt; at sun.security.validator.Validator.validate(Validator.java:218) 
&lt;BR /&gt; at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:126) 
&lt;BR /&gt; at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:209) 
&lt;BR /&gt; at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249) 
&lt;BR /&gt; at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1014) 
&lt;BR /&gt; ... 23 more 
&lt;BR /&gt;Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 
&lt;BR /&gt; at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:174) 
&lt;BR /&gt; at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:238) 
&lt;BR /&gt; at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:280) 
&lt;BR /&gt; ... 29 more 
&lt;BR /&gt;Job tWebServiceSGS ended at 12:57 18/01/2010. 
&lt;BR /&gt; 
&lt;BR /&gt;I'm attaching a screen shot of my job definition. 
&lt;BR /&gt;I think this may have to do with the "trust server with SSL" setting but I'm not sure since in there it wants a password. I read elsewhere some posts that make me think that I have to reference some certificates there. 
&lt;BR /&gt;What am I dong wrong? 
&lt;BR /&gt;Thanks.</description>
      <pubDate>Sat, 16 Nov 2024 13:36:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Web-services-component-with-https-problem/m-p/2311297#M82351</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Web services component with https problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Web-services-component-with-https-problem/m-p/2311298#M82352</link>
      <description>You haven't checked the 'Need Authentication?' box and input the username &amp;amp; password/key.</description>
      <pubDate>Mon, 18 Jan 2010 16:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Web-services-component-with-https-problem/m-p/2311298#M82352</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2010-01-18T16:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Web services component with https problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Web-services-component-with-https-problem/m-p/2311299#M82353</link>
      <description>You're right, thanks a lot. I investigated some more and I found this good article about key stores: 
&lt;BR /&gt; 
&lt;A href="http://java.sun.com/j2se/1.3/docs/tooldocs/win32/keytool.html" rel="nofollow noopener noreferrer"&gt;http://java.sun.com/j2se/1.3/docs/tooldocs/win32/keytool.html&lt;/A&gt; 
&lt;BR /&gt;which I used to import the certificate I downloaded from the site. I used IE to save the .cer file because I couldn't find where Firefox lets me save the certificate as a file. I saved it in base64 format for import. 
&lt;BR /&gt;My component now looks like the new attached image 
&lt;BR /&gt;There I have: 
&lt;BR /&gt;TrustStore file="/home/konsultex/.keystore" 
&lt;BR /&gt;password = "mypassword" 
&lt;BR /&gt;I'm still not able to get the BigDecimal return value. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; I get this log output: 
&lt;BR /&gt;Starting job tWebServiceSGS at 15:26 18/01/2010. 
&lt;BR /&gt; connecting to socket on port 4162 
&lt;BR /&gt; connected 
&lt;BR /&gt;Exception in component tWebServiceInput_1 
&lt;BR /&gt;java.io.IOException: Type {http://www.w3.org/2001/XMLSchema}Array is referenced but not defined. 
&lt;BR /&gt; at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665) 
&lt;BR /&gt; at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545) 
&lt;BR /&gt; at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518) 
&lt;BR /&gt; at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495) 
&lt;BR /&gt; at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361) 
&lt;BR /&gt; at java.lang.Thread.run(Thread.java:619) 
&lt;BR /&gt; disconnected 
&lt;BR /&gt;Job tWebServiceSGS ended at 15:26 18/01/2010. 
&lt;BR /&gt;Any ideas about what else needs to be defined? 
&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 18 Jan 2010 17:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Web-services-component-with-https-problem/m-p/2311299#M82353</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-18T17:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Web services component with https problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Web-services-component-with-https-problem/m-p/2311300#M82354</link>
      <description>I'va made some progress with my analysis of the problem. When I put this into the web browser: 
&lt;BR /&gt; 
&lt;A href="https://www3.bcb.gov.br/wssgs/services/FachadaWSSGS?method=getValor&amp;amp;codigoSerie=2947&amp;amp;data=01/12/2009" rel="nofollow noopener noreferrer"&gt;https://www3.bcb.gov.br/wssgs/services/FachadaWSSGS?method=getValor&amp;amp;codigoSerie=2947&amp;amp;data=01/12/2009&lt;/A&gt; 
&lt;BR /&gt;I get back this reply: 
&lt;BR /&gt;&amp;lt;soapenv:Envelope&amp;gt; 
&lt;BR /&gt;? 
&lt;BR /&gt;&amp;lt;soapenv:Body&amp;gt; 
&lt;BR /&gt;? 
&lt;BR /&gt;&amp;lt;getValorResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"&amp;gt; 
&lt;BR /&gt;&amp;lt;getValorReturn href="#id0"/&amp;gt; 
&lt;BR /&gt;&amp;lt;/getValorResponse&amp;gt; 
&lt;BR /&gt;&amp;lt;multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="soapenc:decimal"&amp;gt;4730137128&amp;lt;/multiRef&amp;gt; 
&lt;BR /&gt;&amp;lt;/soapenv:Body&amp;gt; 
&lt;BR /&gt;&amp;lt;/soapenv:Envelope&amp;gt; 
&lt;BR /&gt;This has the value I need (soapenc:decimal) of 4730137128 for December, 2009. I notice that this result is inside a &amp;lt;multiRef&amp;gt; tag. maybe that's the reason I get a "Array is referenced but not defined" error in my job. What's the right way to define this return in the web services job schema?</description>
      <pubDate>Tue, 19 Jan 2010 04:09:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Web-services-component-with-https-problem/m-p/2311300#M82354</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-19T04:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Web services component with https problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Web-services-component-with-https-problem/m-p/2311301#M82355</link>
      <description>I think all your parameters need to be in quotes. Also I think your schema should be defined as string as the xml message that is returned. You then need to use tExtractXMLField to get the data field out.</description>
      <pubDate>Tue, 19 Jan 2010 08:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Web-services-component-with-https-problem/m-p/2311301#M82355</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2010-01-19T08:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Web services component with https problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Web-services-component-with-https-problem/m-p/2311302#M82356</link>
      <description>I wasn't able to get this web service component to work. No matter what I did I still got the error about the array. I solved the problem by using a tJavaFlex component with this code (for testing): 
&lt;BR /&gt;// imports(advanced tab) 
&lt;BR /&gt;import java.math.BigDecimal; 
&lt;BR /&gt;import org.apache.axis.client.Service; 
&lt;BR /&gt;import org.apache.axis.client.Call; 
&lt;BR /&gt;// start code 
&lt;BR /&gt;System.out.println("## START\n#"); 
&lt;BR /&gt;long serie = 3001; 
&lt;BR /&gt;String data = "01/12/2009"; 
&lt;BR /&gt;String metodo = "getValor"; 
&lt;BR /&gt;String local = " 
&lt;A href="https://www3.bcb.gov.br/wssgs/services/FachadaWSSGS" rel="nofollow noopener noreferrer"&gt;https://www3.bcb.gov.br/wssgs/services/FachadaWSSGS&lt;/A&gt;"; 
&lt;BR /&gt;// para usar https com o certificado do Banco Central 
&lt;BR /&gt;System.setProperty("javax.net.ssl.trustStoreType", "JKS"); 
&lt;BR /&gt;System.setProperty("javax.net.ssl.trustStore", "/home/konsultex/.keystore") 
&lt;BR /&gt;// main code 
&lt;BR /&gt;// Criando e configurando o serviço 
&lt;BR /&gt;Call call = (Call) new Service().createCall(); 
&lt;BR /&gt;// Configurando o endereço onde está o web service 
&lt;BR /&gt;call.setTargetEndpointAddress(local); 
&lt;BR /&gt;// Marcando o método a ser chamado. 
&lt;BR /&gt;call.setOperationName(metodo); 
&lt;BR /&gt;// parametros para o método 
&lt;BR /&gt;Object[] param = new Object[]{serie, data}; 
&lt;BR /&gt;// Retorno do serviço 
&lt;BR /&gt;BigDecimal valor = (BigDecimal)call.invoke(param); 
&lt;BR /&gt;// end code 
&lt;BR /&gt;System.out.println("Valor da série " + serie + ": " + valor); 
&lt;BR /&gt;System.out.println("#\n## END"); 
&lt;BR /&gt;I load the 4 required jars with 4 separate tLibraryLoad components first. They are: 
&lt;BR /&gt;axis.jar 
&lt;BR /&gt;jaxrpc.jar 
&lt;BR /&gt;commons-logging-1.0.4.jar 
&lt;BR /&gt;commons-discovery-0.2.jar 
&lt;BR /&gt;It took me a while to figure out what to code but in the end it's pretty easy. This tutorial helped me a lot: 
&lt;BR /&gt; 
&lt;A href="http://ws.apache.org/axis/java/user-guide.html#ConsumingWebServicesWithAxis" rel="nofollow noopener noreferrer"&gt;http://ws.apache.org/axis/java/user-guide.html#ConsumingWebServicesWithAxis&lt;/A&gt; 
&lt;BR /&gt;Thanks for all the ideas and help.</description>
      <pubDate>Wed, 20 Jan 2010 02:35:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Web-services-component-with-https-problem/m-p/2311302#M82356</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-20T02:35:49Z</dc:date>
    </item>
  </channel>
</rss>

