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 クラス

SoapHeaderException コンストラクタ ()


SoapHeaderException コンストラクタ (String, XmlQualifiedName, String, String, String, SoapFaultSubCode, Exception)

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

関連付けるデータを指定して、SoapHeaderException クラスの新しいインスタンスを初期化します。

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

Public Sub New ( _
    message As String, _
    code As XmlQualifiedName, _
    actor As String, _
    role As String, _
    lang As String, _
    subCode As SoapFaultSubCode, _
    innerException As Exception _
)
Dim message As String
Dim code As XmlQualifiedName
Dim actor As String
Dim role As String
Dim lang As String
Dim subCode As SoapFaultSubCode
Dim innerException As Exception

Dim instance As New SoapHeaderException(message,
 code, actor, role, lang, subCode, innerException)
public SoapHeaderException (
    string message,
    XmlQualifiedName code,
    string actor,
    string role,
    string lang,
    SoapFaultSubCode subCode,
    Exception innerException
)
public:
SoapHeaderException (
    String^ message, 
    XmlQualifiedName^ code, 
    String^ actor, 
    String^ role, 
    String^ lang, 
    SoapFaultSubCode^ subCode, 
    Exception^ innerException
)
public SoapHeaderException (
    String message, 
    XmlQualifiedName code, 
    String actor, 
    String role, 
    String lang, 
    SoapFaultSubCode subCode, 
    Exception innerException
)
public function SoapHeaderException (
    message : String, 
    code : XmlQualifiedName, 
    actor : String, 
    role : String, 
    lang : String, 
    subCode : SoapFaultSubCode, 
    innerException : Exception
)

パラメータ

message

例外が発生した理由を示すメッセージ。このパラメータは Message プロパティを設定します。

code

発生したエラーの種類。このパラメータは Code プロパティを設定します。

actor

例外の原因となったコードの一部。通常、これは XML Web サービス メソッドの URL になります。このパラメータは Actor プロパティを設定します。

role

SOAP メッセージの処理での XML Web サービスの役割を表す URI。このパラメータは Role プロパティを設定します。

lang

例外に関連付けられている言語を識別する文字列。このパラメータは Lang プロパティを設定します。

subCode

SOAP 違反の subcode 要素の内容を格納している SoapFaultSubcode。

innerException

例外の主要原因への参照。このパラメータは InnerException プロパティを設定します。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapHeaderException クラス
SoapHeaderException メンバ
System.Web.Services.Protocols 名前空間

SoapHeaderException コンストラクタ (String, XmlQualifiedName, String, String, SoapFaultSubCode, Exception)

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

関連付けるデータを指定して、SoapHeaderException クラスの新しいインスタンスを初期化します。

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

Public Sub New ( _
    message As String, _
    code As XmlQualifiedName, _
    actor As String, _
    role As String, _
    subCode As SoapFaultSubCode, _
    innerException As Exception _
)
Dim message As String
Dim code As XmlQualifiedName
Dim actor As String
Dim role As String
Dim subCode As SoapFaultSubCode
Dim innerException As Exception

Dim instance As New SoapHeaderException(message,
 code, actor, role, subCode, innerException)
public SoapHeaderException (
    string message,
    XmlQualifiedName code,
    string actor,
    string role,
    SoapFaultSubCode subCode,
    Exception innerException
)
public:
SoapHeaderException (
    String^ message, 
    XmlQualifiedName^ code, 
    String^ actor, 
    String^ role, 
    SoapFaultSubCode^ subCode, 
    Exception^ innerException
)
public SoapHeaderException (
    String message, 
    XmlQualifiedName code, 
    String actor, 
    String role, 
    SoapFaultSubCode subCode, 
    Exception innerException
)
public function SoapHeaderException (
    message : String, 
    code : XmlQualifiedName, 
    actor : String, 
    role : String, 
    subCode : SoapFaultSubCode, 
    innerException : Exception
)

パラメータ

message

例外が発生した理由を示すメッセージ。このパラメータは Message プロパティを設定します。

