I have an application and want to add http header(not soap header) to it, but can not figure it out, anyone out there who can help.
I've got to set http request header using below code:
my $transport = $service->transport;
my $http_request = $transport->http_request;
$http_request->header('x-api-key' => 'xaefdsfse' );
$http_request->header('Content-Type' => 'application/soap+xml' );
Add this code before soap call.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With