Webservices
GetPersonInsuranceHistory
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 /v3/webservices.asmx HTTP/1.1 Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "https://www.shafafiya.org/v2/GetPersonInsuranceHistory" <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="https://www.shafafiya.org/v2/"> <soapenv:Header/> <soapenv:Body> <v2:GetPersonInsuranceHistory> <v2:login>string</v2:login> <v2:pwd>string</v2:pwd> <v2:EmiratesID>string</v2:EmiratesID> <v2:UnifiedID>string</v2:UnifiedID> </v2:GetPersonInsuranceHistory> </soapenv:Body> </soapenv:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="https://www.shafafiya.org/v2/"> <soapenv:Header/> <soapenv:Body> <v2:GetPersonInsuranceHistoryResponse> <v2:GetPersonInsuranceHistoryResult>int</v2:GetPersonInsuranceHistoryResult> <v2:PersonInsuranceDetails>string</v2:PersonInsuranceDetails> <v2:errorMessage>string</v2:errorMessage> </v2:GetPersonInsuranceHistoryResponse> </soapenv:Body> </soapenv: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 /v3/webservices.asmx HTTP/1.1 Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:v2="https://www.shafafiya.org/v2/"> <soap:Header/> <soap:Body> <v2:GetPersonInsuranceHistory> <v2:login>string</v2:login> <v2:pwd>string</v2:pwd> <v2:EmiratesID>string</v2:EmiratesID> <v2:UnifiedID>string</v2:UnifiedID> </v2:GetPersonInsuranceHistory> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:v2="https://www.shafafiya.org/v2/"> <soap:Header/> <soap:Body> <v2:GetPersonInsuranceHistoryResponse> <v2:GetPersonInsuranceHistoryResult>int</v2:GetPersonInsuranceHistoryResult> <v2:PersonInsuranceDetails>string</v2:PersonInsuranceDetails> <v2:errorMessage>string</v2:errorMessage> </v2:GetPersonInsuranceHistoryResponse> </soap:Body> </soap:Envelope>