Getting Unable to read WSDL error

This is the first time I use SOAP. I am trying to call a web service using cfinvoke, which looks like this:

<cfinvoke  
    webservice="https://xyz/infoLookup.php?wsdl" 
    method="infoLookup" 
    returnVariable="info"
    > 

    <cfinvokeargument name="phoneNumber" value="7182973186"/>
    <cfinvokeargument name="userName" value="12345"/>
    <cfinvokeargument name="password" value="password"/> 
</cfinvoke> 

<cfdump var="#info#">

And here is the part of the message name from the WSDL:

<message name="infoLookupRequest">
  <part name="phoneNumber" type="xsd:string" /> 
  <part name="userName" type="xsd:string" /> 
  <part name="password" type="xsd:string" /> 
</message>

And here is part of the name of the operation from WSDL:

  <portType name="vtsInfoLookupPortType">
- <operation name="infoLookup">
  <documentation>Get phone number information.</documentation> 
  <input message="tns:infoLookupRequest" /> 
  <output message="tns:infoLookupResponse" /> 
  </operation>
  </portType>

I get the following error:

Unable to read WSDL from URL: https://xyz/infoLookup.php?wsdl.
Error: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated.

The error occurred in C:\XYZ\A\Soap\soapreq.cfm: line 37

35 : <cfinvokeargument name="phoneNumber" value="7182973186"/>
36 : <cfinvokeargument name="userName" value="12345"/>
37 : <cfinvokeargument name="password" value="password"/> 
38 : </cfinvoke> 
39 :  

I tried to find the error on the Internet, but could not understand how it is wrong in my code. Please let me know if I do something wrong.

+4
source share
1 answer

, Java ColdFusion. -, , cacerts, ColdFusion. JRE. , JRE ColdFusion " ". Java Home.

JRE cacerts. :

  • :

    cf_root//JRE/Library//cacerts

  • /J 2EE JRun 4:

    jrun_root/JRE/Library//cacerts

  • Sun JDK:

    jdk_root/JRE/Library//cacerts

  • J2EE JVM

, . Internet Explorer. , Internet Explorer , . , IE , .

  • URL- SSL Internet Explorer - https://xyz/infoLookup.php?wsdl.
  • ,
  • " ..." ( : , IE ).
  • " IE" "".
  • ""
  • " ", "..."
  • DER

ColdFusion ( IE, )

  • cmd ColdFusion
  • cacerts

Keytool Java SDK :

  • :

    cf_root//bin/Keytool

  • /J 2EE JRun 4:

    jrun_root/JRE//Keytool

  • Sun JDK:

    jdk_root//Keytool

  • J2EE JVM

:

  • ( cacerts)
  • ( jvm jvm keytool) "c:\program files\java\jre7\bin\keytool" -import -v -alias your_cert_alias_name -file C:\wherever_you_saved_the_file\cert_file.cer -keystore cacerts -storepass changeit
  • yes " ?"

: * your_cert_alias_name * , , : * C:\wherever_you_saved_the_file\cert_file.cer * ,

:

  • ( jvm jvm keytool) "c:\program files\java\jre7\bin\keytool" -list -v -keystore cacerts -alias your_cert_alias_name -storepass changeit

: * your_cert_alias_name * , ,

ColdFusion. cacerts, .

, .

+1

All Articles