Hi all.. I new in Ruby/Rails.. Where could i get some good tutorial about SOAP using Rails? I''ve been googling yet still did''nt find good tutorial. Thank you in advance.. :) -- Regards, Ananda Putra
On Wed, Jun 14, 2006 at 10:24:18AM +0700, Ananda Putra wrote:> I new in Ruby/Rails.. Where could i get some good tutorial about SOAP > using Rails?Active Web Development with Rails has a basic section on using Active Web Services -- everything I know I know from that. If you''re looking at client-side stuff, The Pickaxe ("Programming Ruby", 2nd edition) has a page or so of info on using the SOAP4R stuff, which is enough to get you moving, at least. - Matt
On 6/13/06, Matthew Palmer <mpalmer@hezmatt.org> wrote:> On Wed, Jun 14, 2006 at 10:24:18AM +0700, Ananda Putra wrote: > > I new in Ruby/Rails.. Where could i get some good tutorial about SOAP > > using Rails? > > Active Web Development with Rails has a basic section on using Active Web > Services -- everything I know I know from that. If you''re looking at > client-side stuff, The Pickaxe ("Programming Ruby", 2nd edition) has a page > or so of info on using the SOAP4R stuff, which is enough to get you moving, > at least.I followed the Agile Rails book stuff on SOAP and I think I got it working. I could never find out how to get a client to access the server apps SOAP services. I asked here a couple times but no one could help me. Made me think that people have SOAP servers built on rails but no one can access them. Any tips? Peter
I''ve just follow the example from this: http://www.db75.com/new_blog/?p=201 But it didn''t work on me since there is a proxy in our network. How to set the proxy for the example? Btw, if I do something like this: soap_client = SOAP::WSDLDriverFactory.new("http://services.xmethods.net/soap/ urn:xmethods-delayed-quotes.wsdl") then i want to show all properties and methods of "soap_client" object, how could i do it in Rails/Ruby? Usualy in PHP, i just do <?php print_r($object); ?> Thanks.
On Tue, Jun 13, 2006 at 09:04:13PM -0700, Peter Michaux wrote:> On 6/13/06, Matthew Palmer <mpalmer@hezmatt.org> wrote: > >On Wed, Jun 14, 2006 at 10:24:18AM +0700, Ananda Putra wrote: > >> I new in Ruby/Rails.. Where could i get some good tutorial about SOAP > >> using Rails? > > > >Active Web Development with Rails has a basic section on using Active Web > >Services -- everything I know I know from that. If you''re looking at > >client-side stuff, The Pickaxe ("Programming Ruby", 2nd edition) has a page > >or so of info on using the SOAP4R stuff, which is enough to get you moving, > >at least. > > I followed the Agile Rails book stuff on SOAP and I think I got it > working. I could never find out how to get a client to access the > server apps SOAP services. I asked here a couple times but no one > could help me. Made me think that people have SOAP servers built on > rails but no one can access them. Any tips?I just use the standard SOAP4R library, something very much like the example posted downthread by Ananda Putra. - Matt
On Wed, Jun 14, 2006 at 11:37:19AM +0700, Ananda Putra wrote:> then i want to show all properties and methods of "soap_client" > object, how could i do it in Rails/Ruby?require ''pp'' pp soap_client.methods.sort pp soap_client.instance_variables Introspection is a lovely thing. - Matt -- English is about as pure as a cribhouse whore. We don''t just borrow words; on occasion, English has pursued other languages down alleyways to beat them unconscious and rifle their pockets for new vocabulary." -- James D. Nicoll, resident of rec.arts.sf.written