Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..

cancel
Showing results for 
Search instead for 
Did you mean: 

SearchRecordsByReport method

 

Hi,

I am trying to fetch records from a report using SearchRecordsByReport method.

 

<?xml version="1.0" encoding="utf-8"?>
  <soap:Body>
    <SearchRecordsByReport xmlns="http://archer-tech.com/webservices/">
      <sessionToken>E9D2E12F29....6BE1</sessionToken>
      <reportIdOrGuid>274F97B...C0F</reportIdOrGuid>
      <pageNumber>1</pageNumber>
    </SearchRecordsByReport>
  </soap:Body>
</soap:Envelope>
 
But in Response instead of records I am getting 
window.top.location='/Default.aspx?aspxerrorpath=/archer/ws/search.asmx'
 
Can anyone please suggest on below.
16 REPLIES 16

Thanks @DavidPetty , It is working now.

Hi @DavidPetty ,

How can I parse the xml response I am receiving after calling search records by report using API.

Thanks,

Prachi

That depends on the programing language you are using to make the API calls.

 Advisory Consultant

Thanks. You'll have to Google to find some Python examples on how to parse XML that's coming back from the APIs.

 Advisory Consultant

@DavidPetty , I tried that but the problem is in the response.content i am not getting simple xml data, I am getting xml inside xml which makes it difficult to parse it and google is not helping me.

Attaching response snip I am getting for your reference.

SinghaiPrachi_0-1730308803878.png

 

Doing a little searching, it looks like you have to use xml.etree.ElementTree module to unescape the contents of ExecuteSearchResult.

 Advisory Consultant