Server

<back to all web services

SmtpConfigSsl

Requires Authentication
The following routes are available for this service:
POST/files/Ssl
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Eras2Web.Service.Desktop.Server.ServiceModel.Eras2Client.Smtp;
using Eras2Web.Service.Desktop.Server.ServiceModel.Enums;

namespace Eras2Web.Service.Desktop.Server.ServiceModel.Enums
{
    public enum SecurityType
    {
        Ssl,
        Tls,
        Certificate,
    }

}

namespace Eras2Web.Service.Desktop.Server.ServiceModel.Eras2Client.Smtp
{
    [DataContract]
    public partial class SmtpConfig
    {
        [DataMember(Name="Host")]
        public virtual string Host { get; set; }

        [DataMember(Name="Port")]
        public virtual string Port { get; set; }

        [DataMember(Name="SecurityType")]
        public virtual SecurityType SecurityType { get; set; }

        [DataMember(Name="Username")]
        public virtual string Username { get; set; }

        [DataMember(Name="Password")]
        public virtual string Password { get; set; }

        [DataMember(Name="SmtpFromEmail")]
        public virtual string SmtpFromEmail { get; set; }
    }

    public partial class SmtpConfigResponse
    {
        public virtual ResponseStatus ResponseStatus { get; set; }
    }

    [DataContract]
    public partial class SmtpConfigSsl
        : SmtpConfig
    {
        [DataMember(Name="SecurityType")]
        public virtual SecurityType SecurityType { get; set; }
    }

}

C# SmtpConfigSsl DTOs

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

HTTP + CSV

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

POST /files/Ssl HTTP/1.1 
Host: messtechnik-horb-servdesk.eras-online.de 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"SecurityType":"Ssl","Host":"String","Port":"String","Username":"String","Password":"String","SmtpFromEmail":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}