The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

Deploying a WebService as a GET Method

NiharikaNiharika Member Posts: 40 Maven
edited October 2019 in Help
Hi,

I have created a web service for a process which gives prediction for the input using GET method.

I have added URL query parameter as well while deploying the webservice.

But when I am testing the webservice via POSTMAN I am not able to get the output .I am getting following error.

Where am I going wrong?I even tried by removing the macros from context panel but it didn't work.

Answers

  • BalazsBaranyBalazsBarany Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert Posts: 955 Unicorn
    Hi!

    Your process is using two different types of inputs:
    1. Process context macros (the GET parameters)
    2. A process input (connected to Read Document)

    This process expects you to provide a document (it can be HTTP POST or PUT) in the HTTP input. You are not providing that.

    Also, you shouldn't post your Basic Authentication credentials to public forums ;-)

    Regards,
    Balázs
  • NiharikaNiharika Member Posts: 40 Maven
    Thanks @BalazsBarany for the screenshot mistake.
    So what changes should I do to get the GET method working ?

  • BalazsBaranyBalazsBarany Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert Posts: 955 Unicorn
    Hi,

    why is your Read Document connected to the process input? Do you expect data coming from there? 

    If you need input data, then you can't use the GET method. You should use POST or PUT with the document. You can still submit the additional parameters.

    Regards,

    Balázs
  • NiharikaNiharika Member Posts: 40 Maven
    Hi @BalazsBarany

    Thanks for the help I was able to get my GET method working.I had replaced Read Document and JSON to data operator with Create ExampleSet and had set its parameters with incoming attributes and there macro values .

    Thanks,
    Niharika
Sign In or Register to comment.