Hi, In my application, I have to make 3rd party java apis. Actually, I have to use a sms gateway provider''s apis. They have a java sdk which I have to use to send and receive sms. How can I call java apis from within a controller? In my controller, I have to receive request and use the java api to get the data out of request. Process the data in controller action and then send the result back as sms using the api to send sms. How can I call java apis from a controller action ? Thanks. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
The most generic solution I can think of would be to wrap the Java SMS API so that it''s exposed through 1 or more Web Service APIs. You could write the wrapper in either Java or Ruby/JRuby. I regularly use this approach to talk to "foreign" APIs; I just finished doing exactly this to let me refer to a datastore that''s actually a TestDirector defect database. Regards Dave M. On 19/02/07, Rm Rm <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Hi, > > In my application, I have to make 3rd party java apis. Actually, I have > to use a sms gateway provider''s apis. They have a java sdk which I have > to use to send and receive sms. How can I call java apis from within a > controller? > > In my controller, I have to receive request and use the java api to get > the data out of request. Process the data in controller action and then > send the result back as sms using the api to send sms. How can I call > java apis from a controller action ? > > Thanks. > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
apsoto-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Feb-19 22:09 UTC
Re: How to call java apis
I second that. It''s exactly what we''re doing on to wrap some java api''s. We''re using Apache AXIS to help simplify things. On Feb 18, 7:13 pm, "David Mitchell" <monch1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> The most generic solution I can think of would be to wrap the Java SMS > API so that it''s exposed through 1 or more Web Service APIs. You > could write the wrapper in either Java or Ruby/JRuby. > > I regularly use this approach to talk to "foreign" APIs; I just > finished doing exactly this to let me refer to a datastore that''s > actually a TestDirector defect database. > > Regards > > Dave M. > > On 19/02/07, Rm Rm <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > > > Hi, > > > In my application, I have to make 3rd party java apis. Actually, I have > > to use a sms gateway provider''s apis. They have a java sdk which I have > > to use to send and receive sms. How can I call java apis from within a > > controller? > > > In my controller, I have to receive request and use the java api to get > > the data out of request. Process the data in controller action and then > > send the result back as sms using the api to send sms. How can I call > > java apis from a controller action ? > > > Thanks. > > > -- > > Posted viahttp://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---