<!--   
To test:
run WCF test client software or custom test tool
add http://localhost:4063/PetLogReportStolenService.svc as a service
add https://localhost:44327/PetLogReportStolenService.svc as a service
or

UAT
https://petlog-uat-thirdparty.azurewebsites.net/PetLogReportStolenService.svc

Staging
https://petlog-kcplstaging-thirdparty.azurewebsites.net/PetLogReportStolenService.svc

Live
https://services.thekennelclub.org.uk/PetLogReportStolenService.svc




https://services.thekennelclub.org.uk/petlog-wcf-svc/ReportStolen/Live/PetlogReportStolenService.svc
https://services.thekennelclub.org.uk/PetLogReportStolenService.svc

Petlog-wcf-svc/ReportStolen/Live/PetlogReportStolenService.svc
petlog-wcf-svc/ReportStolen/Live/PetlogReportStolenService.svc

 <rule name="PetlogReportStolenService Rewrite" stopProcessing="true">
          <match url="Petlog-wcf-svc/ReportStolen/Live/PetlogReportStolenService.svc(.*)" ignoreCase="true" />
          <action type="Rewrite" url="/PetlogReportStolenService.svc{R:1}" />
        </rule>


There are 4 methods (1 main, 3 core)

Test()
TestWithDb()
ValidateXml(xml)
ReportStolenPet(xml)

they have a single XML imput string.
Below are example XML string for use
-->

<!--  For ReportStolenPet -->

<?xml version="1.0" encoding="utf-8"?>
<PetlogReportStolenPet>
  <ChipNumber>826098101234567</ChipNumber>
  <Source>E</Source>
  <PinNumber>98765</PinNumber>
  <ReportingPoliceStn>Slad, Stroud</ReportingPoliceStn>
  <CrimeRefNum>123-334</CrimeRefNum>
  <PCName>PC Plod</PCName>
  <PCContactNumber>(01452) 814 303</PCContactNumber>
  <ContactName>PC Spence</ContactName>
  <ContactNumber>01452 814 303</ContactNumber>
  <Comments>He was stolen...</Comments>
  <TempTelNo>01452 814 301</TempTelNo>
</PetlogReportStolenPet>


<!-- Good XML, currently chip exists, no animal -->
<PetlogReportStolenPet><ChipNumber>578095800014526</ChipNumber><Source>E</Source><PinNumber>98765</PinNumber><ReportingPoliceStn>Slad, Stroud</ReportingPoliceStn><CrimeRefNum>123-334</CrimeRefNum><PCName>PC Plod</PCName><PCContactNumber>(01452) 814 303</PCContactNumber><ContactName>PC Spence</ContactName><ContactNumber>01452 814 303</ContactNumber><Comments>He was stolen...</Comments><TempTelNo>01452 814 301</TempTelNo></PetlogReportStolenPet>

<!-- Good XML, currently chip exists, no animal -->
<PetlogReportStolenPet><ChipNumber>978101080137323</ChipNumber><Source>E</Source><PinNumber>98765</PinNumber><ReportingPoliceStn>Slad, Stroud</ReportingPoliceStn><CrimeRefNum>123-334</CrimeRefNum><PCName>PC Plod</PCName><PCContactNumber>(01452) 814 303</PCContactNumber><ContactName>PC Spence</ContactName><ContactNumber>01452 814 303</ContactNumber><Comments>He was stolen...</Comments><TempTelNo>01452 814 301</TempTelNo></PetlogReportStolenPet>

<!-- Example output string -->
<?xml version="1.0" standalone="yes"?>
<PetlogLostPetReturn>
  <Status>FAIL</Status>
  <Text>The microchip or Petlog ID number is invalid or is not a registered Petlog microchip. Please check these details on your Petlog paperwork and try again. If you continue to experience problems please contact Petlog on 0844 4633 996. Administration lines are open 9am - 5pm Monday to Friday excluding bank holidays.</Text>
</PetlogLostPetReturn>
