piotrooo/wsdl-creator

使用PHPdoc(注释、反射)的PHP WSDL创建器。

3.0.1 2022-08-16 06:07 UTC

This package is auto-updated.

Last update: 2024-08-29 04:12:13 UTC


README

Build Status Scrutinizer Code Quality Code Coverage Total Downloads License Gitter

支持的版本

类注释

@WebService

参数

  • name (字符串 "WebServiceAnnotations") 默认: 服务名称
  • targetNamespace (字符串 "http://foo.bar/webserviceannotations")
  • location (字符串 "https:///wsdl-creator/service.php")
  • ns (字符串 "http://foo.bar/webserviceannotations/types")
  • portName (字符串 "PortNameWebService") 默认: 服务名称

@BindingType

参数

  • value (枚举 {"SOAP_11", "SOAP_12"}) 默认: "SOAP_11"

@SoapBinding

参数

  • style (枚举 {"RPC", "DOCUMENT"}) 默认: "RPC"
  • use (枚举 {"LITERAL", "ENCODED"}) 默认: "LITERAL"
  • parameterStyle (枚举 {"BARE", "WRAPPED"}) 默认: "BARE"

方法注释

@WebMethod

无参数 - 标记方法为Web服务方法

@WebParam

@WebResult

参数示例

  • string $userName - 简单类型
  • object $user { string $name int $age } - 复杂类型
  • int[] $numbers - 简单或复杂类型的数组