Could it be done with web services?

Hi all

here is what I need

  • from an Oracle jdeveloper form,
  • click on a button
  • open a web application in RoR,
  • let the user choose several options in the RoR page and calculate a
    Total Amount,
  • return the total amount to the jdeveloper application,

Could it be done with web services?

-the Oracle jdeveloper form calls a web service that opens my RoR web
application,

  • then my RoR web application returns a Total Amount value,
  • my web service returns the Total Amount
  • the jdeveloper form gets the Total Amount from the web service

Which are the other options available to make an jdeveloper form
communicate with a RoR application?

Regards