編集

次の方法で共有


WSTrustServiceContract.ExportEndpoint Method

Definition

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

public:
 virtual void ExportEndpoint(System::ServiceModel::Description::WsdlExporter ^ exporter, System::ServiceModel::Description::WsdlEndpointConversionContext ^ context);
public virtual void ExportEndpoint (System.ServiceModel.Description.WsdlExporter exporter, System.ServiceModel.Description.WsdlEndpointConversionContext context);
abstract member ExportEndpoint : System.ServiceModel.Description.WsdlExporter * System.ServiceModel.Description.WsdlEndpointConversionContext -> unit
override this.ExportEndpoint : System.ServiceModel.Description.WsdlExporter * System.ServiceModel.Description.WsdlEndpointConversionContext -> unit
Public Overridable Sub ExportEndpoint (exporter As WsdlExporter, context As WsdlEndpointConversionContext)

Parameters

exporter
WsdlExporter

The WsdlExporter that exports the contract information.

context
WsdlEndpointConversionContext

Provides mappings from exported WSDL elements to the endpoint description.

Implements

Remarks

Implements the ExportEndpoint method.

The default implementation does the following for every WS-Trust contract found:

  1. Includes the appropriate WS-Trust namespace in the WSDL.

  2. Imports the appropriate WS-Trust schema and all dependent schemas.

  3. Fixes the Messages of each operation to appropriate WS-Trust equivalents. The WS-Trust Contract exposed by Windows Identity Foundation (WIF) takes a Message in and returns a Message out. But WS-Trust messages expect an RST and return an RSTR/RSTRC. This method fixes the message names with the appropriate WS-Trust messages.

Applies to