How to I set a http header for a soap call in soap4r ?
@drv = SOAP::RPC::Driver.new('x', 'y')
How do I set a http header "vmware_soap_session" to call the calls that are going out of @drv ?
How to I set a http header for a soap call in soap4r ?
@drv = SOAP::RPC::Driver.new('x', 'y')
How do I set a http header "vmware_soap_session" to call the calls that are going out of @drv ?
There's a
header
hash parameter available with theSOAP::NetHttpClient.get_content
andSOAP::NetHttpClient.post
methods:Here's the source for the first that helps 'splain it:
Try setting the
header
hash to{"vmware_soap_session" => true}
or whatever you're supposed to use as the value.