0 Replies Latest reply on Jul 18, 2010 3:02 AM by saadi khan

    Channel definition, mxmessaging.channels.AMFChannel, can not be found.

    saadi khan

      Hello,

      I am using flex builder 3 and need to call some server-side methods.

      I have done it before successfully on my local pc but when I tried to do same on my server machine (windows server 2008) to make my hosted website to do same, flex builder is giving me this error:

       

      Channel definition, mxmessaging.channels.AMFChannel, can not be found

       

      I have services-config.xml file and have also set flex compiler like this:

      -locale en_US -services "services-config.xml" -context-root /

       

      My websites root folder is AutotrackServer, and everything is in it. My flex file (swf) is in AutotrackServer/FlexMap/FlexMap.swf along with services-config.xml file.

       

      Here is how my services-config.xml looks like:

       

      <?xml version="1.0" encoding="utf-8" ?>

      <services-config>

        <services>

          <service id="remoting-service" class="flex.messaging.services.RemotingService" messageTypes="flex.messaging.messages.RemotingMessage">

            <destination id="fluorine">

              <channels>

                <channel ref="my-amf"/>

              </channels>

              <properties>

                <source>*</source>

              </properties>

            </destination>

          </service>

        </services>


        <channels>

          <channel-definition id="my-amf" class="mxmessaging.channels.AMFChannel">

            <endpoint uri="http://www.autotrackserver.com/gateway.aspx" class="flex.messaging.endpoints.AMFEndpoint"/>

            <properties>

              <!-- <legacy-collection>true</legacy-collection> -->

            </properties>

          </channel-definition>

        </channels>

      </services-config>

       

      I am stuck in this since a month now...its a situation like to cry