nowise/uup-soap 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nowise/uup-soap

Composer 安装命令:

composer require nowise/uup-soap

包简介

Export classes as SOAP service with builtin service description (WSDL) generation.

README 文档

README

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

统计信息

  • 总下载量: 29
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 1

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2019-01-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固