Replies: 3 comments
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Yes, the This is the definition of <xs:complexType name="ExpositionPeriodReservation">
<xs:complexContent mixed="false">
<xs:extension xmlns:q494="http://www.xxx.be/webshop/" base="q494:BasketItem">
<xs:sequence>
<xs:element minOccurs="0" name="Entries" nillable="true"
type="q494:ArrayOfExpositionPeriodReservationEntry" />
<xs:element minOccurs="0" name="ExpositionPeriodId" type="ser:guid" />
<xs:element minOccurs="0" name="LockTicket" nillable="true" type="q494:LockTicket" />
<xs:element minOccurs="0" name="Comments" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="ArticleSales" nillable="true"
type="q494:ArrayOfArticleSale" />
<xs:element minOccurs="0" name="Donation" nillable="true" type="xs:boolean" />
<xs:element minOccurs="0" name="OrderWithoutPayment" type="xs:boolean" />
<xs:element minOccurs="0" name="GiftAid" nillable="true" type="xs:boolean" />
<xs:element minOccurs="0" name="LanguageId" nillable="true" type="ser:guid" />
<xs:element minOccurs="0" name="ArticleOptionalSales" nillable="true"
type="q494:ArrayOfArticleSale" />
<xs:element minOccurs="0" name="ExpositionId" type="ser:guid" />
<xs:element minOccurs="0" name="CustomerId" nillable="true" type="ser:guid" />
<xs:element minOccurs="0" name="PersonalizedMessage" nillable="true"
type="xs:string" />
<xs:element minOccurs="0" name="TargetAudienceId" nillable="true" type="ser:guid" />
<xs:element minOccurs="0" name="AutomaticArticleSales" nillable="true"
type="q494:ArrayOfArticleSale" />
<xs:element minOccurs="0" name="WaiterPadDiscountPercentage" type="xs:decimal" />
<xs:element xmlns:q495="http://schemas.microsoft.com/2003/10/Serialization/Arrays"
minOccurs="0" name="TargetSkillSubCategoryIds" nillable="true"
type="q495:ArrayOfguid" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element xmlns:q496="http://www.xxx.be/webshop/" name="ExpositionPeriodReservation"
nillable="true" type="q496:ExpositionPeriodReservation" /> |
Beta Was this translation helpful? Give feedback.
-
The SoapClient does not seem to care and you can't indicate anything more from my point of view. You don't have to construct the XML completely but you can complete it by overriding the __doRequest as in the given sample project, using for exemple a DOMDocument object and then targeting the right DOMElement in order to add what's missing. Be aware that you can catch the original PHP Object that has to be sent by overriding the __call method which receives the PHP Object you constructed. So, storing it as a property in you overridden SoapClient, you can use it after in the __doRequest method. |
Beta Was this translation helpful? Give feedback.
-
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.Beta Was this translation helpful? Give feedback.
All reactions