CollectiveAPIWebService
Click here for a complete list of operations.
Streets_Events_Get
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /API-R1604/CollectiveAPI.asmx HTTP/1.1 Host: collectiveapi.bartec-systems.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://bartec-systems.com/Streets_Events_Get" <?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> <Streets_Events_Get xmlns="http://bartec-systems.com/"> <token>string</token> <USRN>decimal</USRN> <StartDate>dateTime</StartDate> <EndDate>dateTime</EndDate> <Event_Bounds> <Point1 xmlns="http://www.bartec-systems.com" /> <Point2 xmlns="http://www.bartec-systems.com" /> </Event_Bounds> <EventType>string</EventType> <DeviceType>string</DeviceType> <DeviceName>string</DeviceName> </Streets_Events_Get> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 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> <Streets_Events_GetResponse xmlns="http://bartec-systems.com/"> <Streets_Events_GetResult RecordCount="int" xmlns="http://www.bartec-systems.com/Streets_Events_Get.xsd"> <Event> <USRN>decimal</USRN> <EventType> <ID xmlns="http://www.bartec-systems.com">int</ID> <Description xmlns="http://www.bartec-systems.com">string</Description> <SystemEvent xmlns="http://www.bartec-systems.com">boolean</SystemEvent> <RecordStamp xsi:nil="true" xmlns="http://www.bartec-systems.com" /> </EventType> <EventDate>dateTime</EventDate> <EventLocation> <BNG xsi:nil="true" xmlns="http://www.bartec-systems.com" /> <Metric xsi:nil="true" xmlns="http://www.bartec-systems.com" /> </EventLocation> <Device> <ID xmlns="http://www.bartec-systems.com">int</ID> <DeviceID xmlns="http://www.bartec-systems.com">int</DeviceID> <DeviceType xsi:nil="true" xmlns="http://www.bartec-systems.com" /> <DisplayName xmlns="http://www.bartec-systems.com">string</DisplayName> <Description xmlns="http://www.bartec-systems.com">string</Description> <RecordStamp xsi:nil="true" xmlns="http://www.bartec-systems.com" /> </Device> <Crew> <ID xmlns="http://www.bartec-systems.com">int</ID> <CrewNumber xmlns="http://www.bartec-systems.com">int</CrewNumber> <WorkGroup xsi:nil="true" xmlns="http://www.bartec-systems.com" /> <Description xmlns="http://www.bartec-systems.com">string</Description> <DefaultSize xmlns="http://www.bartec-systems.com">int</DefaultSize> <StartTime xmlns="http://www.bartec-systems.com">time</StartTime> <EndTime xmlns="http://www.bartec-systems.com">time</EndTime> <WorkingMinutes xmlns="http://www.bartec-systems.com">int</WorkingMinutes> <NonworkingMinutes xmlns="http://www.bartec-systems.com">int</NonworkingMinutes> <RecordStamp xsi:nil="true" xmlns="http://www.bartec-systems.com" /> </Crew> <RecordStamp> <AddedBy xmlns="http://www.bartec-systems.com">string</AddedBy> <DateAdded xmlns="http://www.bartec-systems.com">dateTime</DateAdded> <Comments xmlns="http://www.bartec-systems.com">string</Comments> </RecordStamp> <Workpack> <ID xmlns="http://www.bartec-systems.com">int</ID> <Name xmlns="http://www.bartec-systems.com">string</Name> <RecordStamp xsi:nil="true" xmlns="http://www.bartec-systems.com" /> </Workpack> </Event> <Event> <USRN>decimal</USRN> <EventType> <ID xmlns="http://www.bartec-systems.com">int</ID> <Description xmlns="http://www.bartec-systems.com">string</Description> <SystemEvent xmlns="http://www.bartec-systems.com">boolean</SystemEvent> <RecordStamp xsi:nil="true" xmlns="http://www.bartec-systems.com" /> </EventType> <EventDate>dateTime</EventDate> <EventLocation> <BNG xsi:nil="true" xmlns="http://www.bartec-systems.com" /> <Metric xsi:nil="true" xmlns="http://www.bartec-systems.com" /> </EventLocation> <Device> <ID xmlns="http://www.bartec-systems.com">int</ID> <DeviceID xmlns="http://www.bartec-systems.com">int</DeviceID> <DeviceType xsi:nil="true" xmlns="http://www.bartec-systems.com" /> <DisplayName xmlns="http://www.bartec-systems.com">string</DisplayName> <Description xmlns="http://www.bartec-systems.com">string</Description> <RecordStamp xsi:nil="true" xmlns="http://www.bartec-systems.com" /> </Device> <Crew> <ID xmlns="http://www.bartec-systems.com">int</ID> <CrewNumber xmlns="http://www.bartec-systems.com">int</CrewNumber> <WorkGroup xsi:nil="true" xmlns="http://www.bartec-systems.com" /> <Description xmlns="http://www.bartec-systems.com">string</Description> <DefaultSize xmlns="http://www.bartec-systems.com">int</DefaultSize> <StartTime xmlns="http://www.bartec-systems.com">time</StartTime> <EndTime xmlns="http://www.bartec-systems.com">time</EndTime> <WorkingMinutes xmlns="http://www.bartec-systems.com">int</WorkingMinutes> <NonworkingMinutes xmlns="http://www.bartec-systems.com">int</NonworkingMinutes> <RecordStamp xsi:nil="true" xmlns="http://www.bartec-systems.com" /> </Crew> <RecordStamp> <AddedBy xmlns="http://www.bartec-systems.com">string</AddedBy> <DateAdded xmlns="http://www.bartec-systems.com">dateTime</DateAdded> <Comments xmlns="http://www.bartec-systems.com">string</Comments> </RecordStamp> <Workpack> <ID xmlns="http://www.bartec-systems.com">int</ID> <Name xmlns="http://www.bartec-systems.com">string</Name> <RecordStamp xsi:nil="true" xmlns="http://www.bartec-systems.com" /> </Workpack> </Event> <Errors> <Result xmlns="http://www.bartec-systems.com">int</Result> <Message xmlns="http://www.bartec-systems.com">string</Message> </Errors> </Streets_Events_GetResult> </Streets_Events_GetResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /API-R1604/CollectiveAPI.asmx HTTP/1.1 Host: collectiveapi.bartec-systems.com Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <Streets_Events_Get xmlns="http://bartec-systems.com/"> <token>string</token> <USRN>decimal</USRN> <StartDate>dateTime</StartDate> <EndDate>dateTime</EndDate> <Event_Bounds> <Point1 xmlns="http://www.bartec-systems.com" /> <Point2 xmlns="http://www.bartec-systems.com" /> </Event_Bounds> <EventType>string</EventType> <DeviceType>string</DeviceType> <DeviceName>string</DeviceName> </Streets_Events_Get> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <Streets_Events_GetResponse xmlns="http://bartec-systems.com/"> <Streets_Events_GetResult RecordCount="int" xmlns="http://www.bartec-systems.com/Streets_Events_Get.xsd"> <Event> <USRN>decimal</USRN> <EventType> <ID xmlns="http://www.bartec-systems.com">int</ID> <Description xmlns="http://www.bartec-systems.com">string</Description> <SystemEvent xmlns="http://www.bartec-systems.com">boolean</SystemEvent> <RecordStamp xsi:nil="true" xmlns="http://www.bartec-systems.com" /> </EventType> <EventDate>dateTime</EventDate> <EventLocation> <BNG xsi:nil="true" xmlns="http://www.bartec-systems.com" /> <Metric xsi:nil="true" xmlns="http://www.bartec-systems.com" /> </EventLocation> <Device> <ID xmlns="http://www.bartec-systems.com">int</ID> <DeviceID xmlns="http://www.bartec-systems.com">int</DeviceID> <DeviceType xsi:nil="true" xmlns="http://www.bartec-systems.com" /> <DisplayName xmlns="http://www.bartec-systems.com">string</DisplayName> <Description xmlns="http://www.bartec-systems.com">string</Description> <RecordStamp xsi:nil="true" xmlns="http://www.bartec-systems.com" /> </Device> <Crew> <ID xmlns="http://www.bartec-systems.com">int</ID> <CrewNumber xmlns="http://www.bartec-systems.com">int</CrewNumber> <WorkGroup xsi:nil="true" xmlns="http://www.bartec-systems.com" /> <Description xmlns="http://www.bartec-systems.com">string</Description> <DefaultSize xmlns="http://www.bartec-systems.com">int</DefaultSize> <StartTime xmlns="http://www.bartec-systems.com">time</StartTime> <EndTime xmlns="http://www.bartec-systems.com">time</EndTime> <WorkingMinutes xmlns="http://www.bartec-systems.com">int</WorkingMinutes> <NonworkingMinutes xmlns="http://www.bartec-systems.com">int</NonworkingMinutes> <RecordStamp xsi:nil="true" xmlns="http://www.bartec-systems.com" /> </Crew> <RecordStamp> <AddedBy xmlns="http://www.bartec-systems.com">string</AddedBy> <DateAdded xmlns="http://www.bartec-systems.com">dateTime</DateAdded> <Comments xmlns="http://www.bartec-systems.com">string</Comments> </RecordStamp> <Workpack> <ID xmlns="http://www.bartec-systems.com">int</ID> <Name xmlns="http://www.bartec-systems.com">string</Name> <RecordStamp xsi:nil="true" xmlns="http://www.bartec-systems.com" /> </Workpack> </Event> <Event> <USRN>decimal</USRN> <EventType> <ID xmlns="http://www.bartec-systems.com">int</ID> <Description xmlns="http://www.bartec-systems.com">string</Description> <SystemEvent xmlns="http://www.bartec-systems.com">boolean</SystemEvent> <RecordStamp xsi:nil="true" xmlns="http://www.bartec-systems.com" /> </EventType> <EventDate>dateTime</EventDate> <EventLocation> <BNG xsi:nil="true" xmlns="http://www.bartec-systems.com" /> <Metric xsi:nil="true" xmlns="http://www.bartec-systems.com" /> </EventLocation> <Device> <ID xmlns="http://www.bartec-systems.com">int</ID> <DeviceID xmlns="http://www.bartec-systems.com">int</DeviceID> <DeviceType xsi:nil="true" xmlns="http://www.bartec-systems.com" /> <DisplayName xmlns="http://www.bartec-systems.com">string</DisplayName> <Description xmlns="http://www.bartec-systems.com">string</Description> <RecordStamp xsi:nil="true" xmlns="http://www.bartec-systems.com" /> </Device> <Crew> <ID xmlns="http://www.bartec-systems.com">int</ID> <CrewNumber xmlns="http://www.bartec-systems.com">int</CrewNumber> <WorkGroup xsi:nil="true" xmlns="http://www.bartec-systems.com" /> <Description xmlns="http://www.bartec-systems.com">string</Description> <DefaultSize xmlns="http://www.bartec-systems.com">int</DefaultSize> <StartTime xmlns="http://www.bartec-systems.com">time</StartTime> <EndTime xmlns="http://www.bartec-systems.com">time</EndTime> <WorkingMinutes xmlns="http://www.bartec-systems.com">int</WorkingMinutes> <NonworkingMinutes xmlns="http://www.bartec-systems.com">int</NonworkingMinutes> <RecordStamp xsi:nil="true" xmlns="http://www.bartec-systems.com" /> </Crew> <RecordStamp> <AddedBy xmlns="http://www.bartec-systems.com">string</AddedBy> <DateAdded xmlns="http://www.bartec-systems.com">dateTime</DateAdded> <Comments xmlns="http://www.bartec-systems.com">string</Comments> </RecordStamp> <Workpack> <ID xmlns="http://www.bartec-systems.com">int</ID> <Name xmlns="http://www.bartec-systems.com">string</Name> <RecordStamp xsi:nil="true" xmlns="http://www.bartec-systems.com" /> </Workpack> </Event> <Errors> <Result xmlns="http://www.bartec-systems.com">int</Result> <Message xmlns="http://www.bartec-systems.com">string</Message> </Errors> </Streets_Events_GetResult> </Streets_Events_GetResponse> </soap12:Body> </soap12:Envelope>