Ryan Leary wrote: > Thanks Robert, > > I'll look into your tips tomorrow and let you know how it goes. > > I actually need to provide the web service. I would like to use REST, > but my web service must fit the signature above. The client that wants > to consume this web service uses SOAP. I've had no problem consuming > SOAP webservices...but need to figure out how to provide one with that > signature (or if there is a way in REST to match that signature).
SOAP: String receiveEvents (String a, String b, String c); // Assuming Java style syntax REST: GET: http://example.com/events.xml?a=a&b=b&c=c Response would then contain PO-XML something like: <?xml version="1.0" encoding="UTF-8" ?> <events> <event> <attribute-1 /> <attribute-2 /> <attribute-3 /> <attribute-4 /> </event> <event> <attribute-1 /> <attribute-2 /> <attribute-3 /> <attribute-4 /> </event> <event> <attribute-1 /> <attribute-2 /> <attribute-3 /> <attribute-4 /> </event> </events> Or in case of error you get back an HTTP error response. Basically it just HTTP like any other web resource. Also the .xml is not required if the ACCEPTS header is set properly in the HTTP request. But, you can read up on REST how how it works on you own. It can't easily be fully explained in the context of a forum. However, I'm pretty sure that's not what your consumer is going to want to hear. They likely won't understand that REST actually does work. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

