System.ServiceModel 4.0.0.0

To modify and extend the Web Services Description Language (WSDL) exported by objects, implement the interface on an endpoint, contract, or operation behavior (an object that implements either , , or ) and add the behavior to the , , or property. In addition, you can also implement on a .

implementations are never invoked if they are implemented as an .

does not export custom policy assertions even though indigo1 exports custom binding policy assertions to the appropriate element inside WSDL. If you want to export custom policy assertions, implement the interface.

The metadata publication process begins by calling which in turn calls for each endpoint.

The endpoint is exported by first exporting its contract.When exporting a contract the calls the method on all implementations on the contract, and operation behaviors for that contract. Operations that use wildcard actions are not exported in metadata, so implementations on operation behaviors for these operations are not exported.

After exporting the contract, the port and binding are exported and exported policy expressions are attached.

Both the and the methods provide access to the so that implementations can report recoverable errors and warnings through the property. The context objects passed into both methods provide convenient mappings from exported WSDL elements to properties of and objects.

If an implementation throws an exception on export, the generated metadata is in an inconsistent state and the object should be discarded.

Custom export extension must run after the built-in serializer populates the service description.

Defines endpoint or contract behaviors that can export custom metadata.

- Method
  4.0.0.0
  System.Void `` ``

  The method is called when the metadata export system is exporting the contract. Only contract and operation behaviors implementing get the call. All behaviors implementing get the call.

  Use the parameter to modify the WSDL to be exported. For an example, see the Example section.

  Writes custom Web Services Description Language (WSDL) elements into the generated WSDL for a contract.

  The that exports the contract information. Provides mappings from exported WSDL elements to the contract description.
- Method
  4.0.0.0
  System.Void `` ``

  Implement the method to modify the WSDL exported for an endpoint. This method is called after the contract has been exported by .

  Writes custom Web Services Description Language (WSDL) elements into the generated WSDL for an endpoint.

  The that exports the endpoint information. Provides mappings from exported WSDL elements to the endpoint description.