Skip to content

Releases: WsdlToPhp/PackageGenerator

1.3.0

09 Feb 15:43
Compare
Choose a tag to compare

Mainly enhancements:

  • issue #40 - Support for SSL Context Options
  • issue #41 - Support for arrays
    • The addTo{property name} method has been added and accept an item to be added to the property. If the item is not of the correct type depending on the item's type, it throws an \InvalidArgumentException.
    • The set{property name} has been reviewed in order to throw an \InvalidArgumentException if the array passed as parameter contains an invalid item. In the case of an array of values which are defined using an enumeration, it throws only one exception indicating which values are incorrect.
  • issue #43 - "composer-name" required even if "standalone=false"

1.2.0

18 Sep 13:56
Compare
Choose a tag to compare

Major fix for generated ClassMap::get() method that returned wrong name for namespaced classes:

  • issue #36 - All tags defined by a Type outs empty in soap requests
  • BC:
    • classmap returned by ClassMap::get() method is now correct for namespaced struct classes, so it's more of a break changes fixation. Before that, your XML request may be incomplete due to this issue

1.1.3

15 Sep 18:38
Compare
Choose a tag to compare

Improvement:

  • issue #35 - __Construct set methods call and enum value conflict

1.1.2

11 Sep 17:55
Compare
Choose a tag to compare

Issues fixed:

  • issue #34 - Name "0001CreateRequest" is invalid, please provide a valid name
  • issue #33 - Name "" is invalid, please provide a valid name (operation named 0001CreateRequest)

1.1.1

10 Sep 11:47
Compare
Choose a tag to compare

Readme has been improved, Wiki has been initiated with the FAQ

1.1.0

08 Sep 09:55
Compare
Choose a tag to compare

New feature:

  • issue #30 - Possibility to load our own options file when using the command line

File removed:

1.0.0

06 Sep 12:40
Compare
Choose a tag to compare

First major release
Please use the attached phar file instead of the included one in the source code as it is always one version behind, will be removed from source soon. You can also download it from https://phar.wsdltophp.com/wsdltophp.phar

Changes from 1.0.0RC04:

  • issue #32 - Wrong Header Namespace ?
  • issue #31 - Unable to create function parameter for method "mapIpndDetailsToNumber" with type "NULL"
  • BC:
    • \Generator\Generator::generateClasses() has been renamed to generatePackage

1.0.0RC04

30 Aug 11:23
Compare
Choose a tag to compare

Release details:

  • issue #29 - Throw an exception instead of returning false
    • add getValidValues to EnumType generated class
  • issue #28 - Define the destination folder name for each type
  • issue #26 - Global sanity checks for more flexibility
    • add composer_name option
    • BC:
      • ClassMap::classMap method has been renamed to get as prefix and suffix are not required from now otherwise it generates a Fatal error such as PHP Fatal error: Constructor ClassMap::classMap() cannot be static
      • composer name for the generated package is new and required
  • issue #25 - Generate package under src folder
  • issue #24 - ErrorException: Use of undefined constant JSON_PRETTY_PRINT
  • issue #13 - classmap and namespaces are wrong when not using a prefix
  • issue #21 - Inherited class generates wrong object in php

1.0.0RC02

26 Aug 05:12
Compare
Choose a tag to compare
  • Add wsdltophp.phar file using Box project to create it, wsdltophp.phar should be used from now instead of console
  • Move classes under src folder, rename Tests to tests, rename Resources to resources, update composer.json and phpunit accordingly
  • BC:
    • Usage of GeneratorSoapClient as SoapClient handler that uses AbstractSoapClientBase as base SoapClient handler
    • Generator class does not inherit from \SoapClient class anymore
  • Improve Utils::getContentFromUrl() and Generator::getUrlContent() methods
  • Suffix is now an option as Prefix, read the readme to learn more about it
  • Use GeneratorAware layer to share Generator object among created objects
  • Use configuration file/reader for Xsd types
  • Improve SoapClient\Structs parser
  • Fix ArrayType methods (item, first, last, current, offetGet) return annotation
  • export composer.json file generation into a new File\Composer class
  • improve unit tests
  • BC:
    • From now, Wsdl origin, package destination, basic authentication credentials, proxy and SoapClient options are contained by the GeneratorOptions instance
    • Generator instanciation and usage reviewed, now it only accept one parameter, a GeneratorOptions object
    • Removal of WsdlContainer class
  • Generator simplification by handling only one Wsdl at a time as it was only possible to do so, code refactored in this way
  • Adding the possibility to set the parent class for StructType, ArrayType and ServiceType generated classes (options: wsdl-struct, wsdl-structarray, wsdl-soapclient)
  • File\Tutorial class alows to name the generated file as we want
  • Reserved keywords only come from configuration file
  • Define \InvalidArgumentException's code as the current file line
  • Remove no more used methods/constants from Model\AbstractModel
  • Add editor config file

1.0.0RC03

26 Aug 05:25
Compare
Choose a tag to compare
  • Fix phar file URL