Hello, I was wondering if anyone has a quick start guide for web services with rails. I''m trying to integrate with PayPal''s new web services API so my customer never has to leave my site. I''ll open this up on rubyforge if I ever get it done. Has anyone tried this yet? Any good web service code examples would be helpful. Basically PayPal has a WSDL along with 2 XSD files which define the component types. Can the Action Web Service classes (controllers, api classes, etc.) be generated using these? http://www.sandbox.paypal.com/wsdl/PayPalSvc.wsdl http://www.sandbox.paypal.com/wsdl/eBLBaseComponents.xsd http://www.sandbox.paypal.com/wsdl/CoreComponentTypes.xsd Most of the documentation out there is to receieve a web service request with Rails. I don''t see much as for as sending a request. Thanks for your help guys, Nalin Mittal
Nalin <nalin.mittal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:> I''m trying to integrate with PayPal''s new web services API so my > customer never has to leave my site. I''ll open this up on rubyforge if > I ever get it done. Has anyone tried this yet?http://dist.leetsoft.com/api/paypal/ -- doug-jGAhs73c5XxeoWH0uzbU5w@public.gmane.org
Hi, I''ve put some example files up at: http://forum.railsapphosting.com/downloads/soap_example.tar.gz It''s an example of interfacing with a web service that sends faxes: http://webservices.xpedite.com.au/xpeditemessaging/faxreach/1-0-0/faxreach.asmx?op=SendMessage Be sure to also check out: http://dev.ctor.org/doc/soap4r/RELEASE_en.html You might want to download the latest snapshot of soap4r as well to ensure smooth riding. Cheers, Ben On 8/9/05, Nalin <nalin.mittal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: ...> Any good web service code examples would be helpful. Basically PayPal > has a WSDL along with 2 XSD files which define the component types. > Can the Action Web Service classes (controllers, api classes, etc.) be > generated using these?...
On Aug 8, 2005, at 10:50 PM, Doug Alcorn wrote:> Nalin <nalin.mittal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes: > >> I''m trying to integrate with PayPal''s new web services API so my >> customer never has to leave my site. I''ll open this up on rubyforge if >> I ever get it done. Has anyone tried this yet? > > http://dist.leetsoft.com/api/paypal/ >This is only for Paypal''s IPN, not for their web services APIs. -Scott
On 8/9/05, Nalin <nalin.mittal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Any good web service code examples would be helpful. Basically PayPal > has a WSDL along with 2 XSD files which define the component types. > Can the Action Web Service classes (controllers, api classes, etc.) be > generated using these?Hi Nalin, At present Action Web Service is geared towards providing web services. For consuming WSDL-based web services, you''ll have to rely on SOAP4R. Here''s a quick snippet: require "soap/wsdlDriver" factory = SOAP::WSDLDriverFactory.new("http://url/to/wsdl") client = factory.createDriver ret = client.someMethod(arg1, arg2) Perhaps this is something you could do at the startup of your application (load from a local path though)? We''re working on improved support :) Leon