0 Replies Latest reply on Sep 8, 2009 3:31 AM by Dileep_NR

    https://xxxxx/flex2gateway/cfamfsecure -Channel.Connect.Failed error

    Dileep_NR Level 2

      What i am trying to achive is have to use method from "https://test.com"(local site) to another site.

      when i tried with "http://test.com" it worked and got the value from the function in the cfc. but when tried with https got the following error

       

       

      Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'https://test.com/flex2gateway/cfamfsecure'

      com.cfmx.external.ajax.gallery.gallery have the function listGallery

      Code

      <mx:Script>
              <![CDATA[
                  import mx.controls.Alert;
                  import mx.rpc.Fault;
                  import mx.rpc.events.FaultEvent;
                  import mx.rpc.events.ResultEvent;
                  import mx.rpc.remoting.RemoteObject;
                  public function dosomething():void
                  {
                      remoteobj.listGallery(10,1);
                  }
                  public function remotetest_result(event:ResultEvent):void
                  {
                      //total.text = String(event.result);
                      Alert.show("sucess");
                  }
                  public function server_fault(result:FaultEvent):void
                  {
                      Alert.show("fault");
                  }
                  private function init():void
                  {
                   Security.loadPolicyFile("https://test.com/crossdomain.xml");    
                  }
              ]]>
          </mx:Script>
         
         
          <mx:RemoteObject id="remoteobj" 
              destination="ColdFusion" result="remotetest_result(event);" fault="server_fault(event);"
              source="com.cfmx.external.ajax.gallery.gallery"
              endpoint="https://test.com/flex2gateway/cfamfsecure">
          </mx:RemoteObject>

       

      Crossdomain in test.com

       

      <?xml version="1.0"?>
      <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
      <cross-domain-policy>
      <allow-access-from domain="*" />
      </cross-domain-policy>

       

      please advice