ServiceDescription.RetrievalUrl Proprietà
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Ottiene o imposta l'URL del servizio Web XML a cui si applica l'istanza di ServiceDescription.
public:
property System::String ^ RetrievalUrl { System::String ^ get(); void set(System::String ^ value); };
public string RetrievalUrl { get; set; }
member this.RetrievalUrl : string with get, set
Public Property RetrievalUrl As String
Valore della proprietà
URL del servizio Web XML. Il valore predefinito è una stringa vuota ("").
Esempio
ServiceDescription^ myServiceDescription = gcnew ServiceDescription;
myServiceDescription = ServiceDescription::Read( "ServiceDescription_Extensions_Input_cs.wsdl" );
Console::WriteLine( myServiceDescription->Bindings[ 1 ]->Extensions[ 0 ] );
SoapBinding^ mySoapBinding = gcnew SoapBinding;
mySoapBinding->Required = true;
SoapBinding^ mySoapBinding1 = gcnew SoapBinding;
mySoapBinding1->Required = false;
myServiceDescription->Extensions->Add( mySoapBinding );
myServiceDescription->Extensions->Add( mySoapBinding1 );
System::Collections::IEnumerator^ myEnum = myServiceDescription->Extensions->GetEnumerator();
while ( myEnum->MoveNext() )
{
ServiceDescriptionFormatExtension^ myServiceDescriptionFormatExtension = (ServiceDescriptionFormatExtension^)(myEnum->Current);
Console::WriteLine( "Required: {0}", myServiceDescriptionFormatExtension->Required );
}
myServiceDescription->Write( "ServiceDescription_Extensions_Output_cs.wsdl" );
myServiceDescription->RetrievalUrl = "http://www.contoso.com/";
Console::WriteLine( "Retrieval URL is: {0}", myServiceDescription->RetrievalUrl );
ServiceDescription myServiceDescription = new ServiceDescription();
myServiceDescription =
ServiceDescription.Read("ServiceDescription_Extensions_Input_cs.wsdl");
Console.WriteLine(
myServiceDescription.Bindings[1].Extensions[0].ToString());
SoapBinding mySoapBinding = new SoapBinding();
mySoapBinding.Required = true;
SoapBinding mySoapBinding1 = new SoapBinding();
mySoapBinding1.Required = false;
myServiceDescription.Extensions.Add(mySoapBinding);
myServiceDescription.Extensions.Add(mySoapBinding1);
foreach(ServiceDescriptionFormatExtension
myServiceDescriptionFormatExtension
in myServiceDescription.Extensions)
{
Console.WriteLine("Required: " +
myServiceDescriptionFormatExtension.Required);
}
myServiceDescription.Write(
"ServiceDescription_Extensions_Output_cs.wsdl");
myServiceDescription.RetrievalUrl = "http://www.contoso.com/";
Console.WriteLine("Retrieval URL is: " +
myServiceDescription.RetrievalUrl);
Dim myServiceDescription As New ServiceDescription()
myServiceDescription = _
ServiceDescription.Read("ServiceDescription_Extensions_Input_vb.wsdl")
Console.WriteLine( _
myServiceDescription.Bindings(1).Extensions(0).ToString())
Dim mySoapBinding As New SoapBinding()
mySoapBinding.Required = True
Dim mySoapBinding1 As New SoapBinding()
mySoapBinding1.Required = False
myServiceDescription.Extensions.Add(mySoapBinding)
myServiceDescription.Extensions.Add(mySoapBinding1)
Dim myServiceDescriptionFormatExtension As _
ServiceDescriptionFormatExtension
For Each myServiceDescriptionFormatExtension _
In myServiceDescription.Extensions
Console.WriteLine("Required: " & _
myServiceDescriptionFormatExtension.Required.ToString())
Next myServiceDescriptionFormatExtension
myServiceDescription.Write("ServiceDescription_Extensions_Output_vb.wsdl")
myServiceDescription.RetrievalUrl = "http://www.contoso.com/"
Console.WriteLine("Retrieval URL is: " & _
myServiceDescription.RetrievalUrl)
Si applica a
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.