This topic has not yet been rated - Rate this topic

Commerce Foundation Request and Response Extensibility Point

Commerce Server 2009

Commerce Server 2009 requests and responses are fully extensible. The following represents the class hierarchy of the CommerceQueryOperation.

Dd451792.1e63e65b-6121-40cf-a418-1ebc9f6a5e2c(en-US,CS.90).gif

You have the ability to extend operation requests and responses simply by deriving classes from existing ones or introduce completely new ones simply by deriving from the CommerceOperation and CommerceOperationResponse classes accordingly.

All operation responses are instantiated through by the Broker on a given configured type. The Broker uses .NET reflection to instantiate the classes into their corresponding object. When a request is sent to the Microsoft Multi-Channel Commerce Foundation service, the Broker is responsible for instantiating the response object. The type of the response is defined as part of the operation sequence definition.

WCF relies on the use of KnownType. These are read at runtime by WCF to provide the proper serialization and WSDL information. When you introduce your own classes into Microsoft Multi-Channel Commerce Foundation you need to provide the KnownType information. This is done in both the presentation and application tier .NET configuration files.

Dd451792.alert_note(en-US,CS.90).gifNote:

 While WCF is not supported as an enabled service in this release, it has not been disabled.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.