This documentation is archived and is not being maintained.
ServiceDescription::RetrievalUrl Property
Visual Studio 2008
Gets or sets the URL of the XML Web service to which the ServiceDescription instance applies.
Assembly: System.Web.Services (in System.Web.Services.dll)
Property Value
Type: System::StringThe 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(S"ServiceDescription_Extensions_Input_cs.wsdl");
Console::WriteLine(
myServiceDescription->Bindings->Item[1]->Extensions->Item[0]);
SoapBinding* mySoapBinding = new SoapBinding();
mySoapBinding->Required = true;
SoapBinding* mySoapBinding1 = new SoapBinding();
mySoapBinding1->Required = false;
myServiceDescription->Extensions->Add(mySoapBinding);
myServiceDescription->Extensions->Add(mySoapBinding1);
System::Collections::IEnumerator* myEnum = myServiceDescription->Extensions->GetEnumerator();
while (myEnum->MoveNext())
{
ServiceDescriptionFormatExtension* myServiceDescriptionFormatExtension = __try_cast<ServiceDescriptionFormatExtension*>(myEnum->Current);
Console::WriteLine(S"Required: {0}", __box(myServiceDescriptionFormatExtension->Required));
}
myServiceDescription->Write(
S"ServiceDescription_Extensions_Output_cs.wsdl");
myServiceDescription->RetrievalUrl = S"http://www.contoso.com/";
Console::WriteLine(S"Retrieval URL is: {0}", myServiceDescription->RetrievalUrl);
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: