| All Verbs | /SignDocumentEYPV2/ |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class SignDocumentEYPV2
{
public EYPImzaType eypImzaType = null;
public String ClientKey = null;
public String AuthorizationID = null;
public String UserSSN = null;
public String AgentMessage = null;
public Long DocumentId = null;
public Boolean stampYn = null;
public String StampSSN = null;
public EYPImzaType getEypImzaType() { return eypImzaType; }
public SignDocumentEYPV2 setEypImzaType(EYPImzaType value) { this.eypImzaType = value; return this; }
public String getClientKey() { return ClientKey; }
public SignDocumentEYPV2 setClientKey(String value) { this.ClientKey = value; return this; }
public String getAuthorizationID() { return AuthorizationID; }
public SignDocumentEYPV2 setAuthorizationID(String value) { this.AuthorizationID = value; return this; }
public String getUserSSN() { return UserSSN; }
public SignDocumentEYPV2 setUserSSN(String value) { this.UserSSN = value; return this; }
public String getAgentMessage() { return AgentMessage; }
public SignDocumentEYPV2 setAgentMessage(String value) { this.AgentMessage = value; return this; }
public Long getDocumentId() { return DocumentId; }
public SignDocumentEYPV2 setDocumentId(Long value) { this.DocumentId = value; return this; }
public Boolean isStampYn() { return stampYn; }
public SignDocumentEYPV2 setStampYn(Boolean value) { this.stampYn = value; return this; }
public String getStampSSN() { return StampSSN; }
public SignDocumentEYPV2 setStampSSN(String value) { this.StampSSN = value; return this; }
}
public static enum EYPImzaType
{
ParafOzetiImza(1),
PaketOzetiImza(2),
NihaiOzetMuhur(3);
private final int value;
EYPImzaType(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static class SignDocumentEYPResponse extends BaseResponse
{
public Boolean Result = null;
public Boolean isResult() { return Result; }
public SignDocumentEYPResponse setResult(Boolean value) { this.Result = value; return this; }
}
public static class BaseResponse
{
public Boolean ServiceSuccessResult = null;
public String ErrorMesage = null;
public Boolean isServiceSuccessResult() { return ServiceSuccessResult; }
public BaseResponse setServiceSuccessResult(Boolean value) { this.ServiceSuccessResult = value; return this; }
public String getErrorMesage() { return ErrorMesage; }
public BaseResponse setErrorMesage(String value) { this.ErrorMesage = 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 /SignDocumentEYPV2/ HTTP/1.1
Host: imzagerservices.eyyubiye.bel.tr
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SignDocumentEYPV2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DaB.Imzager.Services.ServiceModel">
<AgentMessage>String</AgentMessage>
<AuthorizationID>String</AuthorizationID>
<ClientKey>String</ClientKey>
<DocumentId>0</DocumentId>
<StampSSN>String</StampSSN>
<UserSSN>String</UserSSN>
<eypImzaType>ParafOzetiImza</eypImzaType>
<stampYn>false</stampYn>
</SignDocumentEYPV2>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <SignDocumentEYPResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DaB.Imzager.Services.ServiceModel"> <ErrorMesage>String</ErrorMesage> <ServiceSuccessResult>false</ServiceSuccessResult> <Result>false</Result> </SignDocumentEYPResponse>