GithubHelp home page GithubHelp logo

wsdltophp / wsdlhandler Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 931 KB

Decorative design pattern to ease WSDL handling based on DomHandler

License: MIT License

Dockerfile 0.18% PHP 99.82%
wsdl xsd decorator-pattern decorator php-library

wsdlhandler's Introduction

WSDL Handler

WSDL Handler provides handful methods to manipulate/browse a WSDL and its schemas.

License Latest Stable Version TeamCity build status Scrutinizer Code Quality Code Coverage Total Downloads StyleCI SymfonyInsight

WsdlHandler uses the decorator design pattern upon DomHandler.

The source code has been originally created into the PackageGenerator project but it felt that it had the possibility to live by itself and to evolve independtly from the PackageGenerator project if necessary.

Testing using Docker

Thanks to the Docker image of phpfarm, tests can be run locally under any PHP version using the cli:

  • php-7.4

First of all, you need to create your container which you can do using docker-compose by running the below command line from the root directory of the project:

$ docker-compose up -d --build

You then have a container named wsdl_handler in which you can run composer commands and php cli commands such as:

# install deps in container (using update ensure it does use the composer.lock file if there is any)
$ docker exec -it wsdl_handler php-7.4 /usr/bin/composer update
# run tests in container
$ docker exec -it wsdl_handler php-7.4 -dmemory_limit=-1 vendor/bin/phpunit

Contributing

Please see CONTRIBUTING for details.

FAQ

Feel free to create an issue.

License

The MIT License (MIT). Please see License File for more information.

wsdlhandler's People

Contributors

mikaelcom avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

hnep

wsdlhandler's Issues

getAttributeMessageNamespace() must be of the type string, null returned

Hi there,

below error message came up when using the following command. I tried it without the namespace option, same happened. Then I tried the 3.3.6 version, which worked. So the error only comes in 4.0.1 (latest) version. Thanks for the work you've put in the project :)

sudo docker run --rm -it --volume $PWD:/var/www mikaelcom/wsdltophp:latest generate:package \
    --urlorpath="https://api.betdaqb2b.com/v2.0/API.wsdl" \
    --destination="/var/www/BetdaqSdk" \
    --force \
    --standalone=false \
    --namespace="BetdaqSdk" \
    --addcomments="date:2021/05/05"
Fatal error: Uncaught TypeError: Return value of WsdlToPhp\WsdlHandler\Tag\AbstractTagOperationElement::getAttributeMessageNamespace() must be of the type string, null returned in phar:///usr/bin/wsdltophp/vendor/wsdltophp/wsdlhandler/src/Tag/AbstractTagOperationElement.php:30
Stack trace:
#0 phar:///usr/bin/wsdltophp/vendor/wsdltophp/wsdlhandler/src/Tag/TagHeader.php(88): WsdlToPhp\WsdlHandler\Tag\AbstractTagOperationElement->getAttributeMessageNamespace()
WsdlToPhp/PackageGenerator#1 phar:///usr/bin/wsdltophp/vendor/wsdltophp/wsdlhandler/src/Tag/TagHeader.php(60): WsdlToPhp\WsdlHandler\Tag\TagHeader->getHeaderNamespaceFromMessage()
WsdlToPhp/PackageGenerator#2 phar:///usr/bin/wsdltophp/src/Parser/Wsdl/TagHeader.php(45): WsdlToPhp\WsdlHandler\Tag\TagHeader->getHeaderNamespace()
WsdlToPhp/PackageGenerator#3 phar:///usr/bin/wsdltophp/src/Parser/Wsdl/TagHeader.php(53): WsdlToPhp\PackageGenerator\Parser\Wsdl\TagHeader->parseHeader(Object(WsdlToPhp\WsdlHandler\Tag\TagHeader))
WsdlToPhp/PackageGenerator#4 phar:///usr/bin/wsdltophp/src/Parser/Wsdl/AbstractParser.php(40): WsdlToPhp\PackageGenerator\Parser\Wsdl\TagHeader->parseWsdl in phar:///usr/bin/wsdltophp/vendor/wsdltophp/wsdlhandler/src/Tag/AbstractTagOperationElement.php on line 30

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.