Skip to content

Releases: phpro/soap-client

Version 0.6.1

01 Feb 14:19
0.6.1
03f4d88
Compare
Choose a tag to compare

Version 0.6.0

24 Nov 13:44
0.6.0
Compare
Choose a tag to compare

Total issues resolved: 5

Migrating from 0.5.* to 0.6.0

Interface changes

Following interfaces have been changed, these need to be updated in your implementation:

  • \Phpro\SoapClient\CodeGenerator\Assembler\AssemblerInterface::canAssemble now requires a strict bool return type
  • \Phpro\SoapClient\CodeGenerator\Assembler\GetterAssembler::__construct now requires an instance of GetterAssemblerOptions
  • \Phpro\SoapClient\Client::call now requires a strict return type of ResultInterface
  • \Phpro\SoapClient\Client::call The method now needs to be strict string type hinted

Guzzle to new Httplug implementation

composer require psr/http-message:^1.0 php-http/httplug:^1.1 php-http/message-factory:^1.0 php-http/discovery:^1.3 php-http/message:^1.6 php-http/client-common:^1.6 php-http/guzzle6-adapter:^1.1
// Wrap your guzzle client in a HTTPlug adapter:
$httpClient = new Client($guzzleClient);

// Use the new HttPlugHandle instead of the old GuzzleHandle
$clientBuilder->withHandler(HttPlugHandle::createForClient($httpClient));

// use the new HttPlugWsdlProvider instead of the old GuzzleWsdlHandle
$clientBuilder->withWsdlProvider(HttPlugWsdlProvider::createForClient($httpClient));

// If you are using NTLM:
// Remove the NtlmMiddleware and add the curl options to the guzzle client configuration instead:
$httpClient = Client::createWithConfig(['curl' => [
    CURLOPT_HTTPAUTH => CURLAUTH_NTLM,
    CURLOPT_USERPWD => 'username:password',
]]);

Deprecated

These methods are deprecated and will be removed in a next release:

  • \Phpro\SoapClient\CodeGenerator\Config\ConfigInterface::getNamespace() use getTypeNamespace() instead.
  • \Phpro\SoapClient\CodeGenerator\Config\ConfigInterface::getDestination() use getTypeDestination() instead.
  • \Phpro\SoapClient\CodeGenerator\Config\ConfigInterface::setNamespace() use setTypeNamespace() instead.
  • \Phpro\SoapClient\CodeGenerator\Config\ConfigInterface::setDestination() use setTypeDestination() instead.

Version 0.5.3

Version 0.5.2

16 Aug 09:14
v0.5.2
Compare
Choose a tag to compare

Version 0.5.1

28 Jul 11:26
v0.5.1
Compare
Choose a tag to compare

Total issues resolved: 1

Version 0.5.0

Version 0.4.0

02 May 06:48
Compare
Choose a tag to compare

Version 0.3.1

10 Apr 05:58
v0.3.1
Compare
Choose a tag to compare

Version 0.3.0

03 Feb 08:02
v0.3.0
Compare
Choose a tag to compare

New features

Breaking changes

  • Exception normalization: The client always throws a \Phpro\SoapClient\Exception\SoapException. Therefor we also changed the FaultEvent. The getSoapFault() method was renamed to getSoapException(). This means you will have to change your custom EventListeners that listen to the FaultEvent.

Version 0.2.3

10 Oct 06:44
v0.2.3
Compare
Choose a tag to compare

New features

  • Added TraitAssembler
  • Added UseAssembler
  • Use the UseAssembler in the InterfaceAssembler
  • Added FluentAssembler
  • Added an optional wrappedClass attribute to the ResultProviderAssembler
  • Added FinalClassAssembler
  • Added PropertynameMatchesRule
  • Added TypeMapRule
  • Added MultiRule

Bugfixes

  • Fixed logging prefix