GithubHelp home page GithubHelp logo

terrorizer1980 / soap-client-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from goetas-webservices/soap-client-demo

0.0 1.0 0.0 46 KB

Demo project for https://github.com/goetas-webservices/soap-client

PHP 100.00%

soap-client-demo's Introduction

SOAP Client Example

Build Status

This is an example project on how to use the goetas-webservices/soap-client project.

Demo

Steps to use this demo project:

  1. clone this repo
  2. run composer install to get the dependencies
  3. run vendor/bin/soap-client -vvv generate config/config.yml src/Service/Container --dest-class=Service/Container/SoapContainer to generate all the required files
  4. run php bin/demo.php to see a working demo consuming http://www.dneonline.com/calculator.asmx?WSDL Calculator SOAP webservice
  5. enjoy SOAP again
  6. bonus: notice the code and type hinting by PhpStorm on $client and $result variable :)

Dependencies

Here an explanation of dependencies present in composer.json

  • php this demo is tested on PHP 7.1
  • symfony/var-dumper is optional and is used in this demo ony to color the output on the console
  • goetas-webservices/soap-client this is the main SOAP client dependency
  • php-http/guzzle6-adapter your HTTP client implementation, any php-http client implementation works fine(I have opted for guzzle6, at the moment guzzle, curl, buzz and react clients are supported).
  • php-http/message PSR-7 http message factories, more info are available on docs.php-http.org
  • guzzlehttp/psr7, my PSR-7 message implementation choice for php-http/message
  • goetas-webservices/wsdl2php (require-dev) this is the main dev dependency, has to be used during development the generate all the necessary information (php classes, jms mappings, wsdl metadata) used in production

Ignored files

Currently src/* and metadata/* are included in .gitignore, I recommend to remove the from the "ignore" file and to commit to your project the generated files by the command executed at step 3.

soap-client-demo's People

Contributors

goetas avatar rvdbogerd avatar

Watchers

 avatar

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.