ここでは、次のサンプルについて説明します。
DataService サンプル
SessionService サンプル
MathService サンプル
DataTypes サンプル
DataServiceClient サンプル
DataTypesClient サンプル
SessionServiceClient サンプル
MathServiceClient サンプル
MatchClient サンプル
DataService サンプル
このサンプルでは、SQL データベースから取得された DataSet を返す単純な XML Web サービスの例を示します。
オンラインのサンプル ドキュメントへのリンク
オンラインのサンプル ソース コードへのリンク
このサンプルで使用されている名前空間
System、System.Data、System.Web、System.Web.Services、System.Data.SqlClient
このサンプルで使用されているクラス
SqlDataAdapter、Service、DataSet、DataAdapter、SqlConnection、Table、WebService
SessionService サンプル
このサンプルでは、XML Web サービスから Session オブジェクトや Application オブジェクトなどの ASP.NET 組み込みオブジェクトにアクセスする方法を示します。また、[WebMethod] ごとに Session をオフにする方法も示します。
オンラインのサンプル ドキュメントへのリンク
オンラインのサンプル ソース コードへのリンク
このサンプルで使用されている名前空間
System、System.Web、System.Web.Services
このサンプルで使用されているクラス
Service、Application、String、WebService
MathService サンプル
このサンプル XML Web サービスは、数値の加算、減算、乗算、および除算を行います。このサンプルは、ASP.NET における XML Web サービスの定義の基本を示しています。
オンラインのサンプル ドキュメントへのリンク
オンラインのサンプル ソース コードへのリンク
このサンプルで使用されている名前空間
System、System.Web、System.Web.Services
このサンプルで使用されているクラス
Service、Math、WebService
DataTypes サンプル
このサンプルでは、さまざまなデータ型を XML Web サービスとやりとりする方法を示します。
オンラインのサンプル ドキュメントへのリンク
オンラインのサンプル ソース コードへのリンク
このサンプルで使用されている名前空間
System、System.Web、System.Web.Services
このサンプルで使用されているクラス
String、Service、Type、Types、WebService、Array
DataServiceClient サンプル
このサンプル クライアント アプリケーションは、Web サービス記述言語ツール (wsdl.exe) によって生成されたプロキシを使用して、対応する DataService サンプルを呼び出します。
オンラインのサンプル ドキュメントへのリンク
オンラインのサンプル ソース コードへのリンク
このサンプルで使用されている名前空間
System、System.Web、System.Web.Services、System.Diagnostics、System.Data、System.Web.Services.Protocols、System.Web.Services.Description、System.Xml、System.Xml.Serialization、System.Data.SqlClient
このサンプルで使用されているクラス
Service、DataSet、Attribute、DebuggerStepThroughAttribute、Debugger、Debug、DataGrid、Table、Style、AsyncResult、Message、Import、Binding、String、EventArgs、AsyncCallback、Font、Page、SoapDocumentMethodAttribute、Version、Literal、Object、SoapBinding、Header、WebServiceBindingAttribute、Xml、WebService、Url、SoapHttpClientProtocol
DataTypesClient サンプル
このサンプル クライアント アプリケーションは、Web サービス記述言語ツール (wsdl.exe) によって生成されたプロキシを使用して、対応する DataTypes サンプルを呼び出します。
オンラインのサンプル ドキュメントへのリンク
オンラインのサンプル ソース コードへのリンク
このサンプルで使用されている名前空間
System、System.Web、System.Web.Services、System.Diagnostics、System.Web.Services.Protocols、System.Web.Services.Description、System.Xml.Serialization、System.Xml
このサンプルで使用されているクラス
Attribute、Service、Message、Debug、DebuggerStepThroughAttribute、Debugger、Array、AsyncResult、Style、Types、Type、Binding、SoapBinding、SoapDocumentMethodAttribute、Literal、String、AsyncCallback、Xml、XmlArrayItemAttribute、Version、SoapHttpClientProtocol、Url、Page、Object、WebServiceBindingAttribute、WebService、Import、EventArgs
SessionServiceClient サンプル
このサンプル クライアント アプリケーションは、Web サービス記述言語ツール (wsdl.exe) によって生成されたプロキシを使用して、対応する SessionService サンプルを呼び出します。
オンラインのサンプル ドキュメントへのリンク
オンラインのサンプル ソース コードへのリンク
このサンプルで使用されている名前空間
System、System.Web、System.Web.Services、System.Diagnostics、System.Web.Services.Protocols、System.Web.Services.Description、System.Xml.Serialization、System.Xml
このサンプルで使用されているクラス
Service、Attribute、Debug、Debugger、DebuggerStepThroughAttribute、AsyncResult、Style、Message、Binding、SoapBinding、AsyncCallback、SoapDocumentMethodAttribute、Version、Literal、EventArgs、Xml、Url、Page、Object、WebServiceBindingAttribute、WebService、Import、SoapHttpClientProtocol
MathServiceClient サンプル
このサンプル クライアント アプリケーションは、Web サービス記述言語ツール (wsdl.exe) によって生成されたプロキシを使用して、対応する MathService サンプルを呼び出します。
オンラインのサンプル ドキュメントへのリンク
オンラインのサンプル ソース コードへのリンク
このサンプルで使用されている名前空間
System、System.Web、System.Web.Services、System.Diagnostics、System.Web.Services.Protocols、System.Web.Services.Description、System.Xml.Serialization、System.Xml
このサンプルで使用されているクラス
Service、Attribute、Debug、Debugger、DebuggerStepThroughAttribute、Math、Style、AsyncResult、Binding、String、SoapBinding、SoapDocumentMethodAttribute、Literal、AsyncCallback、TextBox、Version、Object、Label、Xml、Url、WebServiceBindingAttribute、Import、Control、SoapHttpClientProtocol、WebService、EventArgs、Exception
MatchClient サンプル
このサンプルでは、任意の Web ページから値を抽出するためのクライアント プロキシを作成する方法を示します。抽出する値の説明は WSDL 形式で作成され、ページを要求し正規表現によって値を抽出するためのコードが Web サービス記述言語ツール (wsdl.exe) によって自動的に生成されます。
オンラインのサンプル ドキュメントへのリンク
オンラインのサンプル ソース コードへのリンク
このサンプルで使用されている名前空間
System、System.Web.Services、System.Web、System.Web.Services.Protocols、System.Diagnostics、System.Xml.Serialization、System.Xml
このサンプルで使用されているクラス
Match、Header、Service、Attribute、DebuggerStepThroughAttribute、Debugger、Debug、Url、Version、AsyncResult、Message、MatchAttribute、Exception、UrlParameterWriter、Xml、Import、EventArgs、AsyncCallback、HttpGetClientProtocol、HttpMethodAttribute、TextReturnReader、Object