Closed datWeazel closed 1 month ago
Hi, This is possibly due to the native PHP SoapClient class that does not map all the attributes from the ExpositionPeriodReservation to an XML structure. Is the ExpositionPeriodReservation indeed defined in the WSDL? You'll probably have to override the SoapClient class, as I did at https://github.com/WsdlToPhp/PackageEws365, in order to alter the XML before it is actually sent. You'll have to check the Parameter instance type in order to map the PHP class properties to their XML tag. Let me know anyway
Describe the bug I got a generated class
ArrayOfBasketItem
which in turn got an array ofBasketItem
objects.BasketItem
is a base class for different types of items. One of those isExpositionPeriodReservation
.I created a new ArrayOfBasketItem with one
ExpositionPeriodReservation
and tried to send it via the Soap Client to the service.BasketItem
provides some attributes likeid
andquantity
.ExpositionPeriodReservation
got additional parameters likeexpositionId
,expositionPeriodId
and more.The generated XML (in
__getLastRequest
) looks like this:So it is missing all of the attributes of the
ExpositionPeriodReservation
and only got the attributes ofBasketItem
.I uploaded the
BasketItem
andExpositionPeriodReservation
class files as well as the generated client file for the method I try to use:BasketItem.txt ExpositionPeriodReservation.txt Lock.txt
This is the full object that's in
$parameters
of the__soapCall
: (There's another object of typeLockBasketItemsRequest
around it, but that's irrelevant for the problem.