Re: [flexcoders] Re: ZendAmf Setup issue 1.7 where gateway filw working ?
Hi Tiendans , Thanks for comemnts , I had zend framework path in both ways but I was stoping echo command so it shud not come up for download I am going to check this again and will let you know Thanks :) From: "tiend...@ezweb.ne.jp" To: flexcoders@yahoogroups.com Sent: Thursday, February 5, 2009 2:03:35 AM Subject: [flexcoders] Re: ZendAmf Setup issue 1.7 where gateway filw working ? Hi Sajid Hussain I think you are wrong in setting Gateway file, Do you have set path for Zendamf library, you can setting Zendamf library in php.ini file as below include_path = "C:\library" or setting in you gateway file as below When you browser gateway file (index.php) and it comes up for download . Dont borther it, it right. At time, you can start Flex app and test. Best regard http://blog. flextip.net --- In flexcod...@yahoogro ups.com, Sajid Hussain wrote: > > > > > Hello Gurus , > > I am facing one issue where i am attempting to use Zend_amf but that code exactly work well with Amfphp, > I have seen all internet resources for zend and I am very courios on thier machine same code is working why not at mine :( > if I am trying to access gateway(Zend File) it work well but its not working from Flex App . > I have follwoing code and structure > > Gateway File : > require_once 'Zend/Amf/Server. php'; > require_once 'include/services/ BListsService. php'; > require_once 'include/services/ UserService. php'; > // Instantiate the server > $server = new Zend_Amf_Server( ); > $server->setClass( 'BListsSer vice'); > $server->setClassMa p( 'BListsVO' , 'BLists'); > $server->setClass( 'UserServi ce'); > $server->setClassMa p( 'UserVO', 'User'); > $server->setProduct ion( false); > $server->handle( ); // if I am echoing this its not execute and instead it comes up for download > ?> > > Services-xml : > > > > class="flex. messaging. services. RemotingService" > messageTypes= "flex.messaging. messages. RemotingMessage" > > > > > > > * > > > > > > > > > > > > Remote Services : > > id="BListsService" > source="BListsServi ce" destination= "zend" endpoint="http: //localhost/ gateway.php" > showBusyCursor= "true"> > > > Please Reple > -Saj >
[flexcoders] Re: ZendAmf Setup issue 1.7 where gateway filw working ?
Saj I think you have multiple problems in your setup. Here is a quick HelloWorld example: My PHP server is set up with two directories - Zend (Holds the Zend Framework) and ZendServices (Where all my AMF Services files are located in sub directories). In this ZendServices directory I have a Samples directory which has a helloamf directory. In this directory I have two files - index.php and HelloWorld.php... = index.php: setClass( "HelloWorld" ); echo( $server -> handle() ); = HelloWorld.php: = Now to the Flex files. I have a project named ZendAMFSampleHelloAMF (You can name yours whatever you want). = ZendAMFSampleHelloAMF.mxml: http://www.adobe.com/2006/mxml";> = services-config.xml: * http://myserver.com/ZendServices/Samples/helloamf/"; class="flex.messaging.endpoints.AMFEndpoint"/> = Note that the endpoint points to my helloamf directory on my server (See above). There is no gateway.php file with Zend_Amf. Now, all you need to do is set your compiler preference additional compiler arguments to: -locale en_US -services "services-config.xml" If you need a further example on how to pass value objects, please let me know. HTH Steve --- In flexcoders@yahoogroups.com, Sajid Hussain wrote: > > > > > Hello Gurus , > > I am facing one issue where i am attempting to use Zend_amf but that code exactly work well with Amfphp, > I have seen all internet resources for zend and I am very courios on thier machine same code is working why not at mine :( > if I am trying to access gateway(Zend File) it work well but its not working from Flex App . > I have follwoing code and structure > > Gateway File : > require_once 'Zend/Amf/Server. php'; > require_once 'include/services/ BListsService. php'; > require_once 'include/services/ UserService. php'; > // Instantiate the server > $server = new Zend_Amf_Server( ); > $server->setClass('BListsSer vice'); > $server->setClassMap( 'BListsVO' , 'BLists'); > $server->setClass('UserServi ce'); > $server->setClassMap( 'UserVO', 'User'); > $server->setProduction( false); > $server->handle(); // if I am echoing this its not execute and instead it comes up for download > ?> > > Services-xml : > > > > class="flex. messaging. services. RemotingService" > messageTypes= "flex.messaging. messages. RemotingMessage"> > > > > > > * > > > > > > > > > > > > Remote Services : > > id="BListsService" > source="BListsServi ce" destination= "zend" endpoint="http: //localhost/ gateway.php" > showBusyCursor= "true"> > > > Please Reple > -Saj >
[flexcoders] Re: ZendAmf Setup issue 1.7 where gateway filw working ?
Hi Sajid Hussain I think you are wrong in setting Gateway file, Do you have set path for Zendamf library, you can setting Zendamf library in php.ini file as below include_path = "C:\library" or setting in you gateway file as below When you browser gateway file (index.php) and it comes up for download . Dont borther it, it right. At time, you can start Flex app and test. Best regard http://blog.flextip.net --- In flexcoders@yahoogroups.com, Sajid Hussain wrote: > > > > > Hello Gurus , > > I am facing one issue where i am attempting to use Zend_amf but that code exactly work well with Amfphp, > I have seen all internet resources for zend and I am very courios on thier machine same code is working why not at mine :( > if I am trying to access gateway(Zend File) it work well but its not working from Flex App . > I have follwoing code and structure > > Gateway File : > require_once 'Zend/Amf/Server. php'; > require_once 'include/services/ BListsService. php'; > require_once 'include/services/ UserService. php'; > // Instantiate the server > $server = new Zend_Amf_Server( ); > $server->setClass('BListsSer vice'); > $server->setClassMap( 'BListsVO' , 'BLists'); > $server->setClass('UserServi ce'); > $server->setClassMap( 'UserVO', 'User'); > $server->setProduction( false); > $server->handle(); // if I am echoing this its not execute and instead it comes up for download > ?> > > Services-xml : > > > > class="flex. messaging. services. RemotingService" > messageTypes= "flex.messaging. messages. RemotingMessage"> > > > > > > * > > > > > > > > > > > > Remote Services : > > id="BListsService" > source="BListsServi ce" destination= "zend" endpoint="http: //localhost/ gateway.php" > showBusyCursor= "true"> > > > Please Reple > -Saj >