Hello,
I have code that calls a SOAP service. The service requires that I pass it a certificate (The public piece of the certificate is loaded into the owner of the services web server). Previously I was using the SSL cert on the box and everything worked well. I went to Verisign to get a Class 1 cert. When using that cert, I get the following error:
SOAP::Transport::HTTP::Client::send_receive: 500 (Internal Server Erro
+r) configure certs failed: failed to load /usr/local/certs/staging.ce
+r:
This error happens during the submission of the service so it is not ever getting to the service.
Here is the code that I am using to call the service:
$ENV{HTTPS_CERT_FILE}= '/usr/local/certs/staging.cer';
$ENV{HTTPS_KEY_FILE} = '/usr/local/certs/staging.pfx';
use XML::Simple;
use SOAP::Lite +trace;
my $data = SOAP::Data->name('data' => "$xml")->type('string')->uri('')
+;
my $s = SOAP::Lite
-> uri ('http://my.site.com/SoapService')
-> proxy ('https://stagingdi.site.com/SoapService/SoapService.asmx')
-> on_action(sub{join '/', @_})
-> on_fault(sub{});
$result = $s->PerformUpdate($data)->result;
Does anyone have a clue where I can go to find out what I might be doing incorrectly? Thanks in advance.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|