Forum: Ruby SOAP 'Mapping error'

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.
De22b682e935a9ba28c0d8c9dfd4aab2?d=identicon&s=25 gandalfmeister (Guest)
on 2005-11-25 16:14
(Received via mailing list)
I'm trying to expose a few methods for database searching & updating
via a SOAP interface. I managed a couple of find queries OK, but when I
came to try an "update" I got this error:-

C:/ruby/lib/ruby/1.8/soap/mapping/registry.rb:407:in `_obj2soap':
Cannot map DBI
::StatementHandle to SOAP/OM. (SOAP::Mapping::MappingError)

The update methods work fine as client code, just not when exposed as
via SOAP. Is there a simple answer (for a newbie) to this error
message?
Thx
Graham
C4ec160c6223ee24609cbd07fd922be5?d=identicon&s=25 nakahiro (Guest)
on 2005-11-26 14:33
(Received via mailing list)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Graham wrote:
> I'm trying to expose a few methods for database searching & updating
> via a SOAP interface. I managed a couple of find queries OK, but when I
> came to try an "update" I got this error:-
>
> C:/ruby/lib/ruby/1.8/soap/mapping/registry.rb:407:in `_obj2soap':
> Cannot map DBI
> ::StatementHandle to SOAP/OM. (SOAP::Mapping::MappingError)

The method "update" at server side returns DBI::StatementHandle as a
return value, right?  Intended?  If it's not, return nil or something at
server side.

Regards,
// NaHi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)

iD8DBQFDiGPEf6b33ts2dPkRAgrgAJ9LQPV8rbVlj8lnRCDvDjFx6ZLZCgCfYjU8
FHStlfhxnu5S1XprSVWCB30=
=qkPf
-----END PGP SIGNATURE-----
4eb08215adaf2b4a3c6c318384b74d74?d=identicon&s=25 fghfghfh (Guest)
on 2005-11-26 21:28
(Received via mailing list)
NAKAMURA, Hiroshi wrote:
> The method "update" at server side returns DBI::StatementHandle as a
> return value, right?  Intended?  If it's not, return nil or something at
> server side.
Ahh.. I understand. Thx for the clarification.
Graham
This topic is locked and can not be replied to.