code

発生したエラーの種類。このパラメータは Code プロパティを設定します。

actor

例外の原因となったコードの一部。通常、これは XML Web サービス メソッドの URL になります。このパラメータは Actor プロパティを設定します。

role

SOAP メッセージの処理での XML Web サービスの役割を表す URI。このパラメータは Role プロパティを設定します。

subCode

SOAP 違反の <subcode> 要素の内容を格納している SoapFaultSubcode。

innerException

例外の主要原因への参照。このパラメータは InnerException プロパティを設定します。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapHeaderException クラス
SoapHeaderException メンバ
System.Web.Services.Protocols 名前空間

SoapHeaderException コンストラクタ (String, XmlQualifiedName, String, Exception)

SoapHeaderException クラスの新しいインスタンスを初期化します。

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

Public Sub New ( _
    message As String, _
    code As XmlQualifiedName, _
    actor As String, _
    innerException As Exception _
)
Dim message As String
Dim code As XmlQualifiedName
Dim actor As String
Dim innerException As Exception

Dim instance As New SoapHeaderException(message,
 code, actor, innerException)
public SoapHeaderException (
    string message,
    XmlQualifiedName code,
    string actor,
    Exception innerException
)
public:
SoapHeaderException (
    String^ message, 
    XmlQualifiedName^ code, 
    String^ actor, 
    Exception^ innerException
)
public SoapHeaderException (
    String message, 
    XmlQualifiedName code, 
    String actor, 
    Exception innerException
)
public function SoapHeaderException (
    message : String, 
    code : XmlQualifiedName, 
    actor : String, 
    innerException : Exception
)

パラメータ

message

例外が発生した理由を示すメッセージ。このパラメータは Message プロパティを設定します。

code

発生したエラーの種類。このパラメータは Code プロパティを設定します。

actor

例外の原因となったコードの一部。通常、これは XML Web サービス メソッドの URL になります。このパラメータは Actor プロパティを設定します。

innerException

例外の主要原因への参照。このパラメータは InnerException プロパティを設定します。

使用例使用例
<%@ WebService Language="VB" Class="MathSvc"
 %>

Imports System
Imports System.Web.Services
Imports System.Web.Services.Protocols

Public Class MySoapHeader
   Inherits SoapHeader
   Public number As Integer
End Class 'MySoapHeader

Public Class MathSvc
   Inherits WebService
   Public mySoapHeader As MySoapHeader

   <WebMethod(), SoapHeaderAttribute("mySoapHeader",
 _
      Direction := SoapHeaderDirection.In)>  _
   Public Function Add(xValue As
 Single, yValue As Single)
 As Single
      ' Process the header from the client.
      Try
         Dim j As Integer
 = 100 / mySoapHeader.number
      Catch e As Exception
         ' Throw a SoapHeaderException if an exception is caught during
         ' header processing.
         Throw New SoapHeaderException( _
            "An Exception was thrown during the processing of
 header", _
            SoapException.ClientFaultCode, _
            "http://localhost/MathSvc_SoapHeaderException4.vb.asmx/Add",
 e)
      End Try
      Return xValue + yValue
   End Function 'Add
End Class 'MathSvc
<%@ WebService Language="C#" Class="MathSvc" %>

using System;
using System.Web.Services;
using System.Web.Services.Protocols;

public class MySoapHeader : SoapHeader
{
   public int number;
}

public class MathSvc : WebService {
   public MySoapHeader mySoapHeader;

   [WebMethod]
   [SoapHeaderAttribute("mySoapHeader", Direction=SoapHeaderDirection.In)]
   public float Add(float
 xValue, float yValue) 
   {
      // Process the header from the client.
      try 
      {
         int j = 100/mySoapHeader.number;
      }
      catch(Exception e)
      {
         // Throw a SoapHeaderException if an exception is caught during
         // header processing.
         throw new SoapHeaderException(
            "An Exception was thrown during the processing of header",
            SoapException.ClientFaultCode,
            "http://localhost/MathSvc_SoapHeaderException4.cs.asmx/Add"
,
            e);
      }
      return(xValue + yValue);
   }
}
import System.*;
import System.Web.Services.*;
import System.Web.Services.Protocols.*;

