RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TInvokableClassRegistry.RegisterHeaderMethod Method

Registers methods of an invokable interface that make use of a registered header.

Pascal
procedure RegisterHeaderMethod(Info: PTypeInfo; AClass: TClass; const MethodName: string; MethodType: eHeaderMethodType = hmtAll; Required: Boolean = False); overload;
C++
__fastcall RegisterHeaderMethod(PTypeInfo Info, TClass AClass, const AnsiString MethodName, eHeaderMethodType MethodType = hmtAll, Boolean Required = False);

Call RegisterHeaderMethod for each method of an invokable interface that uses a registered header type. The header class must be previously registered by a call to the RegisterHeaderClass method. If you do not call RegisterHeaderMethod, then the WSDL document for the interface treats the header as associated with all methods of the interface. Use RegisterHeaderMethod if you want to  

Limit the use of the header to a subset of the methods.  

Specify whether the header is used for request messages, response messages, or both in a way that varies from method to method.  

Indicate that the header is required for some methods but not others.  

Call RegisterHeaderMethod for each method that uses the header. After the first method is registered this way, the header becomes limited to that method alone (and to any method subsequently registered by another call to RegisterHeaderMethod).  

Info points to the type information of the invokable interface that the header should accompany.  

AClass describes the TSOAPHeader descendant that represents the header. This class must be previously registered by a call to RegisterHeaderClass.  

MethodName is the name of a method that uses the header.  

MethodType indicates whether the header is to be used on request messages, response messages, or both.  

Required indicates whether the header must be included in messages about the specified method. When Required is true, the header must be included and understood by the recipient of the message. When Required is false, the header is optional. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!