Hi,
I'm trying to access a Web Service through HTTPS but I'm getting this error in the xsv_log.txt file when trying to upload the WSDL in WebMaker:
<log xmlns="http://www.hyfinity.com/xplatform"><when_created>10-01-2012 at 09:02:09.234</when_created><level>Error</level><source>XGate : mvc-xstoreviewer-import_documents-add_document</source><message>An unexpected error occurred while trying to call the remote service. Error Cause: Cannot parse response. Most likely cause is empty or non-structured payload: https://myplace.tigo.com.gt/WebServiceBizflow/Service.asmx?wsdl Request: URL=https://myplace.tigo.com.gt/WebServiceBizflow/Service.asmx?wsdl Action= RequestMethod=GET Header Allowed=true Header Exists=true Security Info=false Header Attribs=</message><request_identification><request_id>http-7070-Processor211326207729012</request_id><session_id>DD74703204C2110AD8B23AC9D3D68537</session_id></request_identification><details><![CDATA[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
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.flush(Unknown Source)
at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:828)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.flushRequestOutputStream(MultiThreadedHttpConnectionManager.java:1565)
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2116)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at com.hyfinity.xgate.Java2HTTP.sendXmlMessage(Java2HTTP.java:496)
at com.hyfinity.multipleimport.UploadController.loadDocument(UploadController.java:258)
at com.hyfinity.multipleimport.UploadController.processDocuments(UploadController.java:209)
at com.hyfinity.multipleimport.UploadController.startUploadProcess(UploadController.java:152)
at com.hyfinity.multipleimport.MultipleImportEngine.execute(MultipleImportEngine.java:99)
at com.hyfinity.xagent.StandardXAgent.callXMLService(StandardXAgent.java:197)
at com.hyfinity.xagent.StandardXAgent.service(StandardXAgent.java:172)
at com.hyfinity.xplatform.XPlatform.service(XPlatform.java:429)
at com.hyfinity.xplatform.XPlatform.serviceRequest(XPlatform.java:387)
at com.hyfinity.xengine.effectors.Service.callService(Service.java:223)
at com.hyfinity.xengine.effectors.Service.effect(Service.java:179)
at com.hyfinity.xengine.effectors.BaseEffector.effect(BaseEffector.java:195)
at com.hyfinity.xengine.core.Rule.fireWithoutContext(Rule.java:197)
at com.hyfinity.xengine.core.Rule.fire(Rule.java:146)
at com.hyfinity.xengine.core.RuleBase.processRules(RuleBase.java:289)
at com.hyfinity.xengine.core.RuleBase.forwardChain(RuleBase.java:215)
at com.hyfinity.xengine.XEngine.execute(XEngine.java:95)
at com.hyfinity.xagent.StandardXAgent.callXMLService(StandardXAgent.java:197)
at com.hyfinity.xagent.StandardXAgent.service(StandardXAgent.java:172)
at com.hyfinity.xplatform.XPlatform.service(XPlatform.java:429)
at com.hyfinity.xgate.HTTP2Java.processAction(HTTP2Java.java:1065)
at com.hyfinity.xgate.HTTP2Java.doPost(HTTP2Java.java:640)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Unknown Source)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
at sun.security.validator.Validator.validate(Unknown Source)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(Unknown Source)
... 55 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
at java.security.cert.CertPathBuilder.build(Unknown Source)
... 60 more
]]></details></log>
<log xmlns="http://www.hyfinity.com/xplatform"><when_created>10-01-2012 at 09:02:09.236</when_created><level>Error</level><source>mvc-xstoreviewer-import_documents-add_document</source><message>CustomEngine.MultipleImport.ErrorLoadingDocument</message><request_identification><request_id>http-7070-Processor211326207729012</request_id><session_id>DD74703204C2110AD8B23AC9D3D68537</session_id></request_identification><details><soap:Envelope xmlns :s oap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode xmlns="">FAILED</faultcode><faultstring xmlns="">Cannot parse response. Most likely cause is empty or non-structured payload: https://myplace.tigo.com.gt/WebServiceBizflow/Service.asmx?wsdl</faultstring><faultactor xmlns="">XGate : mvc-xstoreviewer-import_documents-add_document</faultactor></soap:Fault></soap:Body></soap:Envelope></details></log>
How do I import the certificates so that WebMaker Studio can access them?
Thanks
I'm trying to access a Web Service through HTTPS but I'm getting this error in the xsv_log.txt file when trying to upload the WSDL in WebMaker:
<log xmlns="http://www.hyfinity.com/xplatform"><when_created>10-01-2012 at 09:02:09.234</when_created><level>Error</level><source>XGate : mvc-xstoreviewer-import_documents-add_document</source><message>An unexpected error occurred while trying to call the remote service. Error Cause: Cannot parse response. Most likely cause is empty or non-structured payload: https://myplace.tigo.com.gt/WebServiceBizflow/Service.asmx?wsdl Request: URL=https://myplace.tigo.com.gt/WebServiceBizflow/Service.asmx?wsdl Action= RequestMethod=GET Header Allowed=true Header Exists=true Security Info=false Header Attribs=</message><request_identification><request_id>http-7070-Processor211326207729012</request_id><session_id>DD74703204C2110AD8B23AC9D3D68537</session_id></request_identification><details><![CDATA[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
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.flush(Unknown Source)
at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:828)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.flushRequestOutputStream(MultiThreadedHttpConnectionManager.java:1565)
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2116)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at com.hyfinity.xgate.Java2HTTP.sendXmlMessage(Java2HTTP.java:496)
at com.hyfinity.multipleimport.UploadController.loadDocument(UploadController.java:258)
at com.hyfinity.multipleimport.UploadController.processDocuments(UploadController.java:209)
at com.hyfinity.multipleimport.UploadController.startUploadProcess(UploadController.java:152)
at com.hyfinity.multipleimport.MultipleImportEngine.execute(MultipleImportEngine.java:99)
at com.hyfinity.xagent.StandardXAgent.callXMLService(StandardXAgent.java:197)
at com.hyfinity.xagent.StandardXAgent.service(StandardXAgent.java:172)
at com.hyfinity.xplatform.XPlatform.service(XPlatform.java:429)
at com.hyfinity.xplatform.XPlatform.serviceRequest(XPlatform.java:387)
at com.hyfinity.xengine.effectors.Service.callService(Service.java:223)
at com.hyfinity.xengine.effectors.Service.effect(Service.java:179)
at com.hyfinity.xengine.effectors.BaseEffector.effect(BaseEffector.java:195)
at com.hyfinity.xengine.core.Rule.fireWithoutContext(Rule.java:197)
at com.hyfinity.xengine.core.Rule.fire(Rule.java:146)
at com.hyfinity.xengine.core.RuleBase.processRules(RuleBase.java:289)
at com.hyfinity.xengine.core.RuleBase.forwardChain(RuleBase.java:215)
at com.hyfinity.xengine.XEngine.execute(XEngine.java:95)
at com.hyfinity.xagent.StandardXAgent.callXMLService(StandardXAgent.java:197)
at com.hyfinity.xagent.StandardXAgent.service(StandardXAgent.java:172)
at com.hyfinity.xplatform.XPlatform.service(XPlatform.java:429)
at com.hyfinity.xgate.HTTP2Java.processAction(HTTP2Java.java:1065)
at com.hyfinity.xgate.HTTP2Java.doPost(HTTP2Java.java:640)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Unknown Source)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
at sun.security.validator.Validator.validate(Unknown Source)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(Unknown Source)
... 55 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
at java.security.cert.CertPathBuilder.build(Unknown Source)
... 60 more
]]></details></log>
<log xmlns="http://www.hyfinity.com/xplatform"><when_created>10-01-2012 at 09:02:09.236</when_created><level>Error</level><source>mvc-xstoreviewer-import_documents-add_document</source><message>CustomEngine.MultipleImport.ErrorLoadingDocument</message><request_identification><request_id>http-7070-Processor211326207729012</request_id><session_id>DD74703204C2110AD8B23AC9D3D68537</session_id></request_identification><details><soap:Envelope xmlns :s oap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode xmlns="">FAILED</faultcode><faultstring xmlns="">Cannot parse response. Most likely cause is empty or non-structured payload: https://myplace.tigo.com.gt/WebServiceBizflow/Service.asmx?wsdl</faultstring><faultactor xmlns="">XGate : mvc-xstoreviewer-import_documents-add_document</faultactor></soap:Fault></soap:Body></soap:Envelope></details></log>
How do I import the certificates so that WebMaker Studio can access them?
Thanks
RE: Access Web Service Through HTTPS
As you suggest, that error is being caused because the certificate used by the service is not a trusted one, and so has not been accepted.
To get round this you need to make the JVM used to run WebMaker aware of the certificate so that it will be trusted.
You can find some details on how to do this at http://nodsw.com/blog/leeland/2006/12/06-no-more-unable-find-valid-certification-path-requested-target
The JVM used to run the studio for BizFlow WebMaker is included in the BizFlow installation under .../BizFlow/jre
Once the JVM is aware of the certificate you should be able to upload the WSDL in WebMaker without getting this problem.
If you are still having issues uploading the WSDL, you could always try saving it to a local file using your browser, and then use the upload from file option in WebMaker.
I hope this helps.
Regards,
Gerard
RE: Access Web Service Through HTTPS
That did the trick!