Bewerken

Delen via


WSTrustServiceContract.FixMessageElement Method

Definition

During WSDL generation, this method fixes a specified operation message element to refer to the RST and RSTR elements of the appropriate WS-Trust version.

protected:
 virtual void FixMessageElement(System::Web::Services::Description::ServiceDescription ^ serviceDescription, System::Web::Services::Description::PortType ^ portType, System::ServiceModel::Description::WsdlEndpointConversionContext ^ context, System::String ^ operationName, System::Xml::XmlQualifiedName ^ inputMessageElement, System::Xml::XmlQualifiedName ^ outputMessageElement);
protected virtual void FixMessageElement (System.Web.Services.Description.ServiceDescription serviceDescription, System.Web.Services.Description.PortType portType, System.ServiceModel.Description.WsdlEndpointConversionContext context, string operationName, System.Xml.XmlQualifiedName inputMessageElement, System.Xml.XmlQualifiedName outputMessageElement);
abstract member FixMessageElement : System.Web.Services.Description.ServiceDescription * System.Web.Services.Description.PortType * System.ServiceModel.Description.WsdlEndpointConversionContext * string * System.Xml.XmlQualifiedName * System.Xml.XmlQualifiedName -> unit
override this.FixMessageElement : System.Web.Services.Description.ServiceDescription * System.Web.Services.Description.PortType * System.ServiceModel.Description.WsdlEndpointConversionContext * string * System.Xml.XmlQualifiedName * System.Xml.XmlQualifiedName -> unit
Protected Overridable Sub FixMessageElement (serviceDescription As ServiceDescription, portType As PortType, context As WsdlEndpointConversionContext, operationName As String, inputMessageElement As XmlQualifiedName, outputMessageElement As XmlQualifiedName)

Parameters

serviceDescription
ServiceDescription

The ServiceDescription that has the current state of the exported WSDL.

portType
PortType

The WSDL PortType for which the messages are to be fixed.

context
WsdlEndpointConversionContext

Provides mappings from exported WSDL elements to the endpoint description.

operationName
String

The operation name inside the PortType.

inputMessageElement
XmlQualifiedName

The XmlQualifiedName of the input message element.

outputMessageElement
XmlQualifiedName

The XmlQualifiedName of the output message element.

Exceptions

serviceDescription is null.

-or-

portType is null.

-or-

inputMessageType is null.

-or-

outputMessageType is null.

operationName is null or Empty.

Remarks

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 specified by the XML qualified names in inputMessageElement and outputMessageElement.

Applies to