--- In [email protected], "ericbichara" <[EMAIL PROTECTED]> 
wrote:
>
> Hi, your config script looks fine to me, give us an example of your
> service.mxlm file, maybe youre calling the service inccorectly? 
Here
> is an example of mine:
> 
> <?xml version="1.0" encoding="utf-8"?>
> <cairngorm:ServiceLocator 
>       xmlns:mx="http://www.adobe.com/2006/mxml";       
>       xmlns:cairngorm="com.adobe.cairngorm.business.*">
>    
>       <mx:RemoteObject id="LoginService" 
>               destination="amfphp" 
>               source="Login"
>               showBusyCursor="true"/> 
> 
> </cairngorm:ServiceLocator>
> 
> and script:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <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://localhost/amfphp/gateway.php";
> class="flex.messaging.endpoints.AMFEndpoint"/>
>         </channel-definition>
>     </channels>
> </services-config>
> 
> --- In [email protected], "mapper2255" <mapper2255@> 
wrote:
> >
> > Hello,
> > 
> > Have been trying all day to get CairngromStore running and keep 
> > getting this error: theMessagingError message='Unknown 
> > destination 'AMFPHP1_9'.' Using xampp/php 5.
> > 
> > Have searched a long time for the answer with no help. Ran 
across 
> > this thread: http://www.mail-
> > archive.com/[email protected]/msg49480.html.
> > 
> > So I am using: <?xml version="1.0" encoding="UTF-8"?>
> > <services-config>
> >     <services>
> >         <service id="amfphp-flashremoting-service"
> >                  class="flex.messaging.services.RemotingService"
> >                  
> > messageTypes="flex.messaging.messages.RemotingMessage">
> >             <destination id="AMFPHP1_9">
> >                 <channels>
> >                     <channel ref="my-amfphp19"/>
> >                 </channels>
> >                 <properties>
> >                     <source>*</source>
> >                 </properties>
> >             </destination>
> >         </service>
> >     </services>
> > 
> >     <channels>
> >         <channel-definition id="my-amfphp19" 
> > class="mx.messaging.channels.AMFChannel">
> >             <endpoint 
uri="http://localhost/amfphp1_9/gateway.php"; 
> > class="flex.messaging.endpoints.AMFEndpoint"/>
> >         </channel-definition>
> >     </channels>
> > </services-config>
> > 
> > Have set up and have running amfphp 1.9. 
> > 
> > Any suggestions? I know it is something simple.
> > 
> > Thanks.
> >
>

This the main.mxml. Just trying to duplicate work so I have less to 
concern myself with as I get this up for the first time:

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2006 Renaun Erickson (http://renaun.com)

Add this to the compiler arguments list:
-services "amfphp19-services-config.xml"



-->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; 
        layout="vertical"
        creationComplete="doLogin()" viewSourceURL="amfphp1_9">

<!-- <mx:RemoteObject id="myservice" 
source="tutorials.PersonService" destination="amfphp" 
fault="faultHandler(event)" showBusyCursor="true">
        <mx:method name="getList" result="getListHandler(event)" 
fault="faultHandler(event)" />
    </mx:RemoteObject> -->
        
<mx:RemoteObject 
                        id="roTestService" 
                        destination="amfphp1_9"
                        source="amfphp1_9ServiceClases.MyTestService"
                        result="Alert.show( event.result 
+ '', 'Result' )"
                        fault="Alert.show( 
event.fault.faultString , 'Error' )">
           <mx:method name="testMethod" />
        </mx:RemoteObject> 

        <mx:Script>
                <![CDATA[
                import mx.controls.Alert;
                
                private function doLogin():void
                {
                        roTestService.testMethod( "test", "test" );
        
                }
                ]]>
        </mx:Script>
        
        <mx:Button label="Create Fault" click="roTestService.noMethod
()" />

</mx:Application>

The thread I posted earlier has services-config.xml calling amfphp19-
services-config.xml so I again am trying to go along. The services-
config.xml is:

<?xml version="1.0" encoding="UTF-8"?>
<services-config>
     <services>
        
        <service-include file-path="c:\amfphp_cairngorm\amfphp19-
services-config.xml" />
        
    </services>
</services-config>

I added the absolute path because of advise from others who had 
similiar problem: 
http://www.5etdemi.com/blog/archives/2006/12/amfphp-19-beta-get-it-
now/

Thanks for any help Eric.


Reply via email to