Forum: Ruby on Rails customizing generated type names with ActionWebService

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Dan T. (Guest)
on 2009-04-29 19:39
I need a way I can create two different ruby struct classes (MyStructV1,
MyStructV2) and have them map to a type which is referred to in the xml
as simply 'MyStruct'. V1 and V2 have different fields, and would be
served by different controllers.

Can this be done? I have tried valiantly to patch actionwebservice and
the underlying soap code (soap4r) to this end, but to no avail. Is there
a way to set an explicit xmlname <--> ruby class name mapping for a
particular controller/wsdl namespace?

Any hints?

Thanks,
nerdytenor
This topic is locked and can not be replied to.