Porta Plus 2 Web Services

<back to all web services

TimeZone

The following routes are available for this service:
GET/gettimezones/{License}/
GET/GetTimeZoneById/{License}/{ITimeZone}
GET/gettimezonebyname/{License}/{TimeZoneName}
GET/gettimezoneByISO3166/{License}/{TimeZoneIso3166}

To override the Content-type in your clients 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 /xml/reply/TimeZone HTTP/1.1 
Host: 7el.co 
Content-Type: application/xml
Content-Length: length

<TimeZone xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Web.Dto">
  <ContentId>0</ContentId>
  <FeatureName>String</FeatureName>
  <License>String</License>
  <ITimeZone>0</ITimeZone>
  <TimeZoneIso3166>String</TimeZoneIso3166>
</TimeZone>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<TimeZoneResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Web.Dto">
  <ContentId>0</ContentId>
  <FeatureName>String</FeatureName>
  <License>String</License>
  <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>
  <TimeZones xmlns:d2p1="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models.Porta">
    <d2p1:PortaTimeZone>
      <d2p1:Format>String</d2p1:Format>
      <d2p1:ISO31661A2>String</d2p1:ISO31661A2>
      <d2p1:ITimeZone>0</d2p1:ITimeZone>
      <d2p1:Name>String</d2p1:Name>
    </d2p1:PortaTimeZone>
  </TimeZones>
</TimeZoneResponse>