Coder Social home page Coder Social logo

wsdl2phpgenerator-cli's Introduction

wsdl2phpgenerator

Latest Stable Version Build Status Code Coverage Scrutinizer Quality Score Dependency Status

Simple WSDL to PHP classes converter. Takes a WSDL file and outputs class files ready to use.

Uses the MIT license.

Maintenance status

This is no longer actively maintained.

If you are looking for a PHP library to work with SOAP, you might want to try phpro/soap-client.

If you are currently using wsdl2phpgenerator and want to continue using it, consider forking the project and maintain it yourself.

New major version: 3

A new major version of wsdl2phpgenerator has recently been released: 3

This introduces changes to both configuration and generated code. The changes makes it more flexible to use, easier to include in other projects, promotes contributions and reduces maintenance.

2.x users are encourage to read a walkthrough of what is new in 3.0.

Installation

Add wsdl2phpgenerator to your project using composer:

composer require wsdl2phpgenerator/wsdl2phpgenerator

Contributors

Originally developed by @walle and includes bug fixes and improvements from various contributors.

Contributing

Pull requests are very welcome. Please read our guidelines for contributing.

Be sure to run the test suite, the fixers and the analyzers

composer test
composer fix
composer analyse

Usage and options

See usage and options for info on the usage of this package.

Versioning

This project uses semantic versioning. The following constitutes the public API:

  • \Wsdl2PhpGenerator\GeneratorInterface
  • \Wsdl2PhpGenerator\ConfigInterface
  • Generated code

Backwards incompatible changes to these means that the major version will be increased. Additional features and bug fixes increase minor and patch versions.

wsdl2phpgenerator-cli's People

Contributors

chriskl avatar ecolinet avatar ivoba avatar jrbasso avatar kasperg avatar lafriks avatar naxoc avatar nuth avatar rsully avatar sheeep avatar statik-olmo-archived avatar walle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wsdl2phpgenerator-cli's Issues

--singleFile not working

I tried bot

php /root/wsdl2phpgenerator-2.5.5.phar -i /root/input.wsdl -o /root/single.php -s and php /root/wsdl2phpgenerator-2.5.5.phar -i /root/input.wsdl -o /root/single.php --singleFİle

Cli says Generation complete

But nothing generated in /root/single.php.

ps: There is no problem if run without -s, it creates directory and classes

Class not found error when current directory has vendor directory

When trying to run the cli inside a composer's project directory I get an error:

PHP Fatal error: Class 'Wsdl2PhpGenerator\Console\Application' not found in phar:///usr/local/bin/wsdl2phpgenerator-2.4.0.phar/wsdl2php.php on line 11
PHP Stack trace:
PHP 1. {main}() /usr/local/bin/wsdl2phpgenerator-2.4.0.phar:0
PHP 2. require() /usr/local/bin/wsdl2phpgenerator-2.4.0.phar:10

Renaming the vendor directory fixes the problem so I guess it's trying to load the classes from there instead of looking in the phar file.

does not respect xsd "extension" parts

If wsdl contains parts for defining extending classes like
<xsd:element name="GetObjectTypesRequest"> <xsd:complexType> <xsd:complexContent> <xsd:extension base="TD3Request"> <xsd:sequence> <xsd:element name="import" type="TGetObjectTypesImport"/> </xsd:sequence> </xsd:extension> </xsd:complexContent> </xsd:complexType> </xsd:element>

the generated class header has no "extends TD3Request"-part, but should look like this

class GetObjectTypesRequest extends TD3Request

phar 3.4

Where can I find the phar file for version 3.4? Thanks

https issue with bad certificat

Hello, how passed a webservice with a bad certificat please ?

for now i have this message :

stagiaire@ubuntu:/var/www/html/wsdsl$ sudo php wsdl2phpgenerator-2.5.5.phar -i hhttps://ws.dd.fr' -o ws1/
PHP Fatal error:  SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://ws.dd.fr'' : failed to load external entity "https://ws.dd.fr'"
 in phar:///var/www/html/wsdsl/wsdl2phpgenerator-2.5.5.phar/src/Wsdl2PhpGenerator/Xml/WsdlDocument.php on line 44

  [Exception]
  Unable to load WSDL: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://ws.dd.fr'' : failed to load external entity "https://ws.dd.fr'"

  [SoapFault]
  SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://ws.dd.fr' : failed to load external entity https://ws.dd.fr'"

Generated Proxies have no __constructor implementation

Hello,
We used a really old version of wsdl2phpgenerator. And the generated output used to include a __constructor with properties passed in and being set inside the constructor.

For example:

  /**
   * 
   * @param string $Address1
   * @param string $Address2
   * @param string $City
   * @param string $Country
   * @param string $State
   * @param string $Zip
   * @access public
   */
  public function __construct($Address1, $Address2, $City, $Country, $State, $Zip)
  {
    $this->Address1 = $Address1;
    $this->Address2 = $Address2;
    $this->City = $City;
    $this->Country = $Country;
    $this->State = $State;
    $this->Zip = $Zip;
  }

The current version now generates an empty constructor.'

For example:

  /**
   * 
   * @access public
   */
  public function __construct()
  {

  }

The command we use is:
call wsdl2php --cacheNone --singleElementArrays -i http://myserver/SampleService.svc?singleWsdl -o "D:\outputdir"

The output is different between versions (as described above), how can we get the constructor implementations to be generated with the new version of wsdl2php ?

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.