Reply Mapping

Reply Mapping

SLIM CD webservice return blocks and SLIM CD library reply structures both have a standard set of fields/properties that are returned.

reply
response
responsecode
description
responseurl
datablock

The data inside the datablock will vary from web service to web service. Some web services will return a single line of test. Most web services will use the datablock as a wrapper for additional structures of information. See the DESCRIPTION tab on each individual function to identify the data contained in the datablock and the structure of that data. Each library contains the elements inside the datablock. Some of those items may be arrays of information.
Example XML datablock:

Example of a reply object within the library: (Note that datablock has been dropped for brevity)
SlimCD.Reports.GetBatchHistoryReply.response
SlimCD.Reports.GetBatchHistoryReply.responsecode
SlimCD.Reports.GetBatchHistoryReply.description
SlimCD.Reports.GetBatchHistoryReply.responseurl
SlimCD.Reports.GetBatchHistoryReply.Batches (array of BatchRecords)
SlimCD.Reports.GetBatchHistoryReply.Batches[0].BatchRecord.ID
SlimCD.Reports.GetBatchHistoryReply.Batches[0].BatchRecord.MerchantID
SlimCD.Reports.GetBatchHistoryReply.Batches[0].BatchRecord.BatchNumber
Etc…

In most cases, the “datablock” entry has been dropped from the reply structures to shorten the nesting of the data. In cases where the only thing returned in the datablock is a text string (like CloseBatch), the datablock object will be included as a string, with that text as it’s value.