Jaa


Commerce Foundation Request and Response Extensibility Point

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.

Factory Instantiation of the Responses

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 Self-Hosted Deployment Considerations

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.

Note

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

See Also

Other Resources

Extending Commerce Foundation

Commerce Foundation Operation Sequence Extensibility Point

Commerce Foundation Commerce Entity Extensibility Point

Commerce Foundation Metadata Extensibility Point