marcus.dubois-GWLJtjCW+GcOPmVbiNFCMNBPR1lH4CV8@public.gmane.org
2005-May-11 09:24 UTC
(no subject)
Hi! I''m as new as you can be to Rails, discovered it yesterday and I''m really excited about what it can do! As of now I''m planning on converting a Java webapp that I''m developing to use ruby and Rails instead but I have some questions about if it''s possible. What follows is a very simple explanation about the genereal behaviour. The webbapp is written in Java and will receive POST requests from a Flash application. The request is a simple XML file containing a command and some data that the backend will use for computing and/or talking with a mysql database. Finally teh webbapp writes the result back as an XML file that the Flash application will interpret. My question is this can this be done with Rails, ie. can I respond the POST requests and receive the data that the Flash application sends to me. Then doing some computing and talking with a MySQL database only to write the result back as an XML file? I haven''t had the time to really understand all that Rails can do but I''m looking forward to the next few days with it. Please have patient with my eager newbee question! Thanks! Marcus
Hi Marcus, And welcome on board! On 11.5.2005, at 12:24, marcus.dubois-GWLJtjCW+GcOPmVbiNFCMNBPR1lH4CV8@public.gmane.org wrote:> > My question is this can this be done with Rails, ie. can I respond the > POST > requests and receive the data that the Flash application sends to me. > Then > doing some computing and talking with a MySQL database only to write > the > result back as an XML file?Absolutely. Here''s an example from Typo of how you can easily build xml output with the xml builder Rails uses: http://typo.leetsoft.com/trac.cgi/file/trunk/app/views/xml/rss.rxml //jarkko -- Jarkko Laine http://jlaine.net http://odesign.fi _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails