Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 664 Bytes

index.md

File metadata and controls

28 lines (21 loc) · 664 Bytes

Prezent SoapClient

The Prezent SoapClient is an extension to PHP's built-in SoapClient that brings easy extensability through an event dispatcher and built-in support for WS-Addressing.

Index

  1. Installation and configuration
  2. Events
  3. WS-Addressing support

Example usage

use Prezent\Soap\Client\SoapClient;
use Prezent\Soap\Client\Extension\WSAddressing;

$client = new SoapClient('http://example.org/wsa-server.wsdl', [
    'event_subscribers' => [
        new WSAddressing('http://example.org/return-address'),
    ],
]);

$client->someMethod('arg');