public class MySoapHeader extends SoapHeader
{
    public int number;
} //MySoapHeader

public class MathSvc extends WebService
{
    public MySoapHeader mySoapHeader;

    /** @attribute WebMethod()
     */
    /** @attribute SoapHeaderAttribute("mySoapHeader", 
            Direction = SoapHeaderDirection.In)
     */
    public float Add(float
 xValue, float yValue) throws SoapHeaderException
    {
        // Process the header from the client.
        try {
            int j = 100 / mySoapHeader.number;
        }
        catch (System.Exception e) {
            // Throw a SoapHeaderException if an exception is caught
 during
            // header processing.
            throw new SoapHeaderException("An Exception was
 thrown during " 
                + "the processing of header", SoapException.ClientFaultCode,
 
                "http://localhost/MathSvc_SoapHeaderException4.cs.asmx/Add",
 e);
        }
        return xValue + yValue;
    } //Add
} //MathSvc
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapHeaderException クラス
SoapHeaderException メンバ
System.Web.Services.Protocols 名前空間

SoapHeaderException コンストラクタ (String, XmlQualifiedName)

SoapHeaderException クラスの新しいインスタンスを初期化します。

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

Public Sub New ( _
    message As String, _
    code As XmlQualifiedName _
)
Dim message As String
Dim code As XmlQualifiedName

Dim instance As New SoapHeaderException(message,
 code)
public SoapHeaderException (
    string message,
    XmlQualifiedName code
)
public:
SoapHeaderException (
    String^ message, 
    XmlQualifiedName^ code
)
public SoapHeaderException (
    String message, 
    XmlQualifiedName code
)
public function SoapHeaderException (
    message : String, 
    code : XmlQualifiedName
)

パラメータ

message

例外が発生した理由を示すメッセージ。このパラメータは Message プロパティを設定します。

code

発生したエラーの種類。このパラメータは Code プロパティを設定します。

使用例使用例
<%@ WebService Language="VB" Class="MathSvc"
 %>

Imports System
Imports System.Web.Services
Imports System.Web.Services.Protocols

Public Class MySoapHeader
   Inherits SoapHeader
   Public number As Integer
End Class 'MySoapHeader

Public Class MathSvc
   Inherits WebService
   Public mySoapHeader As MySoapHeader

   <WebMethod(), SoapHeaderAttribute("mySoapHeader",
 _
      Direction := SoapHeaderDirection.In)>  _
   Public Function Add(xValue As
 Single, yValue As Single)
 As Single
      ' Throw an exception if the value received in the header is zero.
      If mySoapHeader.number = 0 Then
         Throw New SoapHeaderException( _
            "value received in the header is zero.",
 _
            SoapException.ClientFaultCode)
      End If
      Return xValue + yValue
   End Function 'Add
End Class 'MathSvc
<%@ WebService Language="C#" Class="MathSvc" %>

using System;
using System.Web.Services;
using System.Web.Services.Protocols;

public class MySoapHeader : SoapHeader
{
   public int number;
}

public class MathSvc : WebService {
    public MySoapHeader mySoapHeader;
    
    [WebMethod]
    [SoapHeaderAttribute("mySoapHeader", Direction=SoapHeaderDirection.In)]
    public float Add(float
 xValue, float yValue) 
    {
        // Throw an exception if the value received in the header is
 zero.
        if(mySoapHeader.number == 0)
            throw new SoapHeaderException(
               "value received in the header is zero."
,
               SoapException.ClientFaultCode);
        return(xValue + yValue);
    }
}
<%@ WebService Language="VJ#" Class="MathSvc" %>

import System.*;
import System.Web.Services.*;
import System.Web.Services.Protocols.*;

public class MySoapHeader extends SoapHeader
{
    public int number;
} //MySoapHeader

