A non-transitory computer readable medium storing instructions for generating a dynamic endpoint allowing a client device to consume a business object, the endpoint including an address, a binding, and a contract, the instructions causing a computing device to:
- load a definition of the business object, the definition having properties and methods;
- iterate through the definition;
- map the definition to endpoint-supported protocols, the mapping including:
- (i) mapping the business object properties to data contracts,
- (ii) mapping the business object methods to operation contracts, and
- (iii) ensuring business object method signatures have endpoint-supported inputs and outputs;
- and
- generate the endpoint based on a configuration, the configuration including services configuration, Windows Communication Foundation (“WCF”) configuration, representational state transfer (“REST”) configuration, and managed configuration;
- wherein the endpoint is generated in response to at least one of (a) the client device requesting the business object, (b) the business object being created and (c) the business object being updated.