Bridge

<back to all web services

ETSRegistrationSubmit

ETS
The following routes are available for this service:
POST/ETS/Registration
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class ETSRegistrationSubmit
    {
        public String CompanyName = null;
        public String FullName = null;
        public String EmailAddress = null;
        public String TelephoneNumber = null;
        public Integer CountryId = null;
        
        public String getCompanyName() { return CompanyName; }
        public ETSRegistrationSubmit setCompanyName(String value) { this.CompanyName = value; return this; }
        public String getFullName() { return FullName; }
        public ETSRegistrationSubmit setFullName(String value) { this.FullName = value; return this; }
        public String getEmailAddress() { return EmailAddress; }
        public ETSRegistrationSubmit setEmailAddress(String value) { this.EmailAddress = value; return this; }
        public String getTelephoneNumber() { return TelephoneNumber; }
        public ETSRegistrationSubmit setTelephoneNumber(String value) { this.TelephoneNumber = value; return this; }
        public Integer getCountryId() { return CountryId; }
        public ETSRegistrationSubmit setCountryId(Integer value) { this.CountryId = value; return this; }
    }

    public static class SavingResult
    {
        public Integer Id = null;
        public UUID GuidId = null;
        public SavingResultStatus Status = null;
        public ArrayList<SavingResultErrors> Errors = null;
        
        public Integer getId() { return Id; }
        public SavingResult setId(Integer value) { this.Id = value; return this; }
        public UUID getGuidId() { return GuidId; }
        public SavingResult setGuidId(UUID value) { this.GuidId = value; return this; }
        public SavingResultStatus getStatus() { return Status; }
        public SavingResult setStatus(SavingResultStatus value) { this.Status = value; return this; }
        public ArrayList<SavingResultErrors> getErrors() { return Errors; }
        public SavingResult setErrors(ArrayList<SavingResultErrors> value) { this.Errors = value; return this; }
    }

    public static enum SavingResultStatus
    {
        Success,
        Error;
    }

    public static class SavingResultErrors
    {
        public String Error = null;
        
        public String getError() { return Error; }
        public SavingResultErrors setError(String value) { this.Error = value; return this; }
    }

}

Java ETSRegistrationSubmit DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /ETS/Registration HTTP/1.1 
Host: internal.thebunkerbridge.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<ETSRegistrationSubmit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Private.Api.DTO">
  <CompanyName>String</CompanyName>
  <CountryId>0</CountryId>
  <EmailAddress>String</EmailAddress>
  <FullName>String</FullName>
  <TelephoneNumber>String</TelephoneNumber>
</ETSRegistrationSubmit>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SavingResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Core.Results">
  <Errors>
    <SavingResultErrors>
      <Error>String</Error>
    </SavingResultErrors>
  </Errors>
  <GuidId>00000000-0000-0000-0000-000000000000</GuidId>
  <Id>0</Id>
  <Status>Success</Status>
</SavingResult>