• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CF10 WSDL Issue

Community Beginner ,
Apr 29, 2014 Apr 29, 2014

Copy link to clipboard

Copied

I am runing the follow code in CF9 without any issue; I have issue runing the same code in CF10

<cftry>

  <cfinvoke

  webservice="http://www.webservicex.net/CurrencyConvertor.asmx?WSDL"

   method="ConversionRate"

   returnVariable="ToCurrencyValue"

   >

   <cfinvokeargument name="FromCurrency" value="USD" />  

   <cfinvokeargument name="ToCurrency" value="EUR" />

</cfinvoke>

<cfcatch type="any">

   <cfset UpdateExchangeRate = "NOINTERNET">

</cfcatch>

</cftry>

I added the following code - and it is working in one of my CF10 environment but I get WSDL access error when trying in a new CF10.

<cfset args = {refreshWSDL=true, wsversion=1}>

<cfset local.service = createObject("webservice"

               , "http://www.webservicex.net/CurrencyConvertor.asmx?WSDL"

              , args)>

The web site you are accessing has experienced an unexpected error.

Please contact the website administrator.

 

The following information is meant for the website developer for debugging purposes.
Error Occurred While Processing Request
 

Unable to read WSDL from URL: http://www.webservicex.net/CurrencyConvertor.asmx?WSDL.

Error: java.net.SocketException: Permission denied: connect. It is recommended that you use a web browser to retrieve and examine the requested WSDL document to ensure it is correct.

Any idea?

Thanks

Kam

Views

663

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Apr 30, 2014 Apr 30, 2014

Sounds like a JVM issue. Add this extra option:

-Djava.net.preferIPv4Stack=true

to your JVM arguments in the ColdFusion administrator Java/JVM settings and give that a try please. Ensure there is a space before the -D so that the new argument is separated. Then restart ColdFusion and re-try.

Votes

Translate

Translate
Guide ,
Apr 29, 2014 Apr 29, 2014

Copy link to clipboard

Copied

I'm not at all versed in WSDL and Soap webservices, but might this be an AXIS 1 vs. AXIS 2 issue?  See this blog post for more details.

-Carl V.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 29, 2014 Apr 29, 2014

Copy link to clipboard

Copied

I have tried that <cfset args = {refreshWSDL=true, wsversion=1}> - It works in on enviromnent and not the other!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 30, 2014 Apr 30, 2014

Copy link to clipboard

Copied

Sounds like a JVM issue. Add this extra option:

-Djava.net.preferIPv4Stack=true

to your JVM arguments in the ColdFusion administrator Java/JVM settings and give that a try please. Ensure there is a space before the -D so that the new argument is separated. Then restart ColdFusion and re-try.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 30, 2014 Apr 30, 2014

Copy link to clipboard

Copied

LATEST

Thanks for your help - It worked perfectly.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation