Contracts
OMS WCF Contracts come in three different forms: Model, Data, and Response. For our purposes, requests and identifiers are not considered contracts in the .NET DataContract sense.
Model Contracts
These contracts are complex OMS models such as a Client or Person. They are only returned from a WCF web service call and will be packaged in one of the Response contracts.
Data Contracts
These contracts are used for input to methods such as a Create or Update. Most times they will have significant similarities to a Model contract. However, these contracts will only contain data that can be saved by the user.
Response Contracts
These contracts are directly returned from a WCF web service call. They contain the result from the call. This could be a Model contract or a simple boolean value marking success.
Model Contracts
Data Contracts
Response Contracts
Name | Description |
---|---|
ArrayResponse(T) | |
BooleanResponse | |
IdResponse | |
Response(T) | |
SuccessResponse |