BrightofficeAPI
Click here for a complete list of operations.
CreateNewAccidentAlerterJSON
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 /Webservices/BrightOfficeAPI.asmx HTTP/1.1
Host: www.spdoffice.co.uk
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/CreateNewAccidentAlerterJSON"
<?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>
<CreateNewAccidentAlerterJSON xmlns="http://tempuri.org/">
<AccidentAlerter>
<Code>int</Code>
<AccRef>string</AccRef>
<DateReceivedFromApp>dateTime</DateReceivedFromApp>
<DateAlertSentToThirdParty>dateTime</DateAlertSentToThirdParty>
<ThirdPartyReference>string</ThirdPartyReference>
<MobileNumber>string</MobileNumber>
<GeoLocation>string</GeoLocation>
<Address1>string</Address1>
<Address2>string</Address2>
<Address3>string</Address3>
<Address4>string</Address4>
<Address5>string</Address5>
<PostCode>string</PostCode>
<CallButton>boolean</CallButton>
<MenuOptionChosen>string</MenuOptionChosen>
<Q1>string</Q1>
<A1>string</A1>
<Q2>string</Q2>
<A2>string</A2>
<Q3>string</Q3>
<A3>string</A3>
<Q4>string</Q4>
<A4>string</A4>
<Q5>string</Q5>
<A5>string</A5>
<Q6>string</Q6>
<A6>string</A6>
<Q7>string</Q7>
<A7>string</A7>
<Q8>string</Q8>
<A8>string</A8>
<Q9>string</Q9>
<A9>string</A9>
<Q10>string</Q10>
<A10>string</A10>
<Q11>string</Q11>
<A11>string</A11>
<Q12>string</Q12>
<A12>string</A12>
<Q13>string</Q13>
<A13>string</A13>
<Q14>string</Q14>
<A14>string</A14>
<Q15>string</Q15>
<A15>string</A15>
<Q16>string</Q16>
<A16>string</A16>
<Q17>string</Q17>
<A17>string</A17>
<Q18>string</Q18>
<A18>string</A18>
<Q19>string</Q19>
<A19>string</A19>
<Q20>string</Q20>
<A20>string</A20>
<Q21>string</Q21>
<A21>string</A21>
<Q22>string</Q22>
<A22>string</A22>
<Q23>string</Q23>
<A23>string</A23>
<Q24>string</Q24>
<A24>string</A24>
<Q25>string</Q25>
<A25>string</A25>
</AccidentAlerter>
<UserInfo>
<Username>string</Username>
<Password>string</Password>
</UserInfo>
</CreateNewAccidentAlerterJSON>
</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>
<CreateNewAccidentAlerterJSONResponse xmlns="http://tempuri.org/">
<CreateNewAccidentAlerterJSONResult>
<UpdateResult>
<SuccessCode>SUCCESS or SYSTEMERROR or LOGINERROR or OTHER or MISSINGRECORD or PARAMETERERROR</SuccessCode>
<Message>string</Message>
<ExceptionMessage>string</ExceptionMessage>
<IsSystemError>boolean</IsSystemError>
</UpdateResult>
<intUniqueId>int</intUniqueId>
</CreateNewAccidentAlerterJSONResult>
</CreateNewAccidentAlerterJSONResponse>
</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 /Webservices/BrightOfficeAPI.asmx HTTP/1.1
Host: www.spdoffice.co.uk
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>
<CreateNewAccidentAlerterJSON xmlns="http://tempuri.org/">
<AccidentAlerter>
<Code>int</Code>
<AccRef>string</AccRef>
<DateReceivedFromApp>dateTime</DateReceivedFromApp>
<DateAlertSentToThirdParty>dateTime</DateAlertSentToThirdParty>
<ThirdPartyReference>string</ThirdPartyReference>
<MobileNumber>string</MobileNumber>
<GeoLocation>string</GeoLocation>
<Address1>string</Address1>
<Address2>string</Address2>
<Address3>string</Address3>
<Address4>string</Address4>
<Address5>string</Address5>
<PostCode>string</PostCode>
<CallButton>boolean</CallButton>
<MenuOptionChosen>string</MenuOptionChosen>
<Q1>string</Q1>
<A1>string</A1>
<Q2>string</Q2>
<A2>string</A2>
<Q3>string</Q3>
<A3>string</A3>
<Q4>string</Q4>
<A4>string</A4>
<Q5>string</Q5>
<A5>string</A5>
<Q6>string</Q6>
<A6>string</A6>
<Q7>string</Q7>
<A7>string</A7>
<Q8>string</Q8>
<A8>string</A8>
<Q9>string</Q9>
<A9>string</A9>
<Q10>string</Q10>
<A10>string</A10>
<Q11>string</Q11>
<A11>string</A11>
<Q12>string</Q12>
<A12>string</A12>
<Q13>string</Q13>
<A13>string</A13>
<Q14>string</Q14>
<A14>string</A14>
<Q15>string</Q15>
<A15>string</A15>
<Q16>string</Q16>
<A16>string</A16>
<Q17>string</Q17>
<A17>string</A17>
<Q18>string</Q18>
<A18>string</A18>
<Q19>string</Q19>
<A19>string</A19>
<Q20>string</Q20>
<A20>string</A20>
<Q21>string</Q21>
<A21>string</A21>
<Q22>string</Q22>
<A22>string</A22>
<Q23>string</Q23>
<A23>string</A23>
<Q24>string</Q24>
<A24>string</A24>
<Q25>string</Q25>
<A25>string</A25>
</AccidentAlerter>
<UserInfo>
<Username>string</Username>
<Password>string</Password>
</UserInfo>
</CreateNewAccidentAlerterJSON>
</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>
<CreateNewAccidentAlerterJSONResponse xmlns="http://tempuri.org/">
<CreateNewAccidentAlerterJSONResult>
<UpdateResult>
<SuccessCode>SUCCESS or SYSTEMERROR or LOGINERROR or OTHER or MISSINGRECORD or PARAMETERERROR</SuccessCode>
<Message>string</Message>
<ExceptionMessage>string</ExceptionMessage>
<IsSystemError>boolean</IsSystemError>
</UpdateResult>
<intUniqueId>int</intUniqueId>
</CreateNewAccidentAlerterJSONResult>
</CreateNewAccidentAlerterJSONResponse>
</soap12:Body>
</soap12:Envelope>