Forum: Ruby on Rails How to call java apis

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ffb15a8418eb7f49060b6764aba1dc52?d=identicon&s=25 Rm Rm (rmehta)
on 2007-02-19 02:32

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

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 ?

F3dc06f587d1ff4c7366b102bfda9204?d=identicon&s=25 David Mitchell (Guest)
on 2007-02-19 04:14
(Received via mailing list)
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.


Dave M.
Ae97ad0da5c7887be291561eb1720093?d=identicon&s=25 Alex Soto (asoto)
on 2007-02-19 23:10
(Received via mailing list)
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.
This topic is locked and can not be replied to.