Important Update: Community URLs redirect issues are partially resolved. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

SearchRecordsByReport method

SinghaiPrachi
Contributor

 

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.
1 ACCEPTED SOLUTION

Accepted Solutions

Do you have these defined for the header?

DavidPetty_0-1707759528610.png

 

 Advisory Consultant

View solution in original post

10 REPLIES 10

DavidPetty
Archer Employee
Archer Employee

@SinghaiPrachi is Archer installed in a folder called "archer"?  If not, remove it from the path to the call to the API.

 Advisory Consultant

@DavidPetty  Can you tell me how can I check it, I am new to the API so I am not sure what exactly I need to check.

Also I have been calling the request using postman.

It would be in the actual url you use to get into Archer.  https://<<domain>>//defualt.aspx or https://<<domain>>/Archer/default.aspx.

Depending what's after <<domain>> (and before default.aspx) you would add /ws/search.asmx

 Advisory Consultant

Hi @DavidPetty  

Previously I was using

URL: https://<<domain>>/archer/ws/search.asmx and getting the

Response Msg: window.top.location="/Default.aspx?aspxerrorpath=/archer/ws/search.asmx",

But after your comment I did tried the

URL: https://<<domain>>/archer/ws/search.asmx/Default.aspx 

Response Msg:  window.top.location='/Default.aspx'

Please suggest.

Thanks.

What is the url you to get to Archer itself?

 Advisory Consultant

I am using a session token to establish the connection with Archer. 

I am getting the session token by using the url: https://<<domain>>/api/core/security/login

Thanks, so you url would be https://<<domain>>/ws/search.asmx 

 Advisory Consultant

With https://<<domain>>/ws/search.asmx , I am 400 Bad Request error. Attaching the screenshot for reference.

 

Do you have these defined for the header?

DavidPetty_0-1707759528610.png

 

 Advisory Consultant