Name
SoapHeaderAttribute
Synopsis
This attribute is used to receive a custom SoapHeader. Before you can use
this attribute, you need to add a member variable of the appropriate SoapHeader type to your web
service or proxy class (for example, Public ReceivedHeader As MyCustomHeader).
Before invoking a method, the client will set this member
to the appropriate header object. You must also add a SoapHeaderAttribute to each
method that wants to process the custom header. This declaration specifies the
class member that received the custom header object, as in SoapHeader(MemberName := "ReceivedHeader").
If a method will process more than one SoapHeader, just add multiple SoapHeaderAttribute
declarations. You can also receive all headers that are not defined in the
web service by creating a member array of SoapUnknownHeader
objects and using
it in the SoapHeaderAttribute
declaration.
Public NotInheritable Class SoapHeaderAttribute : Inherits Attribute ' Public Constructors Public Sub New(ByVal memberName As String) ' Public Instance Properties Public Property Direction As SoapHeaderDirection Public Property MemberName As String Public Property Required As Boolean End Class
Hierarchy
System.Object→System.Attribute→ SoapHeaderAttribute
Valid On
Method
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access