Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A property with a hyphen in the name #477

Closed
h4kuna opened this issue Jun 7, 2023 · 3 comments · Fixed by php-soap/encoding#6
Closed

A property with a hyphen in the name #477

h4kuna opened this issue Jun 7, 2023 · 3 comments · Fixed by php-soap/encoding#6

Comments

@h4kuna
Copy link
Contributor

h4kuna commented Jun 7, 2023

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.

@veewee
Copy link
Contributor

veewee commented Jun 7, 2023

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

@veewee veewee mentioned this issue Aug 23, 2023
18 tasks
@veewee
Copy link
Contributor

veewee commented Sep 29, 2023

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

@veewee
Copy link
Contributor

veewee commented Jul 5, 2024

Hello there @h4kuna ,

I wanted to get back to this issue:
We are finishing up v4 of the soap-client package which uses a new encoding system internally.
With this new system, you should be able to get around this issue more easily.

We are eager to receive some early feedback on this new release.
If you got some time, feel free to play around with the alpha version:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants