[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

SOAP responses

Nick Black

2/19/2007 3:25:00 PM

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,

--
Nick Black
--------------------------------
http://www.black...

2 Answers

Jano Svitok

2/19/2007 11:14:00 PM

0

On 2/19/07, Nick Black <nickblack1@gmail.com> wrote:
> 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?

Can't you just assign a File or StringIO instead of STDOUT?

NAKAMURA, Hiroshi

6/6/2007 2:16:00 PM

0

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

Hi,

Sorry for the late response.

Nick Black 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-----