see raw xml in soap4r

Discussion in 'Ruby' started by Raymond O'Connor, Jul 20, 2007.

  1. Hi,

    Is there any way with soap4r to see the raw xml of the response without
    turning on the debug mode?

    For me at least, my soap scripts work correctly 99% of the time, however
    occasionally they raise exceptions and it would be handy on these cases
    to see the raw xml that is causing the problem. Is there any method I
    can call on the main soap response object to dump the raw xml its using?
    It would be handy to print this out along with the exception in some
    cases.

    Thanks,
    Ray

    --
    Posted via http://www.ruby-forum.com/.
     
    Raymond O'Connor, Jul 20, 2007
    #1
    1. Advertising

  2. -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Hi,

    Raymond O'Connor wrote:
    > Is there any way with soap4r to see the raw xml of the response without
    > turning on the debug mode?


    aDriver.wiredump_dev = STDERR

    dumps request/response wiredump to STDERR.

    aDriver.wiredump_dev = str = ''
    [...]
    aLogger.info(str)

    dumps it to a logfile.

    aDriver.wiredump_file_base = "/home/nahi/tmp/foo"

    writes request/response wiredumps as a specified file.

    // NaHi

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.2.1 (Cygwin)

    iQEVAwUBRqL0Fh9L2jg5EEGlAQKt5wgAjRyPaGkqb8OET7MPmu7DYGrG/3nAL8tO
    1p3a7QEhbGIHkTV6hoEnCmFYPIX+u40RhdYxK/qhgLlfbhJXM3ylZyA6GfHn9GWx
    eL/Y7i8UhKs6fdcS9eTt0cin8gUUtQVVOt0yHsjEdQC7tI7ljFnRbMQ/wP/1e9Ll
    CLcEfBTxYQIl7JlDzvojPQLRVgC+fTvSyth4bPwmt6itKULOXHsThaS4Hq4g9xij
    wpmXgFdYJGGG8pBcoHOfsaA21y4JIaMcYxhPC+udDWxYwc6QoNITivuTFmBoHISn
    ynpDSxJtvS9Kh7JBm7V19AckJLa+CnGjVNx4NWoEKe7FPN1CKUeLwg==
    =Mw/Q
    -----END PGP SIGNATURE-----
     
    NAKAMURA, Hiroshi, Jul 22, 2007
    #2
    1. Advertising

  3. Hi
    Thanks for the response, is there a way to turn it on after the request?
    I don't want to log every request/response as this program makes tens of
    thousands of requests daily. Is there a way just to see the
    request/response if an error occurred?

    thanks,
    Ray

    NAKAMURA, Hiroshi wrote:
    > -----BEGIN PGP SIGNED MESSAGE-----
    > Hash: SHA1
    >
    > Hi,
    >
    > Raymond O'Connor wrote:
    >> Is there any way with soap4r to see the raw xml of the response without
    >> turning on the debug mode?

    >
    > aDriver.wiredump_dev = STDERR
    >
    > dumps request/response wiredump to STDERR.
    >
    > aDriver.wiredump_dev = str = ''
    > [...]
    > aLogger.info(str)
    >
    > dumps it to a logfile.
    >
    > aDriver.wiredump_file_base = "/home/nahi/tmp/foo"
    >
    > writes request/response wiredumps as a specified file.
    >
    > // NaHi
    >
    > -----BEGIN PGP SIGNATURE-----
    > Version: GnuPG v1.4.2.1 (Cygwin)
    >
    > iQEVAwUBRqL0Fh9L2jg5EEGlAQKt5wgAjRyPaGkqb8OET7MPmu7DYGrG/3nAL8tO
    > 1p3a7QEhbGIHkTV6hoEnCmFYPIX+u40RhdYxK/qhgLlfbhJXM3ylZyA6GfHn9GWx
    > eL/Y7i8UhKs6fdcS9eTt0cin8gUUtQVVOt0yHsjEdQC7tI7ljFnRbMQ/wP/1e9Ll
    > CLcEfBTxYQIl7JlDzvojPQLRVgC+fTvSyth4bPwmt6itKULOXHsThaS4Hq4g9xij
    > wpmXgFdYJGGG8pBcoHOfsaA21y4JIaMcYxhPC+udDWxYwc6QoNITivuTFmBoHISn
    > ynpDSxJtvS9Kh7JBm7V19AckJLa+CnGjVNx4NWoEKe7FPN1CKUeLwg==
    > =Mw/Q
    > -----END PGP SIGNATURE-----


    --
    Posted via http://www.ruby-forum.com/.
     
    Raymond O'Connor, Jul 23, 2007
    #3
  4. -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Hi,

    Raymond O'Connor wrote:
    > Thanks for the response, is there a way to turn it on after the request?
    > I don't want to log every request/response as this program makes tens of
    > thousands of requests daily. Is there a way just to see the
    > request/response if an error occurred?


    No, there isn't. If an error occurred, the response XML is a SOAPFault
    almost always. It should not be what you want, right?

    // NaHi

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.2.1 (Cygwin)

    iQEVAwUBRqhsTx9L2jg5EEGlAQLM6gf/eBncYI8Gd+bQtioCGk++h9+AV6Xc6b6m
    RHNXzxch2O3gLS7kSLcHK5fgwQG1PFT2whSFK9bg7uZEAS+M600RCja57Z5otBkt
    8ng8dc40B8JyNAbOfrvJKBFJrh9PRpEC8qOXN+XI3v/uwYOhN/oRBh7AXVlFV53w
    stThML5OOYAAa2GM9HmVzPfU4JQY+EOhiygjzyVyE07bSBrjIXDGeQBa4ybpBHAH
    asMN1hhmajhSUvtQXDjmnq/64WEJr3c0qSIlXWPZxEVzqve/8hFdWw7iW5GjmP9/
    oo4Dq1L0BeeVcb0e0WcjSW2u9zoTsPIDjByeFnUEJ80O/m7yLsX/ng==
    =1TCW
    -----END PGP SIGNATURE-----
     
    NAKAMURA, Hiroshi, Jul 26, 2007
    #4
    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. Flip
    Replies:
    3
    Views:
    985
    Tony Morris
    Feb 9, 2004
  2. Doug Day
    Replies:
    0
    Views:
    392
    Doug Day
    Jun 22, 2004
  3. Steve Kershaw
    Replies:
    1
    Views:
    373
    Brennan Stehling
    Sep 26, 2006
  4. Mike Lopez

    How can I see the raw data being sent to my webservice?

    Mike Lopez, Jan 31, 2005, in forum: ASP .Net Web Services
    Replies:
    3
    Views:
    161
    Dan Rogers
    Feb 15, 2005
  5. Dan Fitzpatrick
    Replies:
    1
    Views:
    370
    NAKAMURA, Hiroshi
    Jul 16, 2005
Loading...

Share This Page