Show XML request as debug message?

592 views
Skip to first unread message

Chirag Patel

unread,
May 11, 2011, 11:39:04 PM5/11/11
to Savon
The Savon documentation says the below about debugging. What exactly
do I do to display these debug messages which show the SOAP request in
XML?

Thanks, Chirag

Debugging problems
In case you’re having a hard time interacting with a service, use the
debug output in development to compare the request executed by Savon
to the request generated by soapUI. It may help you.

DEBUG -- : SOAP request: http://www.thomas-bayer.com/axis2/services/BLZService
DEBUG -- : SOAPAction: "getBank", Content-Type: text/xml;charset=UTF-8

DEBUG -- : <env:Envelope
DEBUG -- : xmlns:blz="http://thomas-bayer.com/blz/"
DEBUG -- : xmlns:xsd="http://www.w3.org/2001/XMLSchema"
DEBUG -- : xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
DEBUG -- : xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
DEBUG -- : <env:Body>
DEBUG -- : <blz:getBank>
DEBUG -- : <blz:blz>70070010</blz:blz>
DEBUG -- : </blz:getBank>
DEBUG -- : </env:Body>
DEBUG -- : </env:Envelope>

dtolj

unread,
May 12, 2011, 1:54:08 PM5/12/11
to sav...@googlegroups.com
The debug messages are usually displayed on STDOUT.

cdavaz

unread,
Jun 20, 2011, 11:12:04 PM6/20/11
to Savon
I'm curious about this too. The debug output I've been seeing is not
pretty-printed.

rubiii

unread,
Jun 21, 2011, 3:46:04 AM6/21/11
to Savon
it's printed to STDOUT and no, it's not pretty-printed. the example
was formatted for the guide.

cheers,
daniel
Reply all
Reply to author
Forward
0 new messages