drewlabs/soap-client
最新稳定版本:v0.1.4
Composer 安装命令:
composer require drewlabs/soap-client
包简介
SOAP HTTP Client implementation
README 文档
README
The library provides an SOAP HTTP client implementation
Usage
use Drewlabs\Soap\Http\SoapHttpClientFactory; // ... // Defines soap options $options = [ // ... ]; // Create request client $factory = new SoapHttpClientFactory(); $client = $factory->create( new Client(), new StreamFactory, // Provide your own PSR7 StreamFactory or use nyholm/psr7 package new Psr7RequestFactory, // Provide your own PSR7 RequestFactory or use nyholm/psr7 package '<WSDL_URL>', $options, null // \Drewlabs\Soap\Contracts\RequestInterface::class (Class name of the class to use in parsing request parameters). // You can use it to transform request body ); // Making synchronous call $result = $client->send($method, [ //... SOAP parameters ]); // Making async call $promise = $client->sendAsync($method, [ //... SOAP parameters ]); $result = $promise->wait();
统计信息
- 总下载量: 34
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-27