Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Ruft den URI ab, der den Speicherort der Spezifikationen der Inhaltscodierung darstellt, die nicht ausdrücklich durch die Encoding-Eigenschaft festgelegt sind, oder legt diesen fest.
Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)
Syntax
'Declaration
Public Property Namespace As String
'Usage
Dim instance As SoapBodyBinding
Dim value As String
value = instance.Namespace
instance.Namespace = value
public string Namespace { get; set; }
public:
property String^ Namespace {
String^ get ();
void set (String^ value);
}
/** @property */
public String get_Namespace ()
/** @property */
public void set_Namespace (String value)
public function get Namespace () : String
public function set Namespace (value : String)
Eigenschaftenwert
Eine Zeichenfolge, die einen URI enthält.
Hinweise
Diese Eigenschaft gibt eine leere Zeichenfolge ("") zurück, wenn der Eigenschaftenwert nicht festgelegt wurde. Der Wert sollte nur dann festgelegt werden, wenn der Wert der Use-Eigenschaft Encoded ist. Andernfalls wird der Wert der Eigenschaft ignoriert, was zu einem unerwartetem Verhalten des XML-Webdiensts führt.
Beispiel
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 = "https://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="https://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 = 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 = "https://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.set_Use(SoapBindingUse.Encoded);
// Set URI representing the encoding style for encoding the body.
mySoapBodyBinding.
set_Encoding("https://schemas.xmlsoap.org/soap/encoding/");
// Set the Uri representing the location of the specification
// for encoding of content not defined by 'Encoding' property'.
mySoapBodyBinding.set_Namespace("http://tempuri.org/soapsvcmgr/");
myInputBinding.get_Extensions().Add(mySoapBodyBinding);
Plattformen
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
Siehe auch
Referenz
SoapBodyBinding-Klasse
SoapBodyBinding-Member
System.Web.Services.Description-Namespace