Soap plugin for CakePHP 3.x

Installs: 17 968

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 11

Forks: 6

Open Issues: 2

Type:cakephp-plugin

3.4.0 2022-03-22 18:47 UTC

This package is auto-updated.

Last update: 2024-03-28 19:14:40 UTC


README

Requirements

  • CakePHP 3.1+

Installation

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

The recommended way to install composer packages is:

composer require queencitycodefactory/cakesoap

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

-- or --

You can also add "queencitycodefactory/cakesoap" : "~3.3" 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'
        ]
    ]);