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
Solved

PHP webservice signature

Posted on 2012-12-21
1
293 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What is wrong with this PDO Delete Query? 2 17
Displaying text in text field when clicking on ajax search result 10 39
PHP Mail error 3 27
Wordpress Query 5 26
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

837 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