piotrooo / wsdl-creator
PHP WSDL creator using PHPdoc (annotations, reflections).
Installs: 135 438
Dependents: 2
Suggesters: 0
Security: 0
Stars: 81
Watchers: 8
Forks: 52
Open Issues: 9
Requires
- php: >=7.4
- ext-dom: *
- doctrine/annotations: 1.13.2
- letsdrink/ouzo-goodies: 1.8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: 2.19.3
- phpunit/phpunit: 7.5.5
- scrutinizer/ocular: 1.5.2
README
Supported versions
Class annotations
@WebService
Parameters:
name
(string "WebServiceAnnotations"
) default: service nametargetNamespace
(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
param
(string "string $userName"
) look at the param examples sectionheader
(bool true|false
) default:false
@WebResult
param
(string "string $uppercasedUserName"
) look at the param examples section
Param examples
string $userName
- simple typeobject $user { string $name int $age }
- complex typeint[] $numbers
- array of simple or complex types