Developer forum

Forum » Integration » ICC response formats

ICC response formats

Thomas Overgaard Nielsen
Reply

Hi all

In my integration project I have come to implementing the Integration Customer Center, and the manual is pretty sparse in this regard.
The response format for the GetList request is shown, and I got this to work.
But appearantly clicking an item in one of the lists generates another request of the format:

<GetItem type="Invoice" customerID="xxxx" documentNO="yyyy"></GetItem>

I can't seem to find any example of a valid response to this. Is the response supposed to be the exact same format as the GetList response (apart from returning just one item)?

Thanks in advance
Thomas


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Thomas,
For the item details the response should be in the format like it is shown in the attached file. You can define your own tag names and put the xml tags with the data in the response
so that it will be shown in the corresponeded frontend tags. So the main strcture that needs to be present is like this:

<tables>
  <table tableName="EcomOrders">   
    <item table="EcomOrders">
      <column columnName="Your tag name">YOUR DATA</column>      
      ...
    </item>
  </table>
  <table tableName="EcomOrderLines">    
    <item table="EcomOrderLines">
      <column columnName="Your tag name">YOUR DATA</column>
      ...
    </item>
    <item table="EcomOrderLines">
      <column columnName="Your tag name">YOUR DATA</column>
      ...
    </item>
  </table>
</tables>


You can also see the default template for that in the folder:
Files\Templates\eCom\IntegrationCustomerCenter\OrderDetails.html
section: <!--@LoopStart(OrderLinesLoop)-->...<!--@LoopEnd(OrderLinesLoop)-->
which is displaying the data from the "EcomOrderLines" xml items.

Regards, Dmitrij

 

Votes for this answer: 1
 
Thomas Overgaard Nielsen
Reply

Thanks for your help (again!), Dmitrij

Much appreciated!

Thomas

 
Thomas Overgaard Nielsen
Reply

.. and a note for the benefit of others: Notice the inconsistency between the response-formats to GetList and GetItem:

GetList:

(..)
<item table="EcomOrder">

 

GetItem:

(..)
<item table="EcomOrders">

 

You must be logged in to post in the forum