public class MathSvc extends WebService
{
    public MySoapHeader mySoapHeader;

    /** @attribute WebMethod()
     */
    /** @attribute SoapHeaderAttribute("mySoapHeader", 
        Direction = SoapHeaderDirection.In)
    */
    public float Add(float
 xValue, float yValue) throws SoapHeaderException
    {
        // Throw an exception if the value received in the header is
 zero.
        if ( mySoapHeader.number == 0  ) {
            throw new SoapHeaderException("value received
 in the header is zero.", 
                SoapException.ClientFaultCode) ;
        }
        return xValue + yValue ;
    } //Add
} //MathSvc
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapHeaderException クラス
SoapHeaderException メンバ
System.Web.Services.Protocols 名前空間

SoapHeaderException コンストラクタ (String, XmlQualifiedName, Exception)

SoapHeaderException クラスの新しいインスタンスを初期化します。

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

Public Sub New ( _
    message As String, _
    code As XmlQualifiedName, _
    innerException As Exception _
)
Dim message As String
Dim code As XmlQualifiedName
Dim innerException As Exception

Dim instance As New SoapHeaderException(message,
 code, innerException)
public SoapHeaderException (
    string message,
    XmlQualifiedName code,
    Exception innerException
)
public:
SoapHeaderException (
    String^ message, 
    XmlQualifiedName^ code, 
    Exception^ innerException
)
public SoapHeaderException (
    String message, 
    XmlQualifiedName code, 
    Exception innerException
)
public function SoapHeaderException (
    message : String, 
    code : XmlQualifiedName, 
    innerException : Exception
)

パラメータ

message

例外が発生した理由を示すメッセージ。このパラメータは Message プロパティを設定します。

code

発生したエラーの種類。このパラメータは Code プロパティを設定します。

innerException

例外の主要原因への参照。このパラメータは InnerException プロパティを設定します。

使用例使用例
<%@ WebService Language="VB" Class="MathSvc"
 %>

Imports System
Imports System.Web.Services
Imports System.Web.Services.Protocols

Public Class MySoapHeader
   Inherits SoapHeader
   Public number As Integer
End Class 'MySoapHeader

Public Class MathSvc
   Inherits WebService
   Public mySoapHeader As MySoapHeader

   <WebMethod(), SoapHeaderAttribute("mySoapHeader",
 _
      Direction := SoapHeaderDirection.In)>  _
   Public Function Add(xValue As
 Single, yValue As Single)
 As Single
      ' Process the header from the client.
      Try
         Dim j As Integer
 = 100 / mySoapHeader.number
      Catch e As Exception
         ' Throw a SoapHeaderException if an exception is caught during
 
         ' header processing.
         Throw New SoapHeaderException( _
            "An Exception was thrown during the processing of
 header", _
            SoapException.ClientFaultCode, e)
      End Try
      Return xValue + yValue
   End Function 'Add
End Class 'MathSvc
<%@ WebService Language="C#" Class="MathSvc" %>

using System;
using System.Web.Services;
using System.Web.Services.Protocols;

public class MySoapHeader : SoapHeader
{
   public int number;
}

public class MathSvc : WebService {
   public MySoapHeader mySoapHeader;

   [WebMethod]
   [SoapHeaderAttribute("mySoapHeader", Direction=SoapHeaderDirection.In)]
   public float Add(float
 xValue, float yValue) 
   {
      // Process the header from the client.
      try 
      {
         int j = 100/mySoapHeader.number;
      }
      catch(Exception e)
      {
         // Throw a SoapHeaderException if an exception is caught during
 
         // header processing.
         throw new SoapHeaderException(
            "An Exception was thrown during the processing of header",
            SoapException.ClientFaultCode, e);
      }
      return(xValue + yValue);
   }
}
<%@ WebService Language="VJ#" Class="MathSvc" %>
import System.*;
import System.Web.Services.*;
import System.Web.Services.Protocols.*;
public class MySoapHeader extends SoapHeader
{
    public int number;
} //MySoapHeader

public class MathSvc extends WebService
{
    public MySoapHeader mySoapHeader;

    /** @attribute WebMethod()
     */
    /** @attribute SoapHeaderAttribute("mySoapHeader", Direction 
        = SoapHeaderDirection.In)
     */
    public float Add(float
 xValue, float yValue) throws SoapHeaderException
    {
        // Process the header from the client.
        try {
            int j = 100 / mySoapHeader.number;
        }
        catch (System.Exception e) {
            // Throw a SoapHeaderException if an exception is caught during
 
            // header processing.
            throw new SoapHeaderException(
                "An Exception was thrown during the processing of header",
 
                SoapException.ClientFaultCode, e);
        }
        return xValue + yValue;
    } //Add
} //MathSvc
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapHeaderException クラス
SoapHeaderException メンバ
System.Web.Services.Protocols 名前空間

SoapHeaderException コンストラクタ (String, XmlQualifiedName, String)

SoapHeaderException クラスの新しいインスタンスを初期化します。

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

Public Sub New ( _
    message As String, _
    code As XmlQualifiedName, _
    actor As String _
)
Dim message As String
Dim code As XmlQualifiedName
Dim actor As String

Dim instance As New SoapHeaderException(message,
 code, actor)
public SoapHeaderException (
    string message,
    XmlQualifiedName code,
    string actor
)
public:
SoapHeaderException (
    String^ message, 
    XmlQualifiedName^ code, 
    String^ actor
)
public SoapHeaderException (
    String message, 
    XmlQualifiedName code, 
    String actor
)
public function SoapHeaderException (
    message : String, 
    code : XmlQualifiedName, 
    actor : String
)

パラメータ

message

例外が発生した理由を示すメッセージ。このパラメータは Message プロパティを設定します。

code

発生したエラーの種類。このパラメータは Code プロパティを設定します。

actor

例外の原因となったコードの一部。通常、これは XML Web サービス メソッドの URL になります。このパラメータは Actor プロパティを設定します。

使用例使用例
<%@ WebService Language="VB" Class="MathSvc"
 %>

Imports System
Imports System.Web.Services
Imports System.Web.Services.Protocols

Public Class MySoapHeader
   Inherits SoapHeader
   Public number As Integer
End Class 'MySoapHeader

Public Class MathSvc
   Inherits WebService
   Public mySoapHeader As MySoapHeader

   <WebMethod(), SoapHeaderAttribute("mySoapHeader",
 _
      Direction := SoapHeaderDirection.In)>  _
   Public Function Add(xValue As
 Single, yValue As Single)
 As Single
      ' Throw an exception if the value received in the header is zero.
      If mySoapHeader.number = 0 Then
         Throw New SoapHeaderException("value
 received in the header is zero.", _
            SoapException.ClientFaultCode, _
            "http://localhost/MathSvc_SoapHeaderException3.vb.asmx/Add")
      End If
      Return xValue + yValue
   End Function 'Add
End Class 'MathSvc
<%@ WebService Language="C#" Class="MathSvc" %>

using System;
using System.Web.Services;
using System.Web.Services.Protocols;

public class MySoapHeader : SoapHeader
{
   public int number;
}

public class MathSvc : WebService {
    public MySoapHeader mySoapHeader;
    
    [WebMethod]
    [SoapHeaderAttribute("mySoapHeader", Direction=SoapHeaderDirection.In)]
    public float Add(float
 xValue, float yValue) 
    {
        // Throw an exception if the value received in the header is
 zero.
        if(mySoapHeader.number == 0)
            throw new SoapHeaderException(
               "value received in the header is zero."
,
               SoapException.ClientFaultCode,
               "http://localhost/MathSvc_SoapHeaderException3.cs.asmx/Add");
        return(xValue + yValue);
    }
}
<%@ WebService Language="VJ#" Class="MathSvc" %>

import System.*;
import System.Web.Services.*;
import System.Web.Services.Protocols.*;

public class MySoapHeader extends SoapHeader
{
    public int number;
} //MySoapHeader

public class MathSvc extends WebService 
{
    public MySoapHeader mySoapHeader;

    /** @attribute WebMethod()
     */
    /** @attribute SoapHeaderAttribute("mySoapHeader", 
        Direction = SoapHeaderDirection.In)
     */
    public float Add(float
 xValue, float yValue) throws SoapHeaderException
    {
        // Throw an exception if the value received in the header is
 zero.
        if (mySoapHeader.number == 0) {
            throw new SoapHeaderException("value received
 in the header is zero.",
                SoapException.ClientFaultCode, 
                "http://localhost/MathSvc_SoapHeaderException3.cs.asmx/Add");
        }
        return xValue + yValue;
    } //Add
} //MathSvc
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapHeaderException クラス
SoapHeaderException メンバ
System.Web.Services.Protocols 名前空間

SoapHeaderException コンストラクタ (SerializationInfo, StreamingContext)

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

シリアル化を制御するパラメータを指定して、SoapHeaderException クラスの新しいインスタンスを初期化します。

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

Protected Sub New ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
Dim info As SerializationInfo
Dim context As StreamingContext

Dim instance As New SoapHeaderException(info,
 context)
protected SoapHeaderException (
    SerializationInfo info,
    StreamingContext context
)
protected:
SoapHeaderException (
    SerializationInfo^ info, 
    StreamingContext context
)
protected SoapHeaderException (
    SerializationInfo info, 
    StreamingContext context
)
protected function SoapHeaderException (
    info : SerializationInfo, 
    context : StreamingContext
)

パラメータ

info

シリアル化および逆シリアル化の際に使用する値を格納している SerializationInfo。

context

シリアル化ストリームの転送元および転送先に関するデータを格納している SoapHeaderException。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapHeaderException クラス
SoapHeaderException メンバ
System.Web.Services.Protocols 名前空間

SoapHeaderException コンストラクタ

SoapHeaderException クラスの新しいインスタンスを初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
SoapHeaderException () SoapHeaderException クラスの新しいインスタンスを初期化します。
SoapHeaderException (SerializationInfo, StreamingContext) シリアル化を制御するパラメータを指定して、SoapHeaderException クラスの新しいインスタンスを初期化します。
SoapHeaderException (String, XmlQualifiedName) SoapHeaderException クラスの新しいインスタンスを初期化します。

.NET Compact Framework によってサポートされています。

SoapHeaderException (String, XmlQualifiedName, Exception) SoapHeaderException クラスの新しいインスタンスを初期化します。

.NET Compact Framework によってサポートされています。

SoapHeaderException (String, XmlQualifiedName, String) SoapHeaderException クラスの新しいインスタンスを初期化します。

.NET Compact Framework によってサポートされています。

SoapHeaderException (String, XmlQualifiedName, String, Exception) SoapHeaderException クラスの新しいインスタンスを初期化します。

.NET Compact Framework によってサポートされています。

SoapHeaderException (String, XmlQualifiedName, String, String, SoapFaultSubCode, Exception) 関連付けるデータを指定して、SoapHeaderException クラスの新しいインスタンスを初期化します。

.NET Compact Framework によってサポートされています。

SoapHeaderException (String, XmlQualifiedName, String, String, String, SoapFaultSubCode, Exception) 関連付けるデータを指定して、SoapHeaderException クラスの新しいインスタンスを初期化します。

.NET Compact Framework によってサポートされています。

参照参照

関連項目

SoapHeaderException クラス
SoapHeaderException メンバ
System.Web.Services.Protocols 名前空間

SoapHeaderException プロパティ


パブリック プロパティパブリック プロパティ

( プロテクト プロパティ も参照)
  名前 説明
パブリック プロパティ Actor  例外の原因となったコードの一部を取得します。 ( SoapException から継承されます。)
パブリック プロパティ Code  SOAP 違反コードの種類を取得します。 ( SoapException から継承されます。)
パブリック プロパティ Data  例外に関する追加のユーザー定義情報を提供するキー/値ペアのコレクションを取得します。 ( Exception から継承されます。)
パブリック プロパティ Detail  アプリケーション固有のエラー情報を表す XmlNode を取得します。 ( SoapException から継承されます。)
パブリック プロパティ HelpLink  例外に関連付けられているヘルプ ファイルへのリンクを取得または設定します。 ( Exception から継承されます。)
パブリック プロパティ InnerException  現在の例外を発生させた Exception インスタンスを取得します。 ( Exception から継承されます。)
パブリック プロパティ Lang  例外に関連付けられている言語を取得します。 ( SoapException から継承されます。)
パブリック プロパティ Message  現在の例外を説明するメッセージを取得します。 ( Exception から継承されます。)
パブリック プロパティ Node  例外の原因となったコードの一部を表す URI を取得します。 ( SoapException から継承されます。)
パブリック プロパティ Role  SOAP メッセージの処理での XML Web サービスの関数を表す URL を取得します。 ( SoapException から継承されます。)
パブリック プロパティ Source  エラーの原因となったアプリケーションまたはオブジェクトの名前を取得または設定します。 ( Exception から継承されます。)
パブリック プロパティ StackTrace  現在の例外がスローされたときにコール スタックにあったフレームの文字列形式を取得します。 ( Exception から継承されます。)
パブリック プロパティ SubCode  SOAP 違反の subcode XML 要素に格納されているオプションのエラー情報を取得します。 ( SoapException から継承されます。)
パブリック プロパティ TargetSite  現在の例外をスローするメソッドを取得します。 ( Exception から継承されます。)
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ HResult  特定の例外に割り当てられているコード化数値である HRESULT を取得または設定します。 ( Exception から継承されます。)
参照参照

関連項目

SoapHeaderException クラス
System.Web.Services.Protocols 名前空間
SoapHeader.MustUnderstand プロパティ
SoapHeader.DidUnderstand プロパティ
SoapHeader クラス
SoapException クラス

SoapHeaderException メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド Equals  オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。)
パブリック メソッド GetBaseException  派生クラスでオーバーライドされた場合、それ以後に発生する 1 つ以上の例外の主要な原因である Exception を返します。 ( Exception から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。)
パブリック メソッド GetObjectData  SerializationInfo に例外情報を設定します。 ( SoapException から継承されます。)
パブリック メソッド GetType  現在のインスタンスのランタイム型を取得します。 ( Exception から継承されます。)
パブリック メソッド IsClientFaultCode  使用している SOAP プロトコルのバージョンに関係なく、SOAP 違反コードが Client SOAP 違反コードと等価であるかどうかを示す値を返します。 ( SoapException から継承されます。)
パブリック メソッド IsMustUnderstandFaultCode  使用している SOAP プロトコルのバージョンに関係なく、SOAP 違反コードが MustUnderstand と等価であるかどうかを示す値を返します。 ( SoapException から継承されます。)
パブリック メソッド IsServerFaultCode  使用している SOAP プロトコルのバージョンに関係なく、SOAP 違反コードが Server SOAP 違反コードと等価であるかどうかを示す値を返します。 ( SoapException から継承されます。)
パブリック メソッド IsVersionMismatchFaultCode  使用している SOAP プロトコルのバージョンに関係なく、SOAP 違反コードが VersionMismatch SOAP 違反コードと等価であるかどうかを示す値を返します。 ( SoapException から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。)
パブリック メソッド ToString  現在の例外の文字列形式を作成して返します。 ( Exception から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

SoapHeaderException クラス
System.Web.Services.Protocols 名前空間
SoapHeader.MustUnderstand プロパティ
SoapHeader.DidUnderstand プロパティ
SoapHeader クラス
SoapException クラス

SoapHeaderException メンバ

サーバー エラーの SOAP 表現。

SoapHeaderException データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
プロテクト コンストラクタプロテクト コンストラクタ
  名前 説明
プロテクト メソッド SoapHeaderException オーバーロードされます。 SoapHeaderException クラスの新しいインスタンスを初期化します。
パブリック プロパティパブリック プロパティ
( プロテクト プロパティ も参照)
  名前 説明
パブリック プロパティ Actor  例外の原因となったコードの一部を取得します。(SoapException から継承されます。)
パブリック プロパティ Code  SOAP 違反コードの種類を取得します。(SoapException から継承されます。)
パブリック プロパティ Data  例外に関する追加のユーザー定義情報を提供するキー/値ペアのコレクションを取得します。(Exception から継承されます。)
パブリック プロパティ Detail  アプリケーション固有のエラー情報を表す XmlNode を取得します。(SoapException から継承されます。)
パブリック プロパティ HelpLink  例外に関連付けられているヘルプ ファイルへのリンクを取得または設定します。(Exception から継承されます。)
パブリック プロパティ InnerException  現在の例外を発生させた Exception インスタンスを取得します。(Exception から継承されます。)
パブリック プロパティ Lang  例外に関連付けられている言語を取得します。(SoapException から継承されます。)
パブリック プロパティ Message  現在の例外を説明するメッセージを取得します。(Exception から継承されます。)
パブリック プロパティ Node  例外の原因となったコードの一部を表す URI を取得します。(SoapException から継承されます。)
パブリック プロパティ Role  SOAP メッセージの処理での XML Web サービスの関数を表す URL を取得します。(SoapException から継承されます。)
パブリック プロパティ Source  エラーの原因となったアプリケーションまたはオブジェクトの名前を取得または設定します。(Exception から継承されます。)
パブリック プロパティ StackTrace  現在の例外がスローされたときにコール スタックにあったフレームの文字列形式を取得します。(Exception から継承されます。)
パブリック プロパティ SubCode  SOAP 違反の subcode XML 要素に格納されているオプションのエラー情報を取得します。(SoapException から継承されます。)
パブリック プロパティ TargetSite  現在の例外をスローするメソッドを取得します。(Exception から継承されます。)
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ HResult  特定の例外に割り当てられているコード化数値である HRESULT を取得または設定します。(Exception から継承されます。)
パブリック メソッドパブリック メソッド
( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド Equals  オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。)
パブリック メソッド GetBaseException  派生クラスでオーバーライドされた場合、それ以後に発生する 1 つ以上の例外の主要な原因である Exception を返します。 (Exception から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。)
パブリック メソッド GetObjectData  SerializationInfo に例外情報を設定します。 (SoapException から継承されます。)
パブリック メソッド GetType  現在のインスタンスのランタイム型を取得します。 (Exception から継承されます。)
パブリック メソッド IsClientFaultCode  使用している SOAP プロトコルのバージョンに関係なく、SOAP 違反コードが Client SOAP 違反コードと等価であるかどうかを示す値を返します。 (SoapException から継承されます。)
パブリック メソッド IsMustUnderstandFaultCode  使用している SOAP プロトコルのバージョンに関係なく、SOAP 違反コードが MustUnderstand と等価であるかどうかを示す値を返します。 (SoapException から継承されます。)
パブリック メソッド IsServerFaultCode  使用している SOAP プロトコルのバージョンに関係なく、SOAP 違反コードが Server SOAP 違反コードと等価であるかどうかを示す値を返します。 (SoapException から継承されます。)
パブリック メソッド IsVersionMismatchFaultCode  使用している SOAP プロトコルのバージョンに関係なく、SOAP 違反コードが VersionMismatch SOAP 違反コードと等価であるかどうかを示す値を返します。 (SoapException から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。)
パブリック メソッド ToString  現在の例外の文字列形式を作成して返します。 (Exception から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

SoapHeaderException クラス
System.Web.Services.Protocols 名前空間
SoapHeader.MustUnderstand プロパティ
SoapHeader.DidUnderstand プロパティ
SoapHeader クラス
SoapException クラス



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「SoapHeaderException」の関連用語

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

   

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



SoapHeaderExceptionのページの著作権

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

©2026 GRAS Group, Inc.RSS