I have developed a web service using SOAP4R. in contoller I have
@files = Wsm.find_by_sql([“select filename from wsms where comp=?”,
Now in API I have defined:(note the return type here)
api_method :fetchfilename, :expects => [:string], :returns => [Wsm]
My problem is I’m not able to get this to work. In SOAP Client when I do
something like this:
results = ws.fetchfilename(“SYSCFG”)
results.each do |rec|
It gives me “Don’t know how to cast Array to Wsmapping (RuntimeError)”
Any input on what I’m missing?
Thanks a bunch!