The WinAuthHttpServerConnection type exposes the following members.

Methods

  NameDescription
CallAction
Send a request with the specified action and AML to Innovator server and write the obtained response into the outDOM.
(Inherited from HttpServerConnection.)
GetDatabaseName
Returns name of the current database in use.
(Inherited from HttpServerConnection.)
GetDatabases
Returns all configured databases
(Inherited from HttpServerConnection.)
getFileUrl
Returns file full file url. In some cases with AuthenticationBroker's token.
(Inherited from HttpServerConnection.)
getFileUrls
(Inherited from HttpServerConnection.)
GetLicenseInfoOverloaded.
getUserID
If Login() was already called, returns id of the user assosiated with the connection; otherwise throws an exception.
(Inherited from HttpServerConnection.)
Login
The method implements the login to Innovator that is configured to use Windows authentication.
(Overrides HttpServerConnection..::.Login()()().)
LogoutOverloaded.

Properties

  NameDescription
Compression
Property specifies the way of compression of AML sent through IOM.HttpServerConnection. Value from enumeration 'CompressionType' (namespace Aras.Common.Compression) can be set. Available values are:
  • gzip data compression to the gzip format
  • deflate data compression to the deflate format
  • none Default value. Data sent through IOM.HttpServerConnection aren't compressed.
It is highly recommended to store type of compression you are using in configuration file of your application. Example section of application configuration file:
CopyXML
<configuration>
    <appSettings>
        <add key="CompressionType" value="gzip"/>
    </appSettings >
</configuration>
Examples of setting value of Compression property from application configuration file.

Examples

CopyC#
...
HttpServerConnection connection = CreateHttpServerConnection("innovatorServerUrl");
connaction.Compression = GetCompressionTypeFromAppConfig();
...
private CompressionType GetCompressionTypeFromAppConfig()
{
    string value = ConfigurationManager.AppSettings["CompressionType"];
    if (String.IsNullOrEmpty(value))
    {
        return CompressionType.none;
    }
    else
    {
        return (CompressionType)Enum.Parse(typeof(CompressionType), value);
    }
}
CopyVB.NET
...
Dim connection As HttpServerConnection = IomFactory.CreateHttpServerConnection("connectionstring")
connection.Compression = GetCompressionTypeFromAppConfig()
...
Private Function GetCompressionTypeFromAppConfig() As CompressionType
    Dim value As String = ConfigurationManager.AppSettings("CompressionType")
    If (String.IsNullOrEmpty(value)) Then
        Return CompressionType.none
    Else
        Return CType([Enum].Parse(GetType(CompressionType), value), CompressionType)
    End If
End Function
(Inherited from HttpServerConnection.)
ReadWriteTimeout
Gets or sets a time-out in milliseconds when writing to or reading from a stream.
(Inherited from HttpServerConnection.)
Timeout
Gets or sets the time-out value in milliseconds for the System.Net.HttpWebRequest.GetResponse() and System.Net.HttpWebRequest.GetRequestStream() methods.
(Inherited from HttpServerConnection.)

See Also