Skip to content

dmvrtx/php-signed-soap-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

PHP SoapClient with SOAP Message Security

Requirements

  • PHP compiled with SOAP support
  • xmllint utility (ubuntu/debian has it in libxml2-utils package)
  • HTTPRequest class provided by pecl_http extension

Usage

This class supports SOAP Message Security standard.

You should set certificate (in PFX or PKCS7 format) while initializng class. Other HTTP options, identical to HTTPRequest class request options are accepted too:

$client = new SignedSoapClient(
        'https://example.com?wsdl',
        array(
                'ssl' => array(
                        'cert' => '/file',
                        'certpasswd' => 'password'
                        )
                )
);

Class signes SOAP-ENV:Body part of the message by default, this behaviour can be changed in buildSignedInfo method.

About

PHP SOAP Client with SOAP Message Security support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages