SoapHeaderException クラスとは? わかりやすく解説

SoapHeaderException クラス

サーバー エラーSOAP 表現

名前空間: System.Web.Services.Protocols
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文構文

<SerializableAttribute> _
Public Class SoapHeaderException
    Inherits SoapException
Dim instance As SoapHeaderException
[SerializableAttribute] 
public class SoapHeaderException : SoapException
[SerializableAttribute] 
public ref class SoapHeaderException : public
 SoapException
/** @attribute SerializableAttribute() */ 
public class SoapHeaderException extends SoapException
SerializableAttribute 
public class SoapHeaderException extends
 SoapException
解説解説
使用例使用例

次の例では、XML Web サービス クライアントMyWebMethod XML Web サービス メソッド呼び出しMustUnderstand プロパティtrue設定されMyHeader 型の SOAP ヘッダー渡してます。XML Web サービス メソッドMyHeader SOAP ヘッダーDidUnderstand プロパティtrue設定しない場合は、SoapHeaderExceptionスローさます。

Imports System

Public Class Sample
    
    Public Shared Sub Main()
        Dim ws As New MyWebService()

        Try
            Dim customHeader As New
 MyHeader1()

            customHeader.MyValue = "Header Value for MyValue"
            customHeader.MustUnderstand = True

            ws.myHeader = customHeader

        Dim results As Integer

            results = ws.MyWebMethod(3,5)
        Catch e As Exception
            Console.WriteLine("Exception: {0}", e.ToString())
        End Try
    End Sub
End Class

using System;

public class Sample {
    
    public static void Main()
 {
        MyWebService ws = new MyWebService();

        try {
            MyHeader customHeader = new MyHeader();
            customHeader.MyValue = "Header Value for MyValue";
            customHeader.MustUnderstand = true;
            ws.myHeader = customHeader;
            
        int results = ws.MyWebMethod(3,5);
        }
        catch (Exception e) {
            Console.WriteLine ("Exception: {0}", e.ToString());
        }
    }
}

int main()
{
   MyWebService^ ws = gcnew MyWebService;
   try
   {
      MyHeader^ customHeader = gcnew MyHeader;
      customHeader->MyValue = "Header Value for MyValue";
      customHeader->MustUnderstand = true;
      ws->myHeader = customHeader;
      int results = ws->MyWebMethod( 3, 5 );
   }
   catch ( Exception^ e ) 
   {
      Console::WriteLine( "Exception: {0}", e );
   }

}

import System.*;

public class Sample
{
    public static void main(String[]
 args)
    {
        MyWebService ws = new MyWebService();
        try {
            MyHeader customHeader = new MyHeader();
            customHeader.myValue = "Header Value for MyValue";
            customHeader.set_MustUnderstand(true);
            ws.myHeader = customHeader;
            int results = ws.MyWebMethod(3, 5);
        }
        catch (System.Exception e) {
            Console.WriteLine("Exception: {0}", e.ToString());
        }
    } //main
} //Sample

継承階層継承階層
System.Object
   System.Exception
     System.SystemException
       System.Web.Services.Protocols.SoapException
        System.Web.Services.Protocols.SoapHeaderException
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapHeaderException メンバ
System.Web.Services.Protocols 名前空間
SoapHeader.MustUnderstand プロパティ
SoapHeader.DidUnderstand プロパティ
SoapHeader クラス
SoapException クラス


このページでは「.NET Framework クラス ライブラリ リファレンス」からSoapHeaderException クラスを検索した結果を表示しています。
Weblioに収録されているすべての辞書からSoapHeaderException クラスを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からSoapHeaderException クラスを検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「SoapHeaderException クラス」の関連用語

SoapHeaderException クラスのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



SoapHeaderException クラスのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS