<?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 WS Client with client certificate in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/WS-Client-with-client-certificate/m-p/2368541#M131793</link>
    <description>Hi
&lt;BR /&gt;I'm trying to call a WS from within a bean in my route. 
&lt;BR /&gt;Using basic http authentication works fine but using https and a client certificat doesn't work.
&lt;BR /&gt;The strange thing is that when I use the same code in a separate eclipse environment then it works.
&lt;BR /&gt;Here's a code snippet:
&lt;BR /&gt; QName serviceName = new QName("
&lt;A href="http://cxf.healthgate.app.itv.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://cxf.healthgate.app.itv.com/&lt;/A&gt;", "InvoiceReceiverService");
&lt;BR /&gt; QName portName = new QName("
&lt;A href="http://cxf.healthgate.app.itv.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://cxf.healthgate.app.itv.com/&lt;/A&gt;", "InvoiceReceiverPort");
&lt;BR /&gt; Service service = Service.create(serviceName);
&lt;BR /&gt; service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING,
&lt;BR /&gt; "
&lt;A href="https://192.168.10.221:9445/ITVHealthGate/cxf-services/InvoiceReceiverPort" target="_blank" rel="nofollow noopener noreferrer"&gt;https://192.168.10.221:9445/ITVHealthGate/cxf-services/InvoiceReceiverPort&lt;/A&gt;"); 
&lt;BR /&gt; com.itv.app.healthgate.cxf.InvoiceReceiverSEI client = service.getPort(portName, com.itv.app.healthgate.cxf.InvoiceReceiverSEI.class);
&lt;BR /&gt; setupTLS(client);
&lt;BR /&gt;In setupTLS() I set up the client certificate and the trust store.
&lt;BR /&gt;The error I get from the WS is:
&lt;BR /&gt;javax.xml.ws.WebServiceException: WSDL Metadata not available to create the proxy, either Service instance or ServiceEndpointInterface beans.InvoiceReceiverSEI should have WSDL information 
&lt;BR /&gt;
&lt;BR /&gt;I suspect that in the studio environment different classes are loaded than in my eclipse environment. But I don't know how to control that.
&lt;BR /&gt;Any help would be most welcome, thanks.
&lt;BR /&gt;Laci</description>
    <pubDate>Sat, 16 Nov 2024 12:00:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T12:00:11Z</dc:date>
    <item>
      <title>WS Client with client certificate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/WS-Client-with-client-certificate/m-p/2368541#M131793</link>
      <description>Hi
&lt;BR /&gt;I'm trying to call a WS from within a bean in my route. 
&lt;BR /&gt;Using basic http authentication works fine but using https and a client certificat doesn't work.
&lt;BR /&gt;The strange thing is that when I use the same code in a separate eclipse environment then it works.
&lt;BR /&gt;Here's a code snippet:
&lt;BR /&gt; QName serviceName = new QName("
&lt;A href="http://cxf.healthgate.app.itv.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://cxf.healthgate.app.itv.com/&lt;/A&gt;", "InvoiceReceiverService");
&lt;BR /&gt; QName portName = new QName("
&lt;A href="http://cxf.healthgate.app.itv.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://cxf.healthgate.app.itv.com/&lt;/A&gt;", "InvoiceReceiverPort");
&lt;BR /&gt; Service service = Service.create(serviceName);
&lt;BR /&gt; service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING,
&lt;BR /&gt; "
&lt;A href="https://192.168.10.221:9445/ITVHealthGate/cxf-services/InvoiceReceiverPort" target="_blank" rel="nofollow noopener noreferrer"&gt;https://192.168.10.221:9445/ITVHealthGate/cxf-services/InvoiceReceiverPort&lt;/A&gt;"); 
&lt;BR /&gt; com.itv.app.healthgate.cxf.InvoiceReceiverSEI client = service.getPort(portName, com.itv.app.healthgate.cxf.InvoiceReceiverSEI.class);
&lt;BR /&gt; setupTLS(client);
&lt;BR /&gt;In setupTLS() I set up the client certificate and the trust store.
&lt;BR /&gt;The error I get from the WS is:
&lt;BR /&gt;javax.xml.ws.WebServiceException: WSDL Metadata not available to create the proxy, either Service instance or ServiceEndpointInterface beans.InvoiceReceiverSEI should have WSDL information 
&lt;BR /&gt;
&lt;BR /&gt;I suspect that in the studio environment different classes are loaded than in my eclipse environment. But I don't know how to control that.
&lt;BR /&gt;Any help would be most welcome, thanks.
&lt;BR /&gt;Laci</description>
      <pubDate>Sat, 16 Nov 2024 12:00:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/WS-Client-with-client-certificate/m-p/2368541#M131793</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:00:11Z</dc:date>
    </item>
  </channel>
</rss>

