Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

I am tyring to access the results of SOA test from SOA API. I am getting the following 403 error.

Options
manoj619
manoj619 Posts: 3

HttpGET
http://localhost:9080/soavirt/api/v6/status/health

Response:

Error: Forbidden

{
"message": "Access forbidden, server does not have appropriate license feature enabled. Both [Virtualize - Service Enabled] and [SOAtest - Server API Enabled] are needed.",
"moreInfoUrl": "http://localhost:9080/soavirt/api",
"status": 403
}

Can someone help me fix the error.

Tagged:

Answers

  • benken_parasoft
    benken_parasoft Posts: 1,231 ✭✭✭
    Options

    The "message" says exactly what's wrong with the license for your SOAtest/Virtualize server:

    Both [Virtualize - Service Enabled] and [SOAtest - Server API Enabled] are needed.

    You would need to reach out to your Parasoft account representative if you need help getting a new or replacement license for your SOAtest/Virtualize server.

  • manoj619
    manoj619 Posts: 3
    Options

    Hi @benken_parasoft , Thanks for the reply. I had the same thought.

    But when I try to check the license status with the status API, this is what I get.

    I can see the response that both "SOATest" and "virtualize", the "licensed:true" is being returned.
    Does it mean the license is enabled?

    API: http://localhost:9080/soavirt/api/v6/status

    response:
    {
    "apiUser": {
    "username": "anonymous",
    "role": "admin"
    },
    "server": {
    "test": {
    "version": {
    "major": "10",
    "minor": "6",
    "subminor": "0",
    "build": ""
    }
    },
    "soatest": {
    "version": {
    "major": "2022",
    "minor": "1",
    "subminor": "0",
    "build": "
    "
    },
    "internalVersion": {
    "major": "10",
    "minor": "6",
    "subminor": "0",
    "build": ""
    },
    "licensed": true,
    "features": [
    {
    "name": "SOAtest",
    "active": true
    },
    {
    "name": "RuleWizard",
    "active": true
    },
    {
    "name": "Command Line",
    "active": true
    },
    {
    "name": "SOA",
    "active": true
    },
    {
    "name": "Web",
    "active": true
    },
    {
    "name": "Server API Enabled",
    "active": true
    },
    {
    "name": "Message Packs",
    "active": false
    },
    {
    "name": "Advanced Test Generation Desktop",
    "active": false
    },
    {
    "name": "Advanced Test Generation 5 Users",
    "active": false
    },
    {
    "name": "Advanced Test Generation 25 Users",
    "active": false
    },
    {
    "name": "Advanced Test Generation 100 Users",
    "active": false
    },
    {
    "name": "Requirements Traceability",
    "active": false
    },
    {
    "name": "API Security Testing",
    "active": false
    }
    ]
    },
    "virtualize": {
    "version": {
    "major": "2022",
    "minor": "1",
    "subminor": "0",
    "build": "
    "
    },
    "internalVersion": {
    "major": "10",
    "minor": "6",
    "subminor": "0",
    "build": "***"
    },
    "licensed": true,
    "features": [
    {
    "name": "Virtualize",
    "active": true
    },
    {
    "name": "Service Enabled",
    "active": false
    },
    {
    "name": "Performance",
    "active": false
    },
    {
    "name": "Extension Pack",
    "active": true
    },
    {
    "name": "Validate",
    "active": true
    },
    {
    "name": "Message Packs",
    "active": false
    },
    {
    "name": "Developer Sandbox 1000 Hits/Day",
    "active": false
    },
    {
    "name": "10000 Hits/Day",
    "active": false
    },
    {
    "name": "25000 Hits/Day",
    "active": false
    },
    {
    "name": "50000 Hits/Day",
    "active": true
    },
    {
    "name": "100000 Hits/Day",
    "active": false
    },
    {
    "name": "500000 Hits/Day",
    "active": false
    },
    {
    "name": "1 Million Hits/Day",
    "active": false
    },
    {
    "name": "Unlimited Hits/Day",
    "active": false
    },
    {
    "name": "30 HPS",
    "active": false
    },
    {
    "name": "100 HPS",
    "active": false
    }
    ]
    }
    },
    "machineId": "WIN32-2db7f921 (Default)",
    "jceInstalled": true
    }

  • benken_parasoft
    benken_parasoft Posts: 1,231 ✭✭✭
    Options

    Let's see why the tool is telling you this:

    Both [Virtualize - Service Enabled] and [SOAtest - Server API Enabled] are needed.

    Does the license have "SOAtest - Server API Enabled"? Yes, it does:

    {
    "name": "Server API Enabled",
    "active": true
    },

    Does the license have "Virtualize - Service Enabled"? No, it does not:

    {
    "name": "Service Enabled",
    "active": false
    },

    So, your Virtualize license does not include the "Service Enabled" feature.

  • manoj619
    manoj619 Posts: 3
    Options

    Got it. Thanks @benken_parasoft

Tagged