2017 © Pedro Peláez
 

yii2-extension yii2-soap-server

SOAP server for the Yii 2 framework based on the Yii 1 implementation

image

subdee/yii2-soap-server

SOAP server for the Yii 2 framework based on the Yii 1 implementation

  • Friday, April 20, 2018
  • by subdee
  • Repository
  • 6 Watchers
  • 18 Stars
  • 2,726 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 26 Forks
  • 4 Open issues
  • 1 Versions
  • 15 % Grown

The README.md

yii2-soap-server

A SOAP server for Yii 2 based on the implementation of Yii 1 framework., (*1)

This extension is an adaptation of the SOAP Web Service available in Yii1, to Yii2. It contains features available up to v1.1.15., (*2)

Note: Things might not work as Yii2 progresses but I'll keep it updated as much as I can., (*3)

Build Status, (*4)

Requirements

Installation

Use composer and add the following line to your composer.json file:, (*5)

"subdee/yii2-soap-server": "*"

Usage

Usage is similar to the explanation in the Yii guide, (*6)

Define the custom action in your controller:, (*7)

public function actions()
{
    return [
        ...,
        'myService' => [
            'class' => 'subdee\soapserver\SoapAction',
        ],
        ...,
    ];
}

Add the @soap keyword to the properly documented actions you want:, (*8)

/**
* Returns hello and the name that you gave
*
* @param string $name Your name
* @return string
* @soap
*/
public function getHello($name)
{
    return 'Hello ' . $name;
}

Also, remember to turn off CSRF validation for the controller by setting its property:, (*9)

public $enableCsrfValidation = false;

The Versions

20/04 2018

dev-master

9999999-dev https://github.com/subdee/yii2-soap-server

SOAP server for the Yii 2 framework based on the Yii 1 implementation

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 server soap