AnsweredAssumed Answered

Exceptions generating triPOS Direct metadata

Question asked by frank on May 23, 2019
Latest reply on Jun 20, 2019 by frank

The triPOS Direct metadata (i.e.:  localhost:8080/api/metadata?xsd=1) page for v5.16 is still returning the below exception text (has been happening for the past several versions, FWIW).  This presents challenges for getting information on the operations (outside of the Swagger UI), and schemas for service, data, and collection types (as well as the Postman metadata). 

 

Will this be addressed at any time in the future?

 

Response Status
Error Code  InvalidDataContractException

 

Message

Type 'TriPos.Api.ServiceModels.LodgingTransactionCompletion' cannot inherit from a type that is not marked with DataContractAttribute or SerializableAttribute. Consider marking the base type 'TriPos.Api.ServiceModels.Lodging' with DataContractAttribute or SerializableAttribute, or removing them from the derived type.

 

Stack Trace

at System.Runtime.Serialization.ClassDataContract.ClassDataContractCriticalHelper..ctor(Type type) at System.Runtime.Serialization.DataContract.DataContractCriticalHelper.CreateDataContract(Int32 id, RuntimeTypeHandle typeHandle, Type type) at System.Runtime.Serialization.DataContract.DataContractCriticalHelper.GetDataContractSkipValidation(Int32 id, RuntimeTypeHandle typeHandle, Type type) at System.Runtime.Serialization.DataContractSet.GetDataContract(Type clrType) at System.Runtime.Serialization.DataContractSet.GetMemberTypeDataContract(DataMember dataMember) at System.Runtime.Serialization.DataContractSet.AddClassDataContract(ClassDataContract classDataContract) at System.Runtime.Serialization.DataContractSet.InternalAdd(XmlQualifiedName name, DataContract dataContract) at System.Runtime.Serialization.XsdDataContractExporter.Export(ICollection`1 types) at ServiceStack.XsdUtils.GetXmlSchemaSet(ICollection`1 operationTypes) at ServiceStack.Metadata.BaseSoapMetadataHandler.ProcessRequest(IRequest httpReq, IResponse httpRes, String operationName) at ServiceStack.Host.Handlers.HttpAsyncTaskHandler.<>c__DisplayClass1.b__0() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute()

 

Outcomes