2014-12-06 40 views
1

我有以下coldfusion客戶端代碼調用一個基於https的基於wcf服務作爲普通的basicHttpBinding暴露。Coldfusion createobject拋出錯誤與https服務url

<cfscript> 
ws = CreateObject("webservice", "https://testserver.secureservice.svc?wsdl"); 
result = ws.PostData("testdata"); 
</cfscript> 
<cfoutput> 
    SOAP Return value: #result#<br>  
</cfoutput> 

但是當我EXCUTE它引發以下錯誤的服務:

Unable to read WSDL from URL: https://testserver.secureservice.svc?wsdl . Error: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: java.security.cert.CertPathBuilderException: Could not build a validated path.. It is recommended that you use a web browser to retrieve and examine the requested WSDL document to ensure it is correct.

,但相同的服務從了SoapUI工具的工作原理。

我失蹤了什麼?

+4

有導入的SSL證書爲域,以便CF可以用嗎? – 2014-12-06 16:23:40

回答