Hi, I recently learned how to use the Clarizen Web Services for my C# Desktop Application. I have been able to query, but have no success creating new instance of the application.
I'm trying to create a new TimeSheet entity using this CreateMessage:
new CreateMessage()
{
Entity =
new GenericEntity()
{
Id = new EntityId() { TypeName = "TimeSheet"},
Values = new FieldValue[]{
new FieldValue() { FieldName = "Comment" , Value = p.Comment },
new FieldValue() { FieldName = "Duration" , Value = new Duration() { Unit = DurationUnit.Hours, Value = (double)p.Duration / 60 } },
new FieldValue() { FieldName = "WorkItem" , Value = new BaseEntity(){ Id = new EntityId(){ TypeName="WorkItem", Value = p.WorkItem } } },
new FieldValue() { FieldName = "ReportedBy" , Value = new BaseEntity(){ Id = new EntityId(){ TypeName="User", Value = p.ReportedBy } } },
new FieldValue() { FieldName = "State" , Value = "Approved" },
new FieldValue() { FieldName = "ReportedDate", Value = p.ReportedDate },
}
}
};
However, I keep getting the System.Web.Services.Protocol.SoapException with a message "Cannot create an abstract class."
Any help would be greatly appreciated.
Thanks