Condividi tramite


SoapBodyBinding.Namespace Proprietà

Definizione

Ottiene o imposta l'URI che rappresenta il percorso delle specifiche per la codifica del contenuto non definito in modo specifico dalla proprietà Encoding.

public:
 property System::String ^ Namespace { System::String ^ get(); void set(System::String ^ value); };
public string Namespace { get; set; }
member this.Namespace : string with get, set
Public Property Namespace As String

Valore della proprietà

Stringa contenente un URI.

Esempio

SoapBodyBinding^ mySoapBodyBinding = gcnew SoapBodyBinding;
// Encode SOAP body using rules specified by the 'Encoding' property.
mySoapBodyBinding->Use = SoapBindingUse::Encoded;
// Set URI representing the encoding style for encoding the body.
mySoapBodyBinding->Encoding = "http://schemas.xmlsoap.org/soap/encoding/";
// Set the Uri representing the location of the specification
// for encoding of content not defined by 'Encoding' property'.
mySoapBodyBinding->Namespace = "http://tempuri.org/soapsvcmgr/";
myInputBinding->Extensions->Add( mySoapBodyBinding );
SoapBodyBinding mySoapBodyBinding = new SoapBodyBinding();
// Encode SOAP body using rules specified by the 'Encoding' property.
mySoapBodyBinding.Use = SoapBindingUse.Encoded;
// Set URI representing the encoding style for encoding the body.
mySoapBodyBinding.Encoding="http://schemas.xmlsoap.org/soap/encoding/";
// Set the Uri representing the location of the specification
// for encoding of content not defined by 'Encoding' property'.
mySoapBodyBinding.Namespace="http://tempuri.org/soapsvcmgr/";
myInputBinding.Extensions.Add(mySoapBodyBinding);
Dim mySoapBodyBinding As New SoapBodyBinding()
' Encode SOAP body using rules specified by the 'Encoding' property.
mySoapBodyBinding.Use = SoapBindingUse.Encoded
' Set URI representing the encoding style for encoding the body.
mySoapBodyBinding.Encoding = "http://schemas.xmlsoap.org/soap/encoding/"
' Set the Uri representing the location of the specification 
' for encoding of content not defined by 'Encoding' property'.
mySoapBodyBinding.Namespace = "http://tempuri.org/soapsvcmgr/"
myInputBinding.Extensions.Add(mySoapBodyBinding)

Commenti

Questa proprietà restituirà una stringa vuota ("") se il valore della proprietà non è stato impostato. Il valore deve essere impostato solo se il valore della Use proprietà è Encoded. In caso contrario, il valore della proprietà verrà ignorato, causando un comportamento imprevisto dal servizio Web XML.

Si applica a