How can I handle a java bean in rails?

Hi,

I have to interface (using SOAP) with an external system. Most of the
methods respond with a java bean. Look like it was done expecting java
on the client side always.

My question is, how can I interface with that, how can I take a java
bean and handle it on the RoR side?

Any hints?

Thanks

comopasta Gr wrote:

Hi,

I have to interface (using SOAP) with an external system. Most of the
methods respond with a java bean. Look like it was done expecting java
on the client side always.

My question is, how can I interface with that, how can I take a java
bean and handle it on the RoR side?

This is not my area of expertise, but perhaps RJB would be helpful here.

Any hints?

Thanks

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

On Mon, Oct 12, 2009 at 5:36 AM, comopasta Gr
[email protected] wrote:

I have to interface (using SOAP) with an external system. Most of the
methods respond with a java bean. Look like it was done expecting java
on the client side always.

My question is, how can I interface with that, how can I take a java
bean and handle it on the RoR side?

SOAP requests return XML, which in this case might be a serialized
representation of a bean – have you looked at the actual response?


Hassan S. ------------------------ [email protected]
twitter: @hassan

Hi,
Do you use JRuby ?
You can access java methods (getter and setter for example) with
jruby .

Thanks guys.

SOAP requests return XML, which in this case might be a serialized
representation of a bean – have you looked at the actual response?

Thanks Hassan. Of course. The java object is being serialized and sent
as just XML.

I collected what I had to do to generate my SOAP request over HTTPS as
part of another post I created. Can be found at
http://www.ruby-forum.com/topic/196520#new

Cheers!