POST | /response/request |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class CDDResponseRequest
{
public String ApplicationGUID = null;
public String getApplicationGUID() { return ApplicationGUID; }
public CDDResponseRequest setApplicationGUID(String value) { this.ApplicationGUID = value; return this; }
}
public static class EventResponse
{
public String ApplicationGUID = null;
public String AuditFileID = null;
public String ResponseDesc = null;
public String ReportURL = null;
public String EventType = null;
public Date DateChecked = null;
public Integer CDDCheckID = null;
public Integer StatusCode = null;
public String getApplicationGUID() { return ApplicationGUID; }
public EventResponse setApplicationGUID(String value) { this.ApplicationGUID = value; return this; }
public String getAuditFileID() { return AuditFileID; }
public EventResponse setAuditFileID(String value) { this.AuditFileID = value; return this; }
public String getResponseDesc() { return ResponseDesc; }
public EventResponse setResponseDesc(String value) { this.ResponseDesc = value; return this; }
public String getReportURL() { return ReportURL; }
public EventResponse setReportURL(String value) { this.ReportURL = value; return this; }
public String getEventType() { return EventType; }
public EventResponse setEventType(String value) { this.EventType = value; return this; }
public Date getDateChecked() { return DateChecked; }
public EventResponse setDateChecked(Date value) { this.DateChecked = value; return this; }
public Integer getCddCheckID() { return CDDCheckID; }
public EventResponse setCddCheckID(Integer value) { this.CDDCheckID = value; return this; }
public Integer getStatusCode() { return StatusCode; }
public EventResponse setStatusCode(Integer value) { this.StatusCode = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /response/request HTTP/1.1
Host: wp-cddws-test.worldpay.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<CDDResponseRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CDD_Engine_WS.dto.Requests">
<ApplicationGUID>String</ApplicationGUID>
</CDDResponseRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <EventResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CDD_Engine_DLL.DataObjects"> <ApplicationGUID>String</ApplicationGUID> <AuditFileID>String</AuditFileID> <CDDCheckID>0</CDDCheckID> <DateChecked>0001-01-01T00:00:00</DateChecked> <EventType>String</EventType> <ReportURL>String</ReportURL> <ResponseDesc>String</ResponseDesc> <StatusCode>0</StatusCode> </EventResponse>