queencitycodefactory / cakesoap
Soap plugin for CakePHP 3.x
Installs: 19 972
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 11
Forks: 6
Open Issues: 2
Type:cakephp-plugin
Requires
- php: >=5.5.9
- cakephp/cakephp: >=3.1.0
Requires (Dev)
- cakephp/cakephp-codesniffer: dev-master
- phpunit/phpunit: *
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' ] ]);