# SOAP responses

**URL:** <https://www.ruby-forum.com/t/soap-responses/86062>\
**Category:** Ruby\
**Created:** [February 19, 2007, 4:26pm UTC](https://www.ruby-forum.com/t/soap-responses/86062 "2007-02-19T16:26:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicken](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/d07c76/32.png) [@nicken](https://www.ruby-forum.com/u/nicken)\
**Post date:** [February 19, 2007, 4:26pm UTC](https://www.ruby-forum.com/t/soap-responses/86062/1 "2007-02-19T16:26:01Z")

</div>

Hello,

I’m making a query to a soap server, and I cant figure out how to get  
at the XML response. Using:

soap.wiredump\_dev = STDOUT

Prints the XML to STDOUT. I need to figure out how to get this XML  
into either a file or an input stream that can then be parsed to get  
hold of the useful information. There dont seem to be any methods of  
SOAP::WSDLDriverFactory that allow me to do this though. Any tips?

Cheers,

---

<div class="post-metadata">

**Author:** ![nicken](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/d07c76/32.png) [@nicken](https://www.ruby-forum.com/u/nicken)\
**Post date:** [February 20, 2007, 12:14am UTC](https://www.ruby-forum.com/t/soap-responses/86062/2 "2007-02-20T00:14:13Z")

</div>

On 2/19/07, Nick B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> SOAP::WSDLDriverFactory that allow me to do this though. Any tips?  
> Can’t you just assign a File or StringIO instead of STDOUT?

---

<div class="post-metadata">

**Author:** ![nicken](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/d07c76/32.png) [@nicken](https://www.ruby-forum.com/u/nicken)\
**Post date:** [June 6, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/soap-responses/86062/3 "2007-06-06T16:16:34Z")

</div>

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

Hi,

Sorry for the late response.

Nick B. wrote:

> I’m making a query to a soap server, and I cant figure out how to get  
> at the XML response. Using:
> 
> soap.wiredump\_dev = STDOUT
> 
> Prints the XML to STDOUT. I need to figure out how to get this XML  
> into either a file or an input stream that can then be parsed to get  
> hold of the useful information. There dont seem to be any methods of  
> SOAP::WSDLDriverFactory that allow me to do this though. Any tips?

WSDLDriverFactory#create\_rpc\_driver returns a general Driver. So you  
just can do;

soap = WSDLDriverFactory.new(wsdl).create\_rpc\_driver  
soap.wiredump\_dev = STDOUT

Regards,  
// NaHi

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

iQEVAwUBRmbBeR9L2jg5EEGlAQIdAgf/WQ1eLQzvoxFL0CzytglEbSAt6UlYYHnu  
XFSZZ2uEJqUfxkWeG7nlLTdSYeG4ufPbYSwvdokuGuK9fqkr2ELSijd9EWmOArEX  
PfNQyvdkFdPLUO8AMFUY4Xg90UX42lfOupqep8+aPw2+LtbpXvI5FiKxxa+PLd0h  
E3ShaIuYuu9Z6n1YbBLF7iaZnlZHGCN/Va9nMs2gTxrJvCNqGeRxQ6GtsB8draFr  
VKCR0HEHcEMfbNXAHrjXVjcpjw9lL+CHHhvWyVoCHZfeJjUPubhgvlvBSpLiBvL4  
1Qty0FL/5bzwZhMLXPHoRGC+ubVDJzbPtd96j9WMgSxKkc53FIBJSQ==  
=+L2h  
-----END PGP SIGNATURE-----
