mxmessaging.channels.AMFChannel, can not be found

Discussions relating to Flex RPC, Flash Remoting

mxmessaging.channels.AMFChannel, can not be found

Postby saadkhan » Sun Jul 18, 2010 10:04 am

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
saadkhan
 
Posts: 4
Joined: Sat Jul 03, 2010 6:11 pm

Re: mxmessaging.channels.AMFChannel, can not be found

Postby sansegot » Fri Jul 23, 2010 4:09 pm

There's a dot missing in your configuration file.

It should spell mx.messaging.channels.AMFChannel instead of mxmessaging.channels.AMFChannel.

So basically use this:
Code: Select all
<channels>
<channel-definition id="my-amf" class="mx.messaging.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>
sansegot
 
Posts: 17
Joined: Wed Jul 07, 2010 9:13 am

Re: mxmessaging.channels.AMFChannel, can not be found

Postby saadkhan » Sat Jul 31, 2010 5:50 pm

It worked....But now I am gettging following error message:

[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.BadVersion: : url: 'http://www.autotrackserver.com/gateway.aspx'"]

Please help me now what is wrong in it?
saadkhan
 
Posts: 4
Joined: Sat Jul 03, 2010 6:11 pm


Return to FluorineFx RPC

Who is online

Users browsing this forum: No registered users and 1 guest