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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I got a generated class
ArrayOfBasketItemwhich in turn got an array ofBasketItemobjects.BasketItemis a base class for different types of items. One of those isExpositionPeriodReservation.I created a new ArrayOfBasketItem with one
ExpositionPeriodReservationand tried to send it via the Soap Client to the service.BasketItemprovides some attributes likeidandquantity.ExpositionPeriodReservationgot additional parameters likeexpositionId,expositionPeriodIdand more.The generated XML (in
__getLastRequest) looks like this:So it is missing all of the attributes of the
ExpositionPeriodReservationand only got the attributes ofBasketItem.I uploaded the
BasketItemandExpositionPeriodReservationclass 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
$parametersof the__soapCall: (There's another object of typeLockBasketItemsRequestaround it, but that's irrelevant for the problem.Beta Was this translation helpful? Give feedback.
All reactions