From: David Teare Date: 2005-06-28T03:12:35+09:00 Subject: Adding a header to a SOAP request Hi all, I want to use ruby to integrate my site with PayPal's new Website Direct Pro API. I tried the code below, and it seems to work once I upgraded to soap4r-1_5_4: require 'soap/wsdlDriver' server = SOAP::WSDLDriverFactory.new("http:// www.sandbox.paypal.com/wsdl/PayPalSvc.wsdl") @driver = server.createDriver One problem I'm having is Paypal requires that I set a header in the request (user id & password). How do I add this before performing a request? Any help or pointers to some SOAP/WSDL ruby documentation would be greatly appreciated. Thanks! --Dave.