[flexcoders] Re: Cairngorm 2.1 AMFPHP 1.9
Another gotcha that comes up is the destination names are case sensitive. Confirm they are the same case in the MXML code and the services config. You say, posted earlier has services-config.xml calling amfphp19- services-config.xml... Try using a services-config.xml file that defines all the endpoints, destinations, and channels in one file and see if that helps. An example application connecting to multiple backend's (AMFPHP 1.2 and AMFPHP 1.9) can be found here: http://api.renaun.com/flex2/posts/CairngormStoreMultipleBackend/CairngormStoreMultipleBackend.zip Renaun --- In flexcoders@yahoogroups.com, roadchief [EMAIL PROTECTED] wrote: I don't know if this is related or not - but if you are using the services-config.xml file (as defined in your response below) to define the channels and endpoints, etc., then you need to have '-services services-config.xml' in the Flex compiler additional compiler arguments. Just a thought - Chief --- In flexcoders@yahoogroups.com, mapper2255 mapper2255@ wrote: --- In flexcoders@yahoogroups.com, ericbichara ericbichara@ 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 flexcoders@yahoogroups.com, 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/flexcoders@yahoogroups.com/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'
[flexcoders] Re: Cairngorm 2.1 AMFPHP 1.9
I don't know if this is related or not - but if you are using the services-config.xml file (as defined in your response below) to define the channels and endpoints, etc., then you need to have '-services services-config.xml' in the Flex compiler additional compiler arguments. Just a thought - Chief --- In flexcoders@yahoogroups.com, mapper2255 [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, ericbichara ericbichara@ 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 flexcoders@yahoogroups.com, 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/flexcoders@yahoogroups.com/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
[flexcoders] Re: Cairngorm 2.1 AMFPHP 1.9
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 flexcoders@yahoogroups.com, mapper2255 [EMAIL PROTECTED] 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/flexcoders@yahoogroups.com/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.
[flexcoders] Re: Cairngorm 2.1 AMFPHP 1.9
--- In flexcoders@yahoogroups.com, 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 flexcoders@yahoogroups.com, 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/flexcoders@yahoogroups.com/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.