DocumentInsertRequestModel model = new DocumentInsertRequestModel()
{
Documents = new DocumentInsertModel[]
{
new DocumentInsertModel()
{
TransactionID = 1234567890,
Title = "Web Services Insert Test Document",
Source = new SourceModel()
{
FilePath = @"c:\myDocument.pdf"
},
Tasks = new TaskInsertModel[]
{
new TaskInsertModel()
{
ParticipantID = 1987654320
}
}
}
}
};
var results = serviceClient.InsertDocuments(GetServiceAuthentication(), model);
if (results.IsSuccessful)
{
//do work...
}
else
{
//handle error
}
Dim model As New DocumentInsertRequestModel() With {
.Documents = New DocumentInsertModel() {New DocumentInsertModel() With {
.TransactionID = 1234567890,
.Title = "Web Services Insert Test Document",
.Source = New SourceModel() With {
Key .FilePath = "c:\myDocument.pdf"
},
.Tasks = New TaskInsertModel() {New TaskInsertModel() With {
.ParticipantID = 1987654320
}}
}}
}
Dim results = serviceClient.InsertDocuments(GetServiceAuthentication(), model)
If Not results.IsSuccessful Then
'do work...
Else
'handle error
End If