POST | /delete/ |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class Delete
{
public String CiamId = null;
public String FirstName = null;
public String LastName = null;
public String EmailAddress = null;
public String MobileTelephoneNumber = null;
public String getCiamId() { return CiamId; }
public Delete setCiamId(String value) { this.CiamId = value; return this; }
public String getFirstName() { return FirstName; }
public Delete setFirstName(String value) { this.FirstName = value; return this; }
public String getLastName() { return LastName; }
public Delete setLastName(String value) { this.LastName = value; return this; }
public String getEmailAddress() { return EmailAddress; }
public Delete setEmailAddress(String value) { this.EmailAddress = value; return this; }
public String getMobileTelephoneNumber() { return MobileTelephoneNumber; }
public Delete setMobileTelephoneNumber(String value) { this.MobileTelephoneNumber = value; return this; }
}
public static class DeleteResponse
{
public ReturnStatus Status = null;
public ReturnStatus getStatus() { return Status; }
public DeleteResponse setStatus(ReturnStatus value) { this.Status = value; return this; }
}
public static class ReturnStatus
{
public String ReturnCode = null;
public String Message = null;
public String getReturnCode() { return ReturnCode; }
public ReturnStatus setReturnCode(String value) { this.ReturnCode = value; return this; }
public String getMessage() { return Message; }
public ReturnStatus setMessage(String value) { this.Message = 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 /delete/ HTTP/1.1
Host: webservices.mbukdatabase.co.uk
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<Delete xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RAPP.Mercedes.VanCustomerAccount.Api.ServiceModel.SitecoreServiceModels">
<CiamId>String</CiamId>
<EmailAddress>String</EmailAddress>
<FirstName>String</FirstName>
<LastName>String</LastName>
<MobileTelephoneNumber>String</MobileTelephoneNumber>
</Delete>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <DeleteResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RAPP.Mercedes.VanCustomerAccount.Api.ServiceModel.SitecoreServiceModels"> <Status> <Message>String</Message> <ReturnCode>String</ReturnCode> </Status> </DeleteResponse>