は、私がエラーを持っている:のSOAPHeaderクラスとDataContractAttribute
Type 'MyAppApp.Web.MyAppWebService.NotifierAuthHeader' cannot inherit from a type that is not marked with DataContractAttribute or SerializableAttribute. Consider marking the base type 'System.Web.Services.Protocols.SoapHeader' with DataContractAttribute or SerializableAttribute, or removing them from the derived type.
このWCFメソッドの実行中:それはフレームワークのクラスだから
<OperationContract()> <WebMethod(Description:="Gets details about selected PDF document")> _
Public Function GetPdfDetails(ByVal pdfName As String) As String
私はSoapHeader
を変更することができませんでしたが
Public MustInherit Class SoapHeader
Inherits System.Object
Member of System.Web.Services.Protocols
と私はNotifierAuthHeader
クラスでこのクラスを使用します
Imports System.Web.Services.Protocols
Imports System.Runtime.Serialization
Public Class NotifierAuthHeader
Inherits SoapHeader
Public HandlerId As Integer
Public Guid As Byte()
End Class
少し混乱しています。どうすればそれを働かせることができますか?