piotrooo/wsdl-creator

PHP WSDL creator using PHPdoc (annotations, reflections).

3.0.1 2022-08-16 06:07 UTC

This package is auto-updated.

Last update: 2024-10-29 04:36:17 UTC


README

Build Status Scrutinizer Code Quality Code Coverage Total Downloads License Gitter

Supported versions

Class annotations

@WebService

Parameters:

  • name (string "WebServiceAnnotations") default: service name
  • targetNamespace (string "http://foo.bar/webserviceannotations")
  • location (string "http://localhost/wsdl-creator/service.php")
  • ns (string "http://foo.bar/webserviceannotations/types")
  • portName (string "PortNameWebService") default: service name

@BindingType

Parameters:

  • value (enum {"SOAP_11", "SOAP_12"}) default: "SOAP_11"

@SoapBinding

Parameters:

  • style (enum {"RPC", "DOCUMENT"}) default: "RPC"
  • use (enum {"LITERAL", "ENCODED"}) default: "LITERAL"
  • parameterStyle (enum {"BARE", "WRAPPED"}) default: "BARE"

Method annotations

@WebMethod

No parameters - mark method as a Web Service method

@WebParam

@WebResult

Param examples

  • string $userName - simple type
  • object $user { string $name int $age } - complex type
  • int[] $numbers - array of simple or complex types