2017 © Pedro Peláez
 

library expressive-soap-middleware

Middleware for handling soap webservice requests based on zend expressive 2.0.

image

dwendrich/expressive-soap-middleware

Middleware for handling soap webservice requests based on zend expressive 2.0.

  • Thursday, June 21, 2018
  • by dwendrich
  • Repository
  • 0 Watchers
  • 2 Stars
  • 46 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 12 Versions
  • 0 % Grown

The README.md

expressive-soap-middleware

Middleware for handling soap webservice requests based on zend expressive 2.0., (*1)

Build Status Coverage Status Latest Stable Version, (*2)

Requirements

Installation

Install the latest version with composer. For information on how to get composer or how to use it, please refer to getcomposer.org., (*3)

$ composer require dwendrich/expressive-soap-middleware

Basic usage

Webservice methods are provided by a class implementing public methods. Once you have your service class in place, set up a route which delegates http requests to your service using GET or POST request methods to the SoapController middleware:, (*4)

$app->route(
    '/path-to-service',
    'MyServiceClass\SoapController',
    ['GET', 'POST'],
    'my_service'
);

Provide soap controller configuration, to tell where to find the service class containing the webservice methods:, (*5)

return [
    'soap_controller' => [
       'MyServiceClass\SoapController' => [
           // provide the fully qualified class name which implements the service methods
           'class' => MyServiceClass::class,

           // provide optional soap server options
           'server_options' => [],
       ],
   ],
];

Http requests to /path-to-service using GET request method will now deliver a wsdl document describing your soap service based on the public methods implemented in MyServiceClass., (*6)

Calls to your soap service are handled via http request method POST., (*7)

Documentation

The Versions

21/06 2018