ServiceDescription.RetrievalUrl Property

Gets or sets the URL of the XML Web service to which the ServiceDescription instance applies.

Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)

public:
property String^ RetrievalUrl {
	String^ get ();
	void set (String^ value);
}
/** @property */
public String get_RetrievalUrl ()

/** @property */
public void set_RetrievalUrl (String value)

public function get RetrievalUrl () : String

public function set RetrievalUrl (value : String)

Not applicable.

Property Value

The URL of the XML Web service. The default value is an empty string ("").

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_jsl.wsdl");
Console.WriteLine(myServiceDescription.get_Bindings().get_Item(1).
    get_Extensions().get_Item(0).ToString());
SoapBinding mySoapBinding = new SoapBinding();
mySoapBinding.set_Required(true);
SoapBinding mySoapBinding1 = new SoapBinding();
mySoapBinding1.set_Required(false);
myServiceDescription.get_Extensions().Add(mySoapBinding);
myServiceDescription.get_Extensions().Add(mySoapBinding1);
for (int iCtr = 0; iCtr < myServiceDescription.get_Extensions().
    get_Count(); iCtr++) {
    ServiceDescriptionFormatExtension 
        myServiceDescriptionFormatExtension = 
        (ServiceDescriptionFormatExtension)myServiceDescription.
        get_Extensions().get_Item(iCtr);
    Console.WriteLine("Required: " 
        + System.Convert.ToString(myServiceDescriptionFormatExtension.
        get_Required()));
}
myServiceDescription.Write(
    "ServiceDescription_Extensions_Output_jsl.wsdl");
myServiceDescription.set_RetrievalUrl("http://www.contoso.com/");
Console.WriteLine(("Retrieval URL is: " 
    + myServiceDescription.get_RetrievalUrl()));

Windows 98, Windows Server 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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: