Udostępnij za pośrednictwem


WSTrustServiceContract.FixMessageElement Metoda

Definicja

Podczas generowania WSDL ta metoda naprawia określony element komunikatu operacji, aby odwołać się do elementów RST i RSTR odpowiedniej wersji WS-Trust.

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)

Parametry

serviceDescription
ServiceDescription

ServiceDescriptionMa bieżący stan wyeksportowanego WSDL.

portType
PortType

Element PortType WSDL, dla którego mają zostać naprawione komunikaty.

context
WsdlEndpointConversionContext

Udostępnia mapowania z wyeksportowanych elementów WSDL do opisu punktu końcowego.

operationName
String

Nazwa operacji wewnątrz elementu PortType.

inputMessageElement
XmlQualifiedName

XmlQualifiedNameElement komunikatu wejściowego.

outputMessageElement
XmlQualifiedName

XmlQualifiedNameElement komunikatu wyjściowego.

Wyjątki

serviceDescription to null.

-lub- portType to null.

-lub- inputMessageType to null.

-lub- outputMessageType to null.

operationName jest null lub puste.

Uwagi

Kontrakt WS-Trust uwidoczniony przez program Windows Identity Foundation (WIF) przyjmuje Message i zwraca wartość Message out. Ale WS-Trust komunikaty oczekują RST i zwracają RSTR/RSTRC. Ta metoda rozwiązuje nazwy komunikatów z odpowiednimi komunikatami WS-Trust określonymi przez kwalifikowane nazwy XML w inputMessageElement i outputMessageElement .

Dotyczy