Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Delphi SOAP Server definition for repeating elements


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 0
Graeme Chandler

Posts: 7
Registered: 10/29/97
Delphi SOAP Server definition for repeating elements  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 8, 2017 1:01 PM
In XE10 Berlin I'm writing a SOAP server and need to support an XML structure in which certain elements are repeated. In the example below, the <part>...</part> tags may be repeated an unknown number of times. I'm having no luck coming up with class structures that would support this. I've had a lot of experience writing SOAP/WebServices over the years, but usually they've been very straightforward and I could dictate the structure. Any suggestions (other than changing the data structure) would be appreciated.

Thanks

Graeme

<SOAP-ENV:Envelope>
   <SOAP-ENV:Body>
      <getPriceInformation >
         <schemaRef refSchema="scoreDMSgeneric" version="04.00.06"/>
         <userInformation>
            <userID>DCOM</userID>
            <firm>1</firm>
            <language>en-GB</language>
            <workplaceID>2A8BE593787</workplaceID>
         </userInformation>
         <vin>WBAVP52070VK51948</vin>
         <part>
            <quantity units="Pieces" unitsInDisplayFormat="Pieces" valueInDisplayFormat="1">1</quantity>
            <number>18307823349</number>
            <isLocal>false</isLocal>
         </part>
         <part>
            <quantity units="Pieces" unitsInDisplayFormat="Pieces" valueInDisplayFormat="1">1</quantity>
            <number>18308512137</number>
            <isLocal>false</isLocal>
         </part>
         .
         .
         .


Edited by: Graeme Chandler on May 8, 2017 1:02 PM
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02