getLastStatistics

getLastStatistics(headerOnly: Boolean): String;

The getLastStatistics method of the JadeWebServiceProvider class returns an XML-formatted string that represents the information listed in the following table for the current request.

Statistic Description
<queuedTime> Time spent in the queue
<requestTime> Time taken to process the request
<webServiceTime> Time spent in the web service method
<responseTime> Time taken to generate the SOAP message and send the response
<requestSize> Size of the request message
<responseSize> Size of the response message

In addition, the information listed in the following table is returned when you set the headerOnly parameter to false.

Statistic Description
<requestHeaders> The HTTP headers that were received in the request
<soapRequest> The SOAP message that was received
<soapResponse> The SOAP message that was sent

To obtain all statistics for the request, you must call this method in your reimplemented JadeWebServiceProvider class reply method or in the destructor of the web service.

Setting the value of the headerOnly parameter to true returns a string similar to the following example.

<?xml version="1.0" encoding="utf-8"?>
<WebServiceStatistics>
    <queuedTime>5030</queuedTime>
    <requestTime>5</requestTime>
    <webServiceTime>4999</webServiceTime>
    <responseTime>4</responseTime>
    <requestSize>423</requestSize>
    <responseSize>387</responseSize>
</WebServiceStatistics>

Setting the value of the headerOnly parameter to false returns a string similar to the following example.

<?xml version="1.0" encoding="utf-8"?>
<WebServiceStatistics>
    <queuedTime>5016</queuedTime>
    <requestTime>5</requestTime>
    <webServiceTime>5000</webServiceTime>
    <responseTime>3</responseTime>
    <requestSize>423</requestSize>
    <responseSize>387</responseSize>
    <requestHeaders><![CDATA[Cache-Control: no-cache
Connection: Keep-Alive
Content-Length: 423
Content-Type: text/xml; charset=utf-8
Accept: text/plain, text/html, text/xml
Host: localhost
User-Agent: Jade/2016
SOAPAction: "urn:JadeWebServices/Mine/helloWorld"
]]></requestHeaders>
    <soapRequest><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="urn:JadeWebServices/Mine/" xmlns:s1="urn:JadeWebServices/Mine/">
    <soap:Body>
        <s1:helloWorld>
                <s1:user/>
                <s1:date>1900-01-01</s1:date>
        </s1:helloWorld>
    </soap:Body>
</soap:Envelope>
]]></soapRequest>
    <soapResponse><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
        <helloWorldResponse xmlns="urn:JadeWebServices/Mine/">
            <helloWorldResult>true</helloWorldResult>
        </helloWorldResponse>
    </soap:Body>
</soap:Envelope>
]]></soapResponse>
</WebServiceStatistics>