Skip to main content
July 18, 2011
Answered

Using cfajaxproxy with SSL

  • July 18, 2011
  • 1 reply
  • 1304 views

I am getting a similar error message.

"Component  returned failure code: 0x80004005 (NS_ERROR_FAILURE)" nsresult:  "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: https://www.xxxxx.com/CFIDE/scripts/ajax/package/cfajax.js :: <TOP_LEVEL> :: line 147"

This was working before an SSL certificate was added to the site.

Using Coldfusion 8: cfajaxproxy:

<<file.cfm>>

<cfajaximport/>
<cfajaxproxy cfc="folder.customServices.services" jsclassname="jsobj" >

<<file.js>>

var cfcAsAjax = new jsobj();
aProcessMembershipReturn = cfcAsAjax.processMembership(arguments);

Is there something special that has to be done to make this work with https?

    This topic has been closed for replies.
    Correct answer 12Robots

    I had never attempted to try this before... I hope I got it right.

    I tried the following:

    https://www.xxxx.com/Ep/customServices/services.cfc?method=isValidTempcard&tempCardNumber=100008

    Result:

    -Nothing is displayed on the page (Is this the correct reponse?)

    -the url changed to http

    Again this is not something I have tried before so I'm unsure as to what I should be expecting.


    If the URL changed to http:// then there is some sort of redirect happening and the call failed. I would guess something is configured wrong with your webserver.  The SSL call should behave no differently and when you call it from the browser you should see the data you are expecting to receive back.

    You said the non-SSL version still works, right?  What happens when you call that from the browser?

    1 reply

    12Robots
    Participating Frequently
    July 18, 2011

    Is the page you are calling from also using SSL?  From the same domain?

    July 18, 2011

    Hi 12Robots,

    Yes, the cfm page I'm calling from is also using SSL and Yes, from the same domain.

    Additional information:

    So far it looks like the ajax call is working. What I mean by this is, the component(cfc) function call is completeing (doing what it is suppose to do).

    It would seem it's the coldfusion return that the javascript is complaining about.

    In one instance I have coldfusion returning a boolean, and in an other instance an array. (both cause similar error messages)

    I'm continuing to investigate this.

    Any ideas?

    July 18, 2011

    More info,

    Disregard the previous 'Additional information'.

    The component function is not processing. I ran additional tests and this is not the case.

    I did however add the following code without any change.

    cfcAsAjax.setHTTPMethod("POST");