Hi,
I'm working on a client that communicates with remote web services using SOAP::Lite
All communication needs to be authenticated. To do so a public certificate and private key have been created. My difficulty is how do I pass across the public certificate for authentication at the server side? The documentation states the following environment variables need to be set and point to the created certificates...
I've done so however the response at the server end is always the same:
Request does not contain required Security header
The actual communication is straight forward enough...
I'm told the necessary certificates are in place at the server side so 'assuming' that end is OK I wonder if anyone can help or confirm the configuartion of the client side? Other questions are ...
1. Is setting the ENV vars enough?
2. Has anyone got experience using SOAP::Lite in this way?
3. Should the certificate form part of the request and if so can I intercept this to check all the neccessary information is being sent?
Any help or suggestions would be greatly appreciated...
I'm working on a client that communicates with remote web services using SOAP::Lite
All communication needs to be authenticated. To do so a public certificate and private key have been created. My difficulty is how do I pass across the public certificate for authentication at the server side? The documentation states the following environment variables need to be set and point to the created certificates...
Code:
$ENV{HTTPS_CERT_FILE} = 'prv_key.pem';
$ENV{HTTPS_KEY_FILE} = 'pub_cert.pem';
I've done so however the response at the server end is always the same:
Request does not contain required Security header
The actual communication is straight forward enough...
Code:
my $request = SOAP::Lite
->uri('[URL unfurl="true"]https://webaddress/webservice')[/URL]
->proxy('[URL unfurl="true"]https://webaddress/webservice')[/URL]
->methodCall(%args);
I'm told the necessary certificates are in place at the server side so 'assuming' that end is OK I wonder if anyone can help or confirm the configuartion of the client side? Other questions are ...
1. Is setting the ENV vars enough?
2. Has anyone got experience using SOAP::Lite in this way?
3. Should the certificate form part of the request and if so can I intercept this to check all the neccessary information is being sent?
Any help or suggestions would be greatly appreciated...