SOAP 'Mapping error'

Discussion in 'Ruby' started by Graham, Nov 25, 2005.

  1. Graham

    Graham Guest

    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
    Graham, Nov 25, 2005
    #1
    1. Advertising

  2. -----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-----
    NAKAMURA, Hiroshi, Nov 26, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. bashizip
    Replies:
    0
    Views:
    350
    bashizip
    May 19, 2010
  2. Mason Brown
    Replies:
    1
    Views:
    369
  3. bradrover
    Replies:
    1
    Views:
    156
    NAKAMURA, Hiroshi
    Jun 16, 2007
  4. Ruby Rookie

    accessing SOAP::Mapping::Object

    Ruby Rookie, Aug 13, 2007, in forum: Ruby
    Replies:
    2
    Views:
    245
    Ruby Rookie
    Aug 14, 2007
  5. Tom Tom
    Replies:
    0
    Views:
    173
    Tom Tom
    Oct 4, 2009
Loading...

Share This Page