Solved

PHP webservice signature

Posted on 2012-12-21
1
295 Views
Last Modified: 2012-12-31
I need to use PHP to invoke an external SOAP web service that resides in a webserver.
The web service requires that a digital signature shall be used to establish the connection.
The web service must have a signature.
Some items on the xml web server file must be encrypted with an AES symmetric key. But when accessing the test environment the web service provider sent us two files
a file with an extension .cer and another one with .pfx extension.
Which of them and how can I use this in my PHP script to build the xml. Is there any example you can send to me?
0
Comment
Question by:luciliacoelho
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
DanUrsoviciu earned 500 total points
ID: 38714413
As an example on how to use php soap client with certificates:
$wsdl = "service.wsdl";
$cert = "c:\secure_cert\webservice.pem";
$client = new SoapClient($wsdl, array('local_cert' => $cert);

Open in new window

and you can check more examples on SoapClient manual page

The two files could be the same thing but in different formats. Read the explanations on this link to get an idea and convert certificates between formats.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question