2017 © Pedro Peláez
 

library ws-soap

Extends the PHP SOAP client to add basic WSSE support

image

osucomm/ws-soap

Extends the PHP SOAP client to add basic WSSE support

  • Tuesday, January 19, 2016
  • by electrickite
  • Repository
  • 3 Watchers
  • 2 Stars
  • 21,488 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 3 Versions
  • 8 % Grown

The README.md

WsSoap

Extends the PHP SOAP client to add basic WSSE support. The library makes as few modifications to the base SOAP client class as possible and attempts to make authenticating to a service as easy as possible., (*1)

Only a subset of the web services security standard is implemented. Specifically, unencrypted plain text password authentication., (*2)

Installation

You can add the library to your project using Composer or by manually including the necessary files., (*3)

Composer

First, if you haven't already installed Composer, install it with, (*4)

$ cd my-awesome-project
$ curl -sS https://getcomposer.org/installer | php

Then create a composer.json file with the following contents:, (*5)

{
    "require": {
        "osucomm/ws-soap": "~0.1"
    }
}

And install the libarary:, (*6)

$ php composer.phar install

Finally, you'll need to include Composer's autoloader somewhere in your project:, (*7)

require 'vendor/autoload.php';

If you prefer to use an autoloader other than Composer, note that WsSoap is PSR-4 compliant., (*8)

Include Manually

Download or clone the library to a directory within your project and include
src/Client.php somehwere in your project., (*9)

require '/path/to/WsSoap/src/Client.php';

Use

Creating a WSSE SOAP client is as simple as, (*10)

$wsdl = "https://example.com/MY_WSDL.wsdl";
$username = 'USER';
$password = 'PASS';

$client = new WsSoap\Client($wsdl, array(
    'wsUsername' => $username,
    'wsPassword' => $password,
));

In addition to the required wsUsername and wsPassword keys, the constructor options are identical to the native [PHP SoapClient][2]., (*11)

Once the client is instantiated, it can be used in exactly the same way as SoapClient., (*12)

The Versions

19/01 2016

dev-master

9999999-dev https://github.com/electrickite/WsSoap

Extends the PHP SOAP client to add basic WSSE support

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-soap *
  • ext-curl *

 

by Corey Hinshaw

soap soap-client

19/01 2016

0.1.1

0.1.1.0 https://github.com/electrickite/WsSoap

Extends the PHP SOAP client to add basic WSSE support

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-soap *
  • ext-curl *

 

by Corey Hinshaw

soap soap-client

15/05 2014

0.1.0

0.1.0.0 https://github.com/osucomm/WsSoap

Extends the PHP SOAP client to add basic WSSE support

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-soap *
  • ext-curl *

 

by Corey Hinshaw

soap soap-client