Git Product home page Git Product logo

expressive-soap-middleware's Introduction

expressive-soap-middleware

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

Build Status Coverage Status Latest Stable Version

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.

$ 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:

$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:

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.

Calls to your soap service are handled via http request method POST.

Documentation

expressive-soap-middleware's People

Contributors

dwendrich avatar eloar avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

eloar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.