<back to all web services

RequestLogs

The following routes are available for this service:
All Verbs/requestlogs
RequestLogs Parameters:
NameParameterData TypeRequiredDescription
BeforeSecsqueryint?No
AfterSecsqueryint?No
IpAddressquerystringNo
ForwardedForquerystringNo
UserAuthIdquerystringNo
SessionIdquerystringNo
RefererquerystringNo
PathInfoquerystringNo
Idsquerylong[]No
BeforeIdqueryint?No
AfterIdqueryint?No
HasResponsequerybool?No
WithErrorsquerybool?No
SkipqueryintNo
Takequeryint?No
EnableSessionTrackingquerybool?No
EnableResponseTrackingquerybool?No
EnableErrorTrackingquerybool?No
DurationLongerThanqueryTimeSpan?No
DurationLessThanqueryTimeSpan?No
RequestLogsResponse Parameters:
NameParameterData TypeRequiredDescription
ResultsformList<RequestLogEntry>No
UsageformDictionary<string, string>No
ResponseStatusformResponseStatusNo
RequestLogEntry Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
DateTimeformDateTimeNo
HttpMethodformstringNo
AbsoluteUriformstringNo
PathInfoformstringNo
RequestBodyformstringNo
RequestDtoformObjectNo
UserAuthIdformstringNo
SessionIdformstringNo
IpAddressformstringNo
ForwardedForformstringNo
RefererformstringNo
HeadersformDictionary<string, string>No
FormDataformDictionary<string, string>No
ItemsformDictionary<string, string>No
SessionformObjectNo
ResponseDtoformObjectNo
ErrorResponseformObjectNo
RequestDurationformTimeSpanNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/reply/RequestLogs HTTP/1.1 
Host: webservice.kruitbosch.nl 
Content-Type: application/xml
Content-Length: length

<RequestLogs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Admin">
  <BeforeSecs>0</BeforeSecs>
  <AfterSecs>0</AfterSecs>
  <IpAddress>String</IpAddress>
  <ForwardedFor>String</ForwardedFor>
  <UserAuthId>String</UserAuthId>
  <SessionId>String</SessionId>
  <Referer>String</Referer>
  <PathInfo>String</PathInfo>
  <Ids xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>0</d2p1:long>
  </Ids>
  <BeforeId>0</BeforeId>
  <AfterId>0</AfterId>
  <HasResponse>false</HasResponse>
  <WithErrors>false</WithErrors>
  <Skip>0</Skip>
  <Take>0</Take>
  <EnableSessionTracking>false</EnableSessionTracking>
  <EnableResponseTracking>false</EnableResponseTracking>
  <EnableErrorTracking>false</EnableErrorTracking>
  <DurationLongerThan>PT0S</DurationLongerThan>
  <DurationLessThan>PT0S</DurationLessThan>
</RequestLogs>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<RequestLogsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ServiceStack.Admin">
  <Results xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:RequestLogEntry>
      <d2p1:AbsoluteUri>String</d2p1:AbsoluteUri>
      <d2p1:DateTime>0001-01-01T00:00:00</d2p1:DateTime>
      <d2p1:ErrorResponse />
      <d2p1:FormData xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </d2p1:FormData>
      <d2p1:ForwardedFor>String</d2p1:ForwardedFor>
      <d2p1:Headers xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </d2p1:Headers>
      <d2p1:HttpMethod>String</d2p1:HttpMethod>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:IpAddress>String</d2p1:IpAddress>
      <d2p1:Items xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </d2p1:Items>
      <d2p1:PathInfo>String</d2p1:PathInfo>
      <d2p1:Referer>String</d2p1:Referer>
      <d2p1:RequestBody>String</d2p1:RequestBody>
      <d2p1:RequestDto />
      <d2p1:RequestDuration>PT0S</d2p1:RequestDuration>
      <d2p1:ResponseDto />
      <d2p1:Session />
      <d2p1:SessionId>String</d2p1:SessionId>
      <d2p1:UserAuthId>String</d2p1:UserAuthId>
    </d2p1:RequestLogEntry>
  </Results>
  <Usage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Usage>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</RequestLogsResponse>