phpro / soap-client

A general purpose SOAP client for PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A property with a hyphen in the name

h4kuna opened this issue · comments

Bug Report

Hello,

Q A
BC Break no
Version both 2.4.2 and dev 3

Summary

The wsdl provide property definizioni-listini if i generate classes the property has name definizioniListini. But if I get response the assign to object is to property definizioni-listini instead of definizioniListini. And method is

    public function getDefinizioniListini(): ArrayOfDefinizioneListino
    {
        return $this->definizioniListini;
    }

Current behavior

Broken assign from soap response to generated class.

How to reproduce

See image

Expected behavior

The property definizioniListini is filled.

Interesting.
Since PHP's soap extension is not able to fill it in for you, can you try solving it by creating a custom type converter for it instead?

Info:

Type info:

  • namespace : http://www.immobinet.it/wsdl/WebserviceModAgenziaBundle
  • type: getDefinizioneListiniResponse

It is not something we can deal with at the moment. Check #485 for more information.