From tieg.zaharia at gmail.com Thu Jul 12 15:18:29 2007 From: tieg.zaharia at gmail.com (Tieg Zaharia) Date: Thu, 12 Jul 2007 15:18:29 -0400 Subject: [ap4r-user] Getting HelloWorld in Rails running Message-ID: <156c5bc40707121218n70414773p5ead0941bba42ef9@mail.gmail.com> Konnichiha, I am a Rails/Ruby developer in the US and I am trying out AP4R today; thanks for the project. In the instructions for the HelloWorld sample application, the wiki says to "cd my_ap4r". I have 2 questions: 1) are you supposed to setup ap4r in RAILS_ROOT with "ap4r_setup my_ap4r" since it's not already in the HelloWorld application in svn? 2) in development mode, what do you need in RAILS_ROOT/config/ap4r. yml for ap4r to be visible to your Rails app? Thanks, Tieg -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ap4r-user/attachments/20070712/d8a3c9ec/attachment.html From tieg.zaharia at gmail.com Thu Jul 12 17:03:56 2007 From: tieg.zaharia at gmail.com (Tieg Zaharia) Date: Thu, 12 Jul 2007 17:03:56 -0400 Subject: [ap4r-user] Getting HelloWorld in Rails running In-Reply-To: <156c5bc40707121218n70414773p5ead0941bba42ef9@mail.gmail.com> References: <156c5bc40707121218n70414773p5ead0941bba42ef9@mail.gmail.com> Message-ID: <156c5bc40707121403q48134278v829123e4b5363cb8@mail.gmail.com> I successfully got HelloWorld working, but I had to do one different thing that wasn't in the FAQ-- I had to run the following command on the uuid-x.y.z directory so that the uuid.state file could be written to it: sudo chmod 775 $GEM_HOME/gems/uuid-1.0.3/ I'm on Mac OSX 10.4.10, Ruby version 1.8.5 Tieg On 7/12/07, Tieg Zaharia wrote: > > Konnichiha, > > I am a Rails/Ruby developer in the US and I am trying out AP4R today; > thanks for the project. In the instructions for the HelloWorld sample > application, the wiki says to "cd my_ap4r". I have 2 questions: > > 1) are you supposed to setup ap4r in RAILS_ROOT with "ap4r_setup my_ap4r" > since it's not already in the HelloWorld application in svn? > > 2) in development mode, what do you need in RAILS_ROOT/config/ap4r. > yml for ap4r to be visible to your Rails app? > > Thanks, > > Tieg > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ap4r-user/attachments/20070712/6e12c0b5/attachment.html From shinohara.shunichi at future.co.jp Thu Jul 12 21:15:41 2007 From: shinohara.shunichi at future.co.jp (shinohara.shunichi at future.co.jp) Date: Fri, 13 Jul 2007 10:15:41 +0900 Subject: [ap4r-user] Getting HelloWorld in Rails running In-Reply-To: <156c5bc40707121403q48134278v829123e4b5363cb8@mail.gmail.com> References: <156c5bc40707121218n70414773p5ead0941bba42ef9@mail.gmail.com> <156c5bc40707121403q48134278v829123e4b5363cb8@mail.gmail.com> Message-ID: <14CE73B79D552644B7CBEF0428763DF602B08A72@045MAIL.future.co.jp> Hi Tieg, Thank you for your interest on AP4R! Changing the mode is dropped out in the GetingStarted steps, sorry for that. We have wiki on rubyforge and this issue is listed on the FAQ page (you have probably checked it). http://ap4r.rubyforge.org/wiki/wiki.pl?FAQ#The_library_UUID_throws_error I'm also mainly work on Max OS X, and take the latter way (symlink to /etc/ruby-uuid/uuid-state). I want to specify the file path in queues.cfg , but it needs a little fix in reliable-msg files. As for your questions, I'm afraid you have already solved them :-), 1) I suppose AP4R's root dir (e.g. my_ap4r) has no relation to RAILS_ROOT. Can be complelely different, can be the same. 2) config/ap4r.yml is yet rather experimental. It is used in testing, so used neither in development nor production. In RAILS_ROOT/test/async dir, a sample test code exists. config/ap4r.yml is used *only* by this code. I aim that we can test/spec in Test::Unit framework including asynchronous messaging. If you have more questions or some suggestions on AP4R, please tell me! Best regards, shino ________________________________ From: ap4r-user-bounces at rubyforge.org [mailto:ap4r-user-bounces at rubyforge.org] On Behalf Of Tieg Zaharia Sent: Friday, July 13, 2007 6:04 AM To: ap4r-user at rubyforge.org Subject: Re: [ap4r-user] Getting HelloWorld in Rails running I successfully got HelloWorld working, but I had to do one different thing that wasn't in the FAQ-- I had to run the following command on the uuid-x.y.z directory so that the uuid.state file could be written to it: sudo chmod 775 $GEM_HOME/gems/uuid-1.0.3/ I'm on Mac OSX 10.4.10, Ruby version 1.8.5 Tieg On 7/12/07, Tieg Zaharia < tieg.zaharia at gmail.com > wrote: Konnichiha, I am a Rails/Ruby developer in the US and I am trying out AP4R today; thanks for the project. In the instructions for the HelloWorld sample application, the wiki says to "cd my_ap4r". I have 2 questions: 1) are you supposed to setup ap4r in RAILS_ROOT with "ap4r_setup my_ap4r" since it's not already in the HelloWorld application in svn? 2) in development mode, what do you need in RAILS_ROOT/config/ap4r. yml for ap4r to be visible to your Rails app? Thanks, Tieg -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ap4r-user/attachments/20070713/dcd554fa/attachment.html From dave at interactivemediums.com Mon Jul 16 17:33:48 2007 From: dave at interactivemediums.com (Dave Farkas) Date: Mon, 16 Jul 2007 16:33:48 -0500 Subject: [ap4r-user] a couple questions Message-ID: <921b71e30707161433xb201eb6q17997e66d6106cab@mail.gmail.com> Hi, I've been using AP4R for a couple weeks and had some questions: In dispatcher.rb, when judging a valid response for SOAP, is there a reason the result is only a failure when the transaction finishes with an exception? It seems to me that SOAP should function like XmlRpc and the transaction should only be judged as a success if the first element of the result is true (false otherwise). When initiating an ap4r transaction with saf, the message and queue information are stored in the stored_messages table. How can these messages be recovered if something goes wrong, say for example, when the queue is down? There is a rails_plugin in the ../gems/ap4r-0.3.2 directory that is different from the plugin used for the HelloWorld application. Which one should be used? Thanks for the project! Dave Farkas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ap4r-user/attachments/20070716/0f9f3957/attachment.html From shinohara.shunichi at future.co.jp Wed Jul 18 10:02:55 2007 From: shinohara.shunichi at future.co.jp (shinohara.shunichi at future.co.jp) Date: Wed, 18 Jul 2007 23:02:55 +0900 Subject: [ap4r-user] a couple questions In-Reply-To: <921b71e30707161433xb201eb6q17997e66d6106cab@mail.gmail.com> References: <921b71e30707161433xb201eb6q17997e66d6106cab@mail.gmail.com> Message-ID: <7C4EFE69919982439B19F46110A87B1C5F10DD@045MAIL.future.co.jp> Hi Dave, Thank you for your interest in AP4R! 1. SOAP response validation > when judging a valid response for SOAP, is there a reason the result is only a failure when the transaction finishes with an exception? SOAP4R's RPC driver (SOAP::RPC::Driver) checks SOAP fault in "call" method of response and raise Exception, I think. I don't read SOAP4R su much, so if you have actual example about this issue and when possible, would you tell me about that? 2. stored_messages recovery This feature is in the TODO list, and not implemented. A temporary attempt are made and exists in the app/controller/saf_controller.rb of the HelloWorld application. This can be called from web browser. 3. plugin source code The code in the HelloWorld application is right. By a mistake in release, old plugin source code was included in the gem, I apologize. Any feedbacks are welcome! I'll be very glad if you tell me your impressions, requests or anything else. Best regars, shino