BNN Api

<back to all web services

GetCategoryIncidents

Gets Category Incidents

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

HTTP + SOAP11

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

POST /soap11 HTTP/1.1 
Host: api.dev.bnn.us 
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: GetCategoryIncidents

<?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>

<GetCategoryIncidents xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bnn.Api.Entities.Requests">
  <Category>0</Category>
</GetCategoryIncidents>

    </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<?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>

<CategoryIncidentsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bnn.Api.Entities.Responses">
  <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:ResponseError>
    </d2p1:Errors>
  </ResponseStatus>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Bnn.Api.Entities.Dto">
    <d2p1:IncidentDto>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:EscalationLevel>0</d2p1:EscalationLevel>
      <d2p1:FireHazmat>0</d2p1:FireHazmat>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:IncidentCode>String</d2p1:IncidentCode>
      <d2p1:IncidentName>String</d2p1:IncidentName>
      <d2p1:IncidentNameFixed>String</d2p1:IncidentNameFixed>
      <d2p1:International>0</d2p1:International>
      <d2p1:National>0</d2p1:National>
      <d2p1:PoliceCrime>0</d2p1:PoliceCrime>
      <d2p1:RescueTrauma>0</d2p1:RescueTrauma>
      <d2p1:RistId>String</d2p1:RistId>
      <d2p1:SmokeWater>0</d2p1:SmokeWater>
      <d2p1:ThirdAlarm>0</d2p1:ThirdAlarm>
      <d2p1:Traffic>0</d2p1:Traffic>
      <d2p1:Type>0</d2p1:Type>
      <d2p1:Weather>0</d2p1:Weather>
    </d2p1:IncidentDto>
  </Data>
</CategoryIncidentsResponse>

    </soap:Body>
</soap:Envelope>