xint0/soap-service-client

扩展 SoapClient

0.1.1 2022-02-28 09:00 UTC

This package is auto-updated.

Last update: 2024-08-28 21:10:43 UTC


README

xint0/soap-service-client 是一个库,其中包含扩展基本 SoapClient 类的 SoapServiceClient 类。

安装

使用 composer 安装 xint0/soap-service-client

composer require xint0/soap-service-client

用法

<?php

use Xint0\Soap\SoapServiceClient;
use Psr\Log\LoggerInterface;

/** @var LoggerInterface A logger. */
$logger;

$wsdl = 'https://example.com/route_to_wsdl';
$options = [
    'logger' => $logger, // You can pass a LoggerInterface to log debug messages on SOAP calls and errors.
];

$soapClient = new SoapServiceClient($wsdl, $options);

$actionParameters = [
    'param' => 'value',
];
$result = $soapClient->SoapAction($actionParameters);

贡献

欢迎合并请求。对于重大更改,请先打开一个问题来讨论您想要更改的内容。

请确保适当更新测试。

许可证

Apache License 2.0