SOAP4R Help?

W

Williams, Chris

------_=_NextPart_001_01C519C3.4021B4B5
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

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

------_=_NextPart_001_01C519C3.4021B4B5--
 
G

Gavri Fernandez

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/group/soap4r
 
N

NAKAMURA, Hiroshi

-----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.mozdev.org

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top