[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

SOAP4R Help?

Williams, Chris

2/23/2005 4:19:00 PM

Hi,
I'm trying to use SOAP4R to generate a client and talk via
WebServices. The library works great, but the problem is that the
message I send out needs to include some custom headers for
authentication. How do I do this? I've tried to build the headers and
body by hand, but that's ugly and I have no idea what I'm doing. What
I'd like to do is use the wsdl2ruby class to generate my client from the
WSDL and then add custom behavior to the generated driver to insert my
customer header elements.

Thanks,
Chris
2 Answers

Gavri Fernandez

2/23/2005 5:43:00 PM

0

On Thu, 24 Feb 2005 01:19:17 +0900, Williams, Chris
<Chris.Williams@xeroxlabs.com> wrote:
> Hi,
> I'm trying to use SOAP4R to generate a client and talk via
> WebServices. The library works great, but the problem is that the
> message I send out needs to include some custom headers for
> authentication. How do I do this? I've tried to build the headers and
> body by hand, but that's ugly and I have no idea what I'm doing. What
> I'd like to do is use the wsdl2ruby class to generate my client from the
> WSDL and then add custom behavior to the generated driver to insert my
> customer header elements.

You might want to post this on the SOAP4R Google Group too
http://groups-beta.google.com/gr...

--
Gavri
---------------------------------------------------
I blog here: http://gavri.bl...


NAKAMURA, Hiroshi

2/24/2005 5:35:00 AM

0

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

Hi,

Thanks Gavri. Feel free to post any question to ruby-talk or soap4r
google-group. I try to check both ML (I often overlooked an article in
ruby-talk because of its huge traffic though).

Williams, Chris wrote:
| I'm trying to use SOAP4R to generate a client and talk via
| WebServices. The library works great, but the problem is that the
| message I send out needs to include some custom headers for
| authentication. How do I do this? I've tried to build the headers and
| body by hand, but that's ugly and I have no idea what I'm doing. What

Does sample/soap/authheader/client.rb help?

| I'd like to do is use the wsdl2ruby class to generate my client from the
| WSDL and then add custom behavior to the generated driver to insert my
| customer header elements.

A WSDLDriver instance has WSDLDriver#headerhandler same as RPC::Driver.

Regards,
// NaHi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail....

iD8DBQFCHWeCf6b33ts2dPkRAvv6AJ9eCravd4B5c7gMOQ4S5sd7gRLigwCgg2Yc
plP5/aWlck6/3LPqZmeX2RU=
=ijWh
-----END PGP SIGNATURE-----