a2ncer / sumatra-php-soap-client
Sumatra API SoapClient library
dev-master
2018-11-13 11:09 UTC
Requires
- php: >7.1
- php-http/client-common: ^1.6
- php-http/discovery: ^1.3
- php-http/guzzle6-adapter: ^1.1
- php-http/httplug: ^1.1 || ^2.0
- php-http/message: ^1.6
- php-http/message-factory: ^1.0
- phpro/soap-client: ^0.7.3
- psr/http-message: ^1.0
This package is not auto-updated.
Last update: 2024-10-26 12:03:22 UTC
README
SOAP Client for Sumatra
Installation
composer require a2ncer/sumatra-php-soap-client:dev-master
Usage
<?php include_once 'vendor/autoload.php'; use Sumatra\SumatraClientFactory; use Sumatra\Type\Kunden_einwilligung_argument; $wsdl = 'http://example.com/sumatra.wsdl'; $username = 'username'; $password = 'password'; $client = SumatraClientFactory::factory( $wsdl, $username, $password ); $argument = (new Kunden_einwilligung_argument()) ->withBegruendung('John Snow') ->withAnrede('Herr') ->withEmail('test@example.com'); try { $response = $client->kunden_einwilligung($argument); echo $response->getStatus()->getInformation(); } catch (Exception $exception) { echo $exception->getMessage(); }
Development Setup
composer install --ignore-platform-reqs
docker-compose up -d
docker-compose exec php bash
apt-get update
apt-get install libxml2-dev
docker-php-ext-install soap
php -S 0.0.0.0:80