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 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
    sgenzer
  • 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 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
    Tghadially
  • 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
    BalazsBarany
Sign In or Register to comment.