So, after a couple of days of head scratching, I finally figured it out.
The argument to the [] instance method for SOAP::Mapping::Object requires a
quoted string rather than a symbol, so this one is solved.
On 8/4/06, Doug Selph <dselph@gmail.com> wrote:>
> I have written a Rails web service, which is working exactly as expected.
> The service has a method which returns an object of type
> ActionWebService::Struct. In my SOAP client, I create a SOAP rpc driver,
and
> execute the method, like this:
>
> book = driver.ShowTitle(params[:isbn])
>
> I then do a:
>
> logger.info book.inspect
>
> and find this in the log:
>
> <SOAP::Mapping::Object:0x..ca7b389da
{}author_fname="David"
> {}author_lname="Johnson" {}title="The Story of
SOAP">
>
> I cannot figure out how to access the attributes of this
> SOAP::Mapping::Object. The empty curly braces are throwing me for a loop.
>
> Anyone see this before?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060804/46fd2056/attachment.html