cleverage/process-soap-bundle

CleverAge/ProcessBundle 的 SOAP 扩展

v1.1.0 2018-07-12 09:47 UTC

This package is auto-updated.

Last update: 2024-08-29 04:41:25 UTC


README

此包扩展 CleverAge/ProcessBundle 以实现 Soap 调用。

配置参考

定义您的 Soap 客户端

您可以使用默认客户端

clever_age_soap_process:
    clients:
        <client_name>:
            wsdl: ~ # See SoapClient documentation : https://php.ac.cn/manual/en/soapclient.soapclient.php
            options: ~ # See SoapClient documentation : https://php.ac.cn/manual/en/soapclient.soapclient.php
            service_alias: ~ # An alias to your client service. The default name of the generated service is 'clever_age_process_soap.soap_client.<client_name>'
            class: ~ # The class implementing the service. By default '%clever_age_process_soap.soap_client.class%' 

或者您可以通过实现 CleverAge\ProcessSoapBundle\Soap\Client\ClientInterface 来声明您自己的 Soap 客户端服务。

现有任务

SoapClientTask

调用您的 Soap 客户端上的方法

<task_code>:
    service: '@clever_age_soap_process.task.soap_client'
    options:
        # Required options
        soap_client: <service name> # your Soap client service
        method: <method name> # the method to call
    outputs: [<task_code>] # Array of tasks to pass the output to