mbamarante/cakesoap

Soap plugin for CakePHP 4.x

Installs: 321

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 6

Open Issues: 0

Type:cakephp-plugin

4.0.0 2020-12-22 11:40 UTC

This package is auto-updated.

Last update: 2024-03-29 04:26:14 UTC


README

Requirements

  • CakePHP 4.x

Installation

You can install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

composer require mbamarante/cakesoap

You can also add "mbamarante/cakesoap" : "dev-master" to require section in your application's composer.json. Use for latest updates.

-- or --

You can also add "mbamarante/cakesoap" : "~3.2" to require section in your application's composer.json. Stable Release.

Usage

Include the CakeSoap library files:

    use CakeSoap\Network\CakeSoap;

Sample Request

    $soap = new CakeSoap([
        'wsdl' => 'http://mydomain.com/api?wsdl',
        'userAgent' => 'MySoapClientAgent'
    ]);

    $response = $soap->sendRequest($action, [
        'SomeData' => [
            'SomeSubData' => 'item1',
            'SomeMoreSubData' => 'item2'
        ]
    ]);