P
Philipp
Hello everyone,
after 2 days searching the web for a solution i get stuck.
I have a rails APP with a SOAP interface and a simply ruby client
e.g
I have a object CAR that has a name and 4 DOORS
CAR <-1:N-> DOOR
//structure looks something like this
class car {
id
name
}
class door{
id
car_id
}
now i want to transfer a instance of the object car over soap to the
client.
SOAP only supports , primary class types like string, int, float and
so on..right ?
now i was thinking about to do it with yaml or marshal, or xml i tried
it the last 2 days but it dint work
# on the rails app i did
config_dump = SOAP::Marshal.dump(cars)
# i did the transfer as a sting over soap
#on client side id did
cars_array = SOAP::Marshal.load(cars_marshal)
but now i have a stange SOAP::Mapping::Object on the client side, is
there a way to get a normal ruby object in this case CAR-object that i
can do for example
car.doors.each{|door|
puts door
}
thanks ahead
regard
Philipp
ICQ #32815376
after 2 days searching the web for a solution i get stuck.
I have a rails APP with a SOAP interface and a simply ruby client
e.g
I have a object CAR that has a name and 4 DOORS
CAR <-1:N-> DOOR
//structure looks something like this
class car {
id
name
}
class door{
id
car_id
}
now i want to transfer a instance of the object car over soap to the
client.
SOAP only supports , primary class types like string, int, float and
so on..right ?
now i was thinking about to do it with yaml or marshal, or xml i tried
it the last 2 days but it dint work
# on the rails app i did
config_dump = SOAP::Marshal.dump(cars)
# i did the transfer as a sting over soap
#on client side id did
cars_array = SOAP::Marshal.load(cars_marshal)
but now i have a stange SOAP::Mapping::Object on the client side, is
there a way to get a normal ruby object in this case CAR-object that i
can do for example
car.doors.each{|door|
puts door
}
thanks ahead
regard
Philipp
ICQ #32815376