library sumatra-php-soap-client
Sumatra API SoapClient library
talliumcom/sumatra-php-soap-client
Sumatra API SoapClient library
- Friday, July 13, 2018
- by nojes
- Repository
- 1 Watchers
- 0 Stars
- 11 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
, (*1)
SOAP Client for Sumatra
Requirements
- php >7.1
- ext-soap
- ext-xml
Installation
composer require talliumcom/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';
$options = []; // @see http://php.net/manual/en/soapclient.soapclient.php#refsect1-soapclient.soapclient-parameters
$client = SumatraClientFactory::factory(
$wsdl,
$username,
$password,
$options
);
$argument = (new Kunden_einwilligung_argument())
->withBegruendung('John Snow')
->withAnrede('Herr')
->withNewsletter(true)
->withZuname('Albrecht')
->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 -y
docker-php-ext-install soap
php -S 0.0.0.0:80
dev-master
9999999-dev
Sumatra API SoapClient library
Sources
Download
MIT
The Requires
by
Alex Vishnevsky