You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mapping for Code inside of FristtypErweiterbar throws an exception:
Phpro\SoapClient\Exception\SoapException: Failed decoding type Soap\Encoding\Xml\Node\Element as {http://xoev.de/schemata/xzufi/2_2_0:leistungen.antwort.leistung.040104}. Failed at path "parameters.antwort.ergebnis.leistung.modulFrist.frist.typ.code". in Phpro\SoapClient\Exception\SoapException::fromThrowable() (line 19 of projectpath/vendor/phpro/soap-client/src/Phpro/SoapClient/Exception/SoapException.php).
Snipped SOAP responce code for struktur (full code is below):
The mapped hierarchy looks good to me. Maybe something is off that i just don't see and understand from the thrown exception. Maybe a type is not getting mapped properly.
class Code
{
privatestring$code;
private ?string$name = null;
private ?string$listURI = null;
private ?string$listVersionID = null;
// more code
class FristtypErweiterbar
{
private ?namespace\Type\Code$code = null;
// more code
class FristMitTyp
{
privatenamespace\Type\FristtypErweiterbar$typ;
// more code
}
class Fristmodul extends Leistungsmodul
{
/** * Strukturiert erfasste Fristen zur Leistung * * @var array<int<0,max>, namespace\Type\FristMitTyp> */privatearray$frist;
// more code
class Leistung
{
private ?namespace\Type\Fristmodul$modulFrist = null;
// more code
The generated classmap contains these types, although code is written in lowercase. I don't know if this is important, but changing it to Code did not do anything for me:
Run ./vendor/bin/soap-client generate:types --config config/soap-client.php for https://xzufi-v2-2-0-nw-schul.infodienste.de/?wsdl (warning: it will generate 1400 files...)
Run ./vendor/bin/soap-client generate:classmap --config config/soap-client.php for https://xzufi-v2-2-0-nw-schul.infodienste.de/?wsdl
Use this snipped Response to start the mapping process:
Bug Report
Summary
The mapping for
Codeinside ofFristtypErweiterbarthrows an exception:Snipped SOAP responce code for
struktur(full code is below):Current behavior
The mapped hierarchy looks good to me. Maybe something is off that i just don't see and understand from the thrown exception. Maybe a type is not getting mapped properly.
The generated classmap contains these types, although
codeis written in lowercase. I don't know if this is important, but changing it toCodedid not do anything for me:How to reproduce
soap-client.phpwithsetTypeReplacementStrategyfrom Generated types that use enums have wrong parameters #594../vendor/bin/soap-client generate:types --config config/soap-client.phpforhttps://xzufi-v2-2-0-nw-schul.infodienste.de/?wsdl(warning: it will generate 1400 files...)./vendor/bin/soap-client generate:classmap --config config/soap-client.phpforhttps://xzufi-v2-2-0-nw-schul.infodienste.de/?wsdlExpected behavior
There should be no exception :)