Forget the last message. It looks like you are not loading in a 
remoting-config.xml file.

You could try adding the following to the services-config.xml file (This is 
actually in my remoting-config.xml file)...

    <default-channels>
        <channel ref="my-amfphp"/>
    </default-channels>


--- In flexcoders@yahoogroups.com, "Christophe" <christophe_jacque...@...> 
wrote:
>
> Please, find below my services-config file:
> <services-config>
>       <services>
>               <service id="amfphp-flashremoting-service" 
>                                
> class="flex.messaging.services.RemotingService" 
>                                
> messageTypes="flex.messaging.messages.RemotingMessage">
>                       <destination id="amfphp">
>                               <channels>
>                                       <channel ref="my-amfphp"/>
>                               </channels>
>                               <properties>
>                                       <source>*</source>
>                               </properties>
>                       </destination>
>               </service>
>       </services>
>       
>       <channels>
>               <channel-definition id="my-amfphp" 
> class="mx.messaging.channels.AMFChannel">
>                       <endpoint 
> uri="http://www.mywebsite.com:80/amfphp/gateway.php"; 
> class="flex.messaging.endpoints.AMFEndpoint"/>
>               </channel-definition>
>       </channels>
> </services-config>
> 
> Thank you,
> Christophe,
> 
> --- In flexcoders@yahoogroups.com, "valdhor" <valdhorlists@> wrote:
> >
> > How are you setting up the channel for AMFPHP? Is it with AS3 code or with 
> > a services-config.xml file?
> > 
> > If it is the latter, check to see if you have channels set up in the XML 
> > and that you have a child channel-definition named amfphp with the endpoint 
> > set to the location of the gateway.php file inside your installation of 
> > AMFPHP.
> > 
> > If you want, I can post the relevant sections of my services-config.xml 
> > file (Even though I use WebORB. It should be the same except for the 
> > location of the gateway.php file).
> > 
> > --- In flexcoders@yahoogroups.com, "Christophe" <christophe_jacquelin@> 
> > wrote:
> > >
> > > Hello, 
> > > 
> > > In local, my application is working but with the server I have this 
> > > error: 
> > > 
> > > Message:
> > > [MessagingError message='Destination 'amfphp' either does not exist or 
> > > the destination has no channels defined (and the application does not 
> > > define any default channels.)']
> > > 
> > > Detail:
> > > Couldn't establish a connection to 'amfphp'
> > > 
> > > What is the reason of this message ?
> > > 
> > > Thank you,
> > > Christophe,
> > >
> >
>


Reply via email to