vaclavvanik/soap-wsdl-http

An easy way to handle WSDL from URL

1.0.0 2022-12-05 13:41 UTC

This package is auto-updated.

Last update: 2024-10-05 17:47:58 UTC


README

This package provides an easy way to get WSDL from URL.

Install

You can install this package via composer.

composer require vaclavvanik/soap-wsdl-http

This package needs PSR-17 HTTP Factories and PSR-18 HTTP Client implementations. You can use e.g. Guzzle.

composer require vaclavvanik/soap-wsdl-http guzzlehttp/guzzle

Usage

HttpProvider

GET WSDL from given URL. Example with Guzzle:

<?php

declare(strict_types=1);

use GuzzleHttp;
use VaclavVanik\Soap\Wsdl;

$httpClient = new GuzzleHttp\Client();
$requestFactory = new GuzzleHttp\Psr7\HttpFactory();
$url = 'https://example.com/my.wsdl';

$wsdl = (new Wsdl\HttpClientProvider($httpClient, $requestFactory, $url))->provide();

Exceptions

provide methods throw:

Run check - coding standards and php-unit

Install dependencies:

make install

Run check:

make check

Changelog

Please see CHANGELOG for more information what has changed recently.

License

The MIT License (MIT). Please see License File for more information.