HTTP Post Request error

uiautomation
activities
studio
uipath
api

#1

Hello All,

I am getting response as

‘{“data”:{“status”:{“isSuccess”:false,“message”:“Incorrect Request1”,“statusCode”:“1”}}}’

I need to send Body data as follows:

{
   "webServiceReq":{
      "channelId":"RPA",
      "cifId":"123456789",
                      "serReqId":"getlist",
                      "requestUUID":"12345678",
                      "request":
                                        {
                                                            "custId":"0122345678"
                                        }                  
      }
}

Any help will be appreciated.

Thanks


#2

Hi,

Check whether the service is working properly using SoapUI, then try to make the same request from your UiPath activities. Post your sample xaml will help us to provide correct info on your issue.


#3

@sarathi125 Thanks for Reply

The request is working properly in Postman.

And I am trying to send the same request in UI Path.

Could you please guide me to format with the above Body data ?


#4

Hi @sarathi125,

Please find the attached .XAML file.

Please note that end url is not added in this becuase of security reasons.

Please let me know what needs to change?

ThanksAPI_Test.xaml (8.2 KB)


#5

Hi,

Refer this link,


it has all the details, still need any assistance let me know


#6

@sarathi125

Thanks for reply

But I am using simple HTTP reuqest

Could you please confirm that I am sending Body data is in correct format or not?

Really big thanks for your helpAPI_Test.xaml (8.2 KB)


#7

Hi,

When I am tying to open the xaml, I am getting this error
Could not find type ‘HttpClient’ in namespace ‘http://schemas.uipath.com/workflow/activities’. Row: 63, Column: 10


#8

Please find the zip fileAPI_Test.zip (1.9 KB)


#9

same error only.


#10

Hi Sarathi ,

one question.

Is following syntax is correct for HTTP Request Body?

{
   "webServiceReq":{
      "channelId":"RPA",
      "cifId":"123456789",
                      "serReqId":"getlist",
                      "requestUUID":"12345678",
                      "request":
                                        {
                                                            "custId":"0122345678"
                                        }                  
      }
}

#11

Build your request using the http request builder and check whether that is working or not, I am not sure from where your are building the request body you are mentioning here


#12

@sarathi125

Hello Sarthi,

Please find the attached updated .xaml files.

Could you please have look on it .

ThanksHTTP API Test.zip (3.2 KB)