ServiceDescriptionImportStyle 列挙体
アセンブリ: System.Web.Services (system.web.services.dll 内)

Public Enumeration ServiceDescriptionImportStyle

メンバ名 | 説明 | |
---|---|---|
Client | クライアントのコンピュータに対してインポートを行う必要があることを指定します。 | |
Server | サーバーに対してインポートを行う必要があることを指定します。 | |
ServerInterface | サーバー インターフェイスに対してインポートを行う必要があることを指定します。 |

クライアントのコンピュータに対して行われるインポートでは、XML Web サービス内の各メソッドを呼び出すための同期メソッドと非同期メソッドを持つプロキシ クラスが生成されます。一方、サーバーでのインポートでは、抽象メンバを持つ抽象クラスが生成されるため、必要な実装を行うにはこのクラスをオーバーライドする必要があります。

Imports System Imports System.Web.Services.Description Namespace MyServiceDescription Class MyImporter Public Shared Sub Main() Try Dim myServiceDescription As ServiceDescription = _ ServiceDescription.Read("Sample_vb.wsdl") Dim myImporter As New ServiceDescriptionImporter() myImporter.ProtocolName = "Soap" myImporter.AddServiceDescription(myServiceDescription, "", "") Dim myStyle As ServiceDescriptionImportStyle = myImporter.Style Console.WriteLine("Import style: " + myStyle.ToString()) Catch e As Exception Console.WriteLine("Following exception was thrown: " + e.ToString()) End Try End Sub 'Main End Class 'MyImporter End Namespace 'MyServiceDescription
using System; using System.Web.Services.Description; namespace MyServiceDescription { class MyImporter { public static void Main() { try { ServiceDescription myServiceDescription = ServiceDescription.Read("Sample_CS.wsdl"); ServiceDescriptionImporter myImporter = new ServiceDescriptionImporter(); myImporter.ProtocolName = "Soap"; myImporter.AddServiceDescription(myServiceDescription, "", ""); ServiceDescriptionImportStyle myStyle = myImporter.Style; Console.WriteLine("Import style: " + myStyle.ToString()); } catch (Exception e) { Console.WriteLine("Following exception was thrown: " + e.ToString()); } } } }
#using <System.Web.Services.dll> #using <System.dll> #using <System.Xml.dll> using namespace System; using namespace System::Web::Services::Description; int main() { try { ServiceDescription^ myServiceDescription = ServiceDescription::Read( "Sample_cpp.wsdl" ); ServiceDescriptionImporter^ myImporter = gcnew ServiceDescriptionImporter; myImporter->ProtocolName = "Soap"; myImporter->AddServiceDescription( myServiceDescription, "", "" ); ServiceDescriptionImportStyle myStyle = myImporter->Style; Console::WriteLine( "Import style: {0}", myStyle ); } catch ( Exception^ e ) { Console::WriteLine( "Following exception was thrown: {0}", e ); } }

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からServiceDescriptionImportStyle 列挙体を検索する場合は、下記のリンクをクリックしてください。

- ServiceDescriptionImportStyle 列挙体のページへのリンク