WSTrustServiceContract.FixMessageElement Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Podczas generowania WSDL ta metoda naprawia określony element komunikatu operacji, aby odwoływać 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
Element ServiceDescription , który ma bieżący stan wyeksportowanego pliku WSDL.
- portType
- PortType
PortType języka WSDL, dla którego komunikaty mają zostać naprawione.
- 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
Element XmlQualifiedName komunikatu wejściowego.
- outputMessageElement
- XmlQualifiedName
Element XmlQualifiedName komunikatu wyjściowego.
Wyjątki
Parametr serviceDescription ma wartość null.
— lub —
Parametr portType ma wartość null.
— lub —
Parametr inputMessageType ma wartość null.
— lub —
Parametr outputMessageType ma wartość null.
operationName jest lub null Puste.
Uwagi
Kontrakt WS-Trust uwidoczniony przez program Windows Identity Foundation (WIF) pobiera Message i zwraca Message out. Jednak WS-Trust komunikaty oczekują RST i zwracają RSTR/RSTRC. Ta metoda naprawia nazwy komunikatów odpowiednimi komunikatami WS-Trust określonymi przez kwalifikowane nazwy XML w i inputMessageElementoutputMessageElement.