Began to study RPA quite recently. At the moment, my first practical project, there will be a record to the doctor via the website. Here I had a question on which I could not find the answer. Whether it is possible to start the robot through postman that json result was in postman?
For example. On the website there are 5 hospitals, I brought together them and sealed in json. When I call the robot through postman, it removes service parameters, and it would be desirable that it removed my json result from hospitals. Whether it is possible to realize it.
I apologize, Google Translate works!
Welcome to our UiPath Forum!
Could you maybe explain it via images? I am not sure I get the scenario.
For example. I have openweaher api and i calling the weather output method for the regions of UK and London. In order to see the weather for London, I indicated it in the parameters and received in response a JSON of this schedule. Can I call robots with parameters and get my answer, as was demonstrated with the API of Openweather?
Simply install the UiPath.Web activity package and use the HTTP Request activity.
Hi. Can you give an example or guide of requests using UiPath.web?
Sure, check out this sample project:
ExampleHTTPRequest.zip (10.5 KB)
It opens a webhook.site and then sends a request to its address. The request contains JSON body and a custom header:
I hope it gives you an idea. Check out our Forum for more examples
Thank you very much!
I am composing the body in the above format, to attach a form data file which is in pdf
My http request body looks like below
I don’t face any issues when I make an Api call in the postman, but when I try with http request activity I keep getting error code 500
I get this error code in post man only when I don’t attach the file
Could any one help me out with this issue
Hi…I am unable to download that ExamopleHTTPRequest zip file…please can u send me
Hi i am unable to download your sample scenario.
What is the error message?
Can you try now?
@loginerror still unable to download.
Please place them in on directory and open the project from the project.json file.
can you please let me know how to pass xmlbody in to Body in httprequest?
The easiest way would be to read your XML file from a text file to a variable and then pass that variable via the Body property of the HTTP request activity
@loginerror i have done what you said but i am getting below error,
“<?xml version=\"1.0\" encoding=\"UTF-8\"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/\” xmlns:sf="urn:fault.partner.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance\“>soapenv:Bodysoapenv:FaultUNKNOWN_EXCEPTIONUNKNOWN_EXCEPTION: Content is not allowed in prolog.<sf:UnexpectedErrorFault xsi:type="sf:UnexpectedErrorFault">sf:exceptionCodeUNKNOWN_EXCEPTION</sf:exceptionCode>sf:exceptionMessageContent is not allowed in prolog.</sf:exceptionMessage></sf:UnexpectedErrorFault></soapenv:Fault></soapenv:Body></soapenv:Envelope>”
Could you try if the same works in another tool, such as postman?
Ok how can i find this “PostMan”. how can i get this.
It is an application that allows you to test HTTP requests:
You can get it from here:
One thing to still try is to set this property to either ANY or XML:
I have choosen xml only.