This documentation is archived and is not being maintained.
ServiceDescriptionImporter Constructor
.NET Framework 1.1
Initializes a new instance of the ServiceDescriptionImporter class.
[Visual Basic] Public Sub New() [C#] public ServiceDescriptionImporter(); [C++] public: ServiceDescriptionImporter(); [JScript] public function ServiceDescriptionImporter();
Example
[Visual Basic] ' Create a ServiceDescription by reading a .wsdl file. Dim myServiceDescription As ServiceDescription = _ ServiceDescription.Read("Sample_vb.wsdl") Dim myImporter As New ServiceDescriptionImporter() ' Add the ServiceDescription to the ServiceDescriptionImporter. myImporter.AddServiceDescription(myServiceDescription, "", "") myImporter.ProtocolName = "Soap" Console.WriteLine("ProtocolName: " + myImporter.ProtocolName) Console.WriteLine("Style: " + myImporter.Style.ToString()) [C#] // Create a ServiceDescription by reading a .wsdl file. ServiceDescription myServiceDescription = ServiceDescription.Read("Sample_CS.wsdl"); ServiceDescriptionImporter myImporter = new ServiceDescriptionImporter(); // Add the ServiceDescription to the ServiceDescriptionImporter. myImporter.AddServiceDescription(myServiceDescription, "", ""); myImporter.ProtocolName = "Soap"; Console.WriteLine("ProtocolName: " + myImporter.ProtocolName); Console.WriteLine("Style: " + myImporter.Style.ToString()); [C++] // Create a ServiceDescription by reading a .wsdl file. ServiceDescription* myServiceDescription = ServiceDescription::Read(S"Sample_cpp..wsdl"); ServiceDescriptionImporter* myImporter = new ServiceDescriptionImporter(); // Add the ServiceDescription to the ServiceDescriptionImporter. myImporter->AddServiceDescription(myServiceDescription, S"", S""); myImporter->ProtocolName = S"Soap"; Console::WriteLine(S"ProtocolName: {0}", myImporter->ProtocolName); Console::WriteLine(S"Style: {0}",__box( myImporter->Style));
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
ServiceDescriptionImporter Class | ServiceDescriptionImporter Members | System.Web.Services.Description Namespace
Show: