itmh / wsdl-types-resolver
WSDL types resolver
v1.1.6
2016-08-17 11:22 UTC
Requires
- php: ^5.6 || ^7.0
Requires (Dev)
- ext-xdebug: ^2.4
- itmh/php-buddy: ^1.0
README
wsdl-types-resolver
Библиотека для извлечения типов функции по WSDL.
Пример использования
$soapClient = new SoapClient('http://www.webservicex.com/globalweather.asmx?WSDL'); $resolver = new Resolver( (new FunctionParser($soapClient->__getFunctions()))->getFunctions(), (new TypeParser($soapClient->__getTypes()))->getTypes() ); print_r($resolver->resolve('GetWeather'));
Array
(
[arguments] => Array
(
[0] => Array
(
[CityName] => string
[CountryName] => string
)
)
[result] => Array
(
[GetWeatherResult] => string
)
)