Git Product home page Git Product logo

uup-soap's Introduction

UUP-SOAP - PHP classes as SOAP services.

Export your PHP classes as SOAP services with automatic service documentation gathered from annotations on class, methods and parameters and availible for service consumer thru wsdl:documentation tags.

FEATURES:

  • Uses the native SOAP extension (fast).
  • Generates web service description (WSDL).
  • Generates web service API documentation (HTML).

HOMEPAGE:

Visit project homepage for more information and extended examples:

INTRODUCTION:

The exported service uses either the class name or an object. The latter is is prefered in case some special initialization has to be done. The parameter processing (i.e. detect if WSDL mode) can be simplified by using the SOAP request class:

public function response($request, $service)
{
    $request->process($service);            // Request mode detected
}

Or more more detailed where the $request is either some custom class or the one supplied by this library:

public function response($request, $service)
{
    switch ($request->target) {
        case 'soap':
            $service->handleRequest();      // Handle SOAP request
            break;
        case 'wsdl':
            $service->sendDescription();    // Send WSDL
            break;
        case 'docs':
            $service->sendDocumentation();  // Send API doc
            break;
    }
}

TESTING:

Example Java files can be found in the example/java/client directory. Generate SOAP proxy using wsimport or download the full project from:

To test service documentation (assume examples is accessable as uup-soap under i.e. htdocs):

These shortcut (commonly used query strings) are also supported:

The mode has been superseeded:

ABOUT DERIVED WORK:

The WSDL generation uses the WSDL_Gen class (its author is unknown), but was republished by Martin Goldhahn on Google Code. The license for php-wsdl-generator that bundles that class is Apache 2.0 (same as this package license). A number of improvements has been done on that class (see file header).

Related links:
  1. http://web.archive.org/web/*
  2. http://www.schlossnagle.org/~george/php/WSDL_Gen.tgz
  3. http://code.google.com/p/php-wsdl-generator/downloads

The other code was taken from the OpenExam project (openexam.io), re-licensed from GPL2 as Apache 2.0

uup-soap's People

Contributors

nowisesys avatar

Stargazers

 avatar

Watchers

 avatar

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.