Getting an Error while assigning the job to service
Hello,
I have created the service in Talend esb and its wsdl schema is automatically generated in the xml metadata.
and when i right click on the service in this scenario storeList and assign the job then job is created
automatically in job design workspace.
There were two default components were there tESBProviderRequest and tESBProviderResponse.
Then I mapped the tESBProviderRequest to tlogRow and from tLogRow to tESBProviderResponse.
tESBProviderRequest ---> tlogrow ---> tESBProviderResponse.
and run the job I got the below error.
Exception in thread "Thread-1" javax.xml.ws.WebServiceException: java.lang.RuntimeException: Protocol mismatch for port -1: engine's protocol is http, the url protocol is https
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:369)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:251)
at org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:152)
at javax.xml.ws.Endpoint.publish(Unknown Source)
at bista_esb_52.mage_api_model_server_wsi_handlerporttype_storelist_0_1.Mage_Api_Model_Server_Wsi_HandlerPortType_storeList$HandlerThread_tESBProviderRequest_1.run(Mage_Api_Model_Server_Wsi_HandlerPortType_storeList.java:744)
Caused by: java.lang.RuntimeException: Protocol mismatch for port -1: engine's protocol is http, the url protocol is https
at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.finalizeConfig(JettyHTTPDestination.java:162)
at org.apache.cxf.transport.http.HTTPTransportFactory.getDestination(HTTPTransportFactory.java:307)
at org.apache.cxf.binding.soap.SoapTransportFactory.getDestination(SoapTransportFactory.java:142)
at org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:93)
at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:72)
at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:160)
at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:454)
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:334)
... 4 more
Caused by: java.io.IOException: Protocol mismatch for port -1: engine's protocol is http, the url protocol is https
at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory.createJettyHTTPServerEngine(JettyHTTPServerEngineFactory.java:270)
at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.retrieveEngine(JettyHTTPDestination.java:127)
at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.finalizeConfig(JettyHTTPDestination.java:160)
... 12 more
Please suggest me or anyone has solutions to above please share it with me.
I tried the same thing in the Talend ESB 5.3.2 and Talend ESB 5.2.2. and in both versions I am getting the same error.
the wsdl which I am using is : "
http://adminnike.gostorego.com/api/wsi_soap/?wsdl"
Thanking you,
with kind regards,
Akash S.
Protocol mismatch for port -1: engine's protocol is http, the url protocol is https
Did you set the wsdl service as "https" which probably cause this issue (The default is "http").
<wsdl:service name="ff">
<wsdl
ort name="ffPort" binding="tns:ffBinding">
<soap:address location="https://localhost:8090/services/ff" />
</wsdl
ort>
</wsdl:service>
Best regards
Sabrina