HTTP + XML
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /xml/reply/UpdateSentencingInfo HTTP/1.1
Host: ncapi.net.au
Content-Type: application/xml
Content-Length: length
<UpdateSentencingInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NetCard.Server.API.ServiceModel.SentencingInfo">
<SentencingInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/NetCard.Server.API.DTO">
<d2p1:DateOfSentence>0001-01-01T00:00:00</d2p1:DateOfSentence>
<d2p1:EndOfSentenceDate>0001-01-01T00:00:00</d2p1:EndOfSentenceDate>
<d2p1:FullTimeDischargeDate>0001-01-01T00:00:00</d2p1:FullTimeDischargeDate>
<d2p1:LegalStatus>String</d2p1:LegalStatus>
<d2p1:LifeSentence>false</d2p1:LifeSentence>
<d2p1:ParoleDate>0001-01-01T00:00:00</d2p1:ParoleDate>
<d2p1:ParoleDecisionDates>0001-01-01T00:00:00</d2p1:ParoleDecisionDates>
<d2p1:PostCustodialLocation>String</d2p1:PostCustodialLocation>
<d2p1:SentenceStartDate>0001-01-01T00:00:00</d2p1:SentenceStartDate>
<d2p1:SentencingInfoId>0</d2p1:SentencingInfoId>
<d2p1:StartOfCustodialPeriod>0001-01-01T00:00:00</d2p1:StartOfCustodialPeriod>
<d2p1:SuspensionDate>0001-01-01T00:00:00</d2p1:SuspensionDate>
<d2p1:UserId>0</d2p1:UserId>
</SentencingInfo>
</UpdateSentencingInfo>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<UpdateSentencingInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NetCard.Server.API.ServiceModel.SentencingInfo">
<ErrorCode xmlns="http://schemas.servicestack.net/types">String</ErrorCode>
<Message xmlns="http://schemas.servicestack.net/types">String</Message>
<StackTrace xmlns="http://schemas.servicestack.net/types">String</StackTrace>
<Errors xmlns="http://schemas.servicestack.net/types">
<ResponseError>
<ErrorCode>String</ErrorCode>
<FieldName>String</FieldName>
<Message>String</Message>
</ResponseError>
</Errors>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
</d2p1:ResponseError>
</d2p1:Errors>
</ResponseStatus>
<SentencingInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/NetCard.Server.API.DTO">
<d2p1:DateOfSentence>0001-01-01T00:00:00</d2p1:DateOfSentence>
<d2p1:EndOfSentenceDate>0001-01-01T00:00:00</d2p1:EndOfSentenceDate>
<d2p1:FullTimeDischargeDate>0001-01-01T00:00:00</d2p1:FullTimeDischargeDate>
<d2p1:LegalStatus>String</d2p1:LegalStatus>
<d2p1:LifeSentence>false</d2p1:LifeSentence>
<d2p1:ParoleDate>0001-01-01T00:00:00</d2p1:ParoleDate>
<d2p1:ParoleDecisionDates>0001-01-01T00:00:00</d2p1:ParoleDecisionDates>
<d2p1:PostCustodialLocation>String</d2p1:PostCustodialLocation>
<d2p1:SentenceStartDate>0001-01-01T00:00:00</d2p1:SentenceStartDate>
<d2p1:SentencingInfoId>0</d2p1:SentencingInfoId>
<d2p1:StartOfCustodialPeriod>0001-01-01T00:00:00</d2p1:StartOfCustodialPeriod>
<d2p1:SuspensionDate>0001-01-01T00:00:00</d2p1:SuspensionDate>
<d2p1:UserId>0</d2p1:UserId>
</SentencingInfo>
</UpdateSentencingInfoResponse>