Web Services Method is not allowed

  • 1
  • Question
  • Updated 2 weeks ago
  • Acknowledged
Hello,
Trying to get all data from a report using web services.
If I go to https://na6.replicon.com/services/ReportService1.svc/help/test/GenerateReport
I can input the parameters and see the results.
Then when I try to use the direct end point to the service https://na6.replicon.com/services/ReportService1.svc/GenerateReport (with correct parameters) I get a Method not Allowed.
Tried in the browser and other tools and always same issue.
I have no issue to login.
What should I do to activate the web service?
Or do you know of any other option to get all timesheet data by user, project and day?
Thank you.


Photo of Otmani, Abdel

Otmani, Abdel

  • 3 Posts
  • 0 Reply Likes

Posted 3 weeks ago

  • 1
Photo of admin, admin

admin, admin

  • 1 Post
  • 0 Reply Likes
Are you authenticating in your code?
Photo of Otmani, Abdel

Otmani, Abdel

  • 3 Posts
  • 0 Reply Likes
Yes using admin account (companyKey\Login and pwd)
I don't get Not Authenticated (401) but Method Not Allowed (405)
Photo of Otmani, Abdel

Otmani, Abdel

  • 3 Posts
  • 0 Reply Likes
Found that I should use POST instead of GET method.
However still have an issue:
{
    "error": {
        "code": "Sender",
        "correlationId": "bfa8fbed84fa41048acff751c9b6dcdf",
        "reason": "The user account is not permitted to use the attempted authentication method",
        "details": {
            "displayText": "The user account is not permitted to use the attempted authentication method",
            "failureUri": "urn:replicon-saas-security:authentication-error:invalid-authentication-protocol"
        },
        "type": "AuthenticationError1"
    }
}

I'm using Basic Auth without Body.

If I had a Body to the request
{
  "reportUri": "urn:replicon-tenant:17f7a637b83349e9b16ef4905eb64944:report:7029916e-1802-4aad-b3eb-0f852055a5ab",
  "filterValues": [],
  "outputFormatUri": "urn:replicon:report-output-format-option:csv"
}

then the issue is 
{
    "error": {
        "code": "InternalServiceFault",
        "correlationId": "acfcc6f0716c4a3390ba42070121e26a",
        "reason": "The server was unable to process the request due to an internal error."
    }
}

Can you help me understand what I'm doing wrong...
Photo of Aashnee Kamboj

Aashnee Kamboj, Community Moderator

  • 1623 Posts
  • 110 Reply Likes
Hi Abdel,

Apologies for a delayed response.

Please let me have an expert team reach out to you regarding the same.