Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Nephila.RiskStore.ServiceModel.Requests
Imports Nephila.RiskStore.ServiceModel.Types
Imports Nephila.RiskStore.ServiceModel
Namespace Global
Namespace Nephila.RiskStore.ServiceModel.Requests
Public Partial Class ProcessRollupOutputPersistenceRequest
Public Overridable Property Id As Guid
Public Overridable Property OutputDetails As List(Of AnalysisResult)
End Class
End Namespace
Namespace Nephila.RiskStore.ServiceModel.Types
Public Partial Class AnalysisPortfolioEventSetResult
Implements IObjectWithId
Implements IHasAnalysisId
<DataMember(Order:=1)>
Public Overridable Property Id As Long Implements IObjectWithId.Id
<DataMember(Order:=2)>
Public Overridable Property AnalysisId As Long Implements IHasAnalysisId.AnalysisId
<DataMember(Order:=3)>
Public Overridable Property AnalysisPortfolioEventSetConfigurationId As Long
<DataMember(Order:=4)>
Public Overridable Property AnalysisResultId As Long
<DataMember(Order:=5)>
Public Overridable Property PortfolioName As String
<DataMember(Order:=6)>
Public Overridable Property RowIdentifier As Guid Implements IObjectWithId.RowIdentifier
End Class
<DataContract>
Public Partial Class AnalysisResult
Implements IObjectWithId
<DataMember(Order:=1)>
Public Overridable Property Id As Long Implements IObjectWithId.Id
<DataMember(Order:=2)>
Public Overridable Property AnalysisId As Long
<DataMember(Order:=3)>
Public Overridable Property AnalysisConfigurationId As Long
<DataMember(Order:=4)>
Public Overridable Property Container As String
<DataMember(Order:=5)>
Public Overridable Property BlobName As String
<DataMember(Order:=6)>
Public Overridable Property ResultTableName As String
<DataMember(Order:=7)>
Public Overridable Property AnalysisType As AnalysisType
<DataMember(Order:=8)>
Public Overridable Property SimulationLossPerspective As SimulationLossPerspective
<DataMember(Order:=9)>
Public Overridable Property ReinsurancePremiumLossType As ReinsurancePremiumLossType
<DataMember(Order:=10)>
Public Overridable Property OutputLevel As ResultOutputLevel
<DataMember(Order:=11)>
Public Overridable Property MetaRiskId As Integer
<DataMember(Order:=12)>
Public Overridable Property AnalysisPortfolioEventSetResults As List(Of AnalysisPortfolioEventSetResult)
<DataMember(Order:=13)>
Public Overridable Property RowIdentifier As Guid Implements IObjectWithId.RowIdentifier
End Class
End Namespace
End Namespace
VB.NET ProcessRollupOutputPersistenceRequest DTOs
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 /xml/oneway/ProcessRollupOutputPersistenceRequest HTTP/1.1
Host: riskstoreng-dev.nephila.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<ProcessRollupOutputPersistenceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nephila.RiskStore.ServiceModel.Requests">
<Id>00000000-0000-0000-0000-000000000000</Id>
<OutputDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/Nephila.RiskStore.ServiceModel.Types">
<d2p1:AnalysisResult>
<d2p1:Id>0</d2p1:Id>
<d2p1:AnalysisId>0</d2p1:AnalysisId>
<d2p1:AnalysisConfigurationId>0</d2p1:AnalysisConfigurationId>
<d2p1:Container>String</d2p1:Container>
<d2p1:BlobName>String</d2p1:BlobName>
<d2p1:ResultTableName>String</d2p1:ResultTableName>
<d2p1:AnalysisType>NotSet</d2p1:AnalysisType>
<d2p1:SimulationLossPerspective>NotSet</d2p1:SimulationLossPerspective>
<d2p1:ReinsurancePremiumLossType>NotSet</d2p1:ReinsurancePremiumLossType>
<d2p1:OutputLevel>NotSet</d2p1:OutputLevel>
<d2p1:MetaRiskId>0</d2p1:MetaRiskId>
<d2p1:AnalysisPortfolioEventSetResults>
<d2p1:AnalysisPortfolioEventSetResult>
<d2p1:AnalysisId>0</d2p1:AnalysisId>
<d2p1:AnalysisPortfolioEventSetConfigurationId>0</d2p1:AnalysisPortfolioEventSetConfigurationId>
<d2p1:AnalysisResultId>0</d2p1:AnalysisResultId>
<d2p1:Id>0</d2p1:Id>
<d2p1:PortfolioName>String</d2p1:PortfolioName>
<d2p1:RowIdentifier>00000000-0000-0000-0000-000000000000</d2p1:RowIdentifier>
</d2p1:AnalysisPortfolioEventSetResult>
</d2p1:AnalysisPortfolioEventSetResults>
<d2p1:RowIdentifier>00000000-0000-0000-0000-000000000000</d2p1:RowIdentifier>
</d2p1:AnalysisResult>
</OutputDetails>
</ProcessRollupOutputPersistenceRequest>