Skip to content

aschamberger/BeSimpleWsdlToPhp

Repository files navigation

BeSimpleWsdlToPhp Build Status Coverage Status

wsdl2php - takes a WSDL document and generates PHP code from which to implement a service. The WSDL document must have a valid portType element, but it does not need to contain a binding element or a service element. It is always assumed the given doc-lit WSDLs "unwrap" nicely

Using the optional arguments you can customize the generated code.

Installation

If you do not yet have composer, install it like this:

curl -s http://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin

Create a composer.json file:

{
    "require": {
        "besimple/wsdl2php": "dev-master"
    }
}

Now you are ready to install the library:

php /usr/local/bin/composer.phar install

Run

php bin/wsdl2php.php -w"myservice.wsdl"