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
You might want to post this on the SOAP4R Google Group too
http://groups-beta.google.com/group/soap4r
···
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.
--
Gavri
---------------------------------------------------
I blog here: http://gavri.blogspot.com
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