Method | Description | |
---|---|---|
CleanupAfterCall ( ) : void |
Cleans up any resources after an API call.
|
|
HandleMessage ( |
Handles the SOAP message.
|
|
InitForCall ( ) : void |
Initializes the listener for handling an API call.
|
Method | Description | |
---|---|---|
AppendHeadersToSoapXml ( string soapRequest, string headers ) : string |
Appends the HTTP headers to SOAP xml.
|
|
FormatHttpRequest ( string soapRequest ) : string |
Creates a formatted http request text, to be written into HTTP logs.
|
|
FormatHttpResponse ( string soapResponse ) : string |
Creates a formatted http response text, to be written into HTTP logs.
|
|
FormatSoapRequest ( |
Creates a formatted soap request text, to be written into SOAP logs.
|
|
FormatSoapResponse ( |
Creates a formatted soap response text, to be written into SOAP logs.
|
|
GetFieldsToMask ( ) : string[] |
Gets a list of fields to be masked in xml logs.
|
|
GetTimeStamp ( ) : string |
Gets the current timestamp as a formatted string.
|
|
MaskCredentialsInLogs ( |
Masks a list of fields in the SOAP message before logging it.
|
|
TraceListener ( AppConfig config ) : System |
Protected constructor.
|
Method | Description | |
---|---|---|
PerformLogging ( AdsClient service, string soapRequest, string soapResponse ) : void |
Performs the SOAP and HTTP logging.
|
protected AppendHeadersToSoapXml ( string soapRequest, string headers ) : string | ||
soapRequest | string | The SOAP request. |
headers | string | The HTTP headers. |
return | string |
protected FormatHttpRequest ( string soapRequest ) : string | ||
soapRequest | string | The request xml for this SOAP call. |
return | string |
protected FormatHttpResponse ( string soapResponse ) : string | ||
soapResponse | string | The response xml for this SOAP call. |
return | string |
protected FormatSoapRequest ( |
||
webRequest | The web request for this SOAP call. | |
soapRequest | string | The request xml for this SOAP call. |
return | string |
protected FormatSoapResponse ( |
||
webResponse | The web response for this SOAP call. | |
soapResponse | string | The response xml for this SOAP call. |
return | string |
protected abstract GetFieldsToMask ( ) : string[] | ||
return | string[] |
public HandleMessage ( |
||
soapMessage | The SOAP message. | |
service | AdsClient | The SOAP service. |
direction | SoapMessageDirection | The direction of message. |
return | void |
protected MaskCredentialsInLogs ( |
||
soapMessageXml | The SOAP message, loaded as an XmlDocument. /// | |
fieldNames | string | The list of field names to be masked. |
return | void |
protected TraceListener ( AppConfig config ) : System | ||
config | AppConfig | The config class. |
return | System |