HTTP Request - Soap request "Input string was not in a correct format"

Hi Guys,

I’m new to UiPath and currently trying to put together a proof of concept to so how we can use UiPath to automate our regression testing.

I’m currently having issues posting a SOAP request via the HTTP Request activity
I found this topic covered here UIPath SOAP (Post) request? - Help / Studio - UiPath Community Forum
and Mohamed’s solution sounds like it should work for me however i keep getting this error

“HTTP Request: Input string was not in a correct format.”

I have created a .txt file with the soap request directly out of SoapUi (which works)

the activities then Read the text file and output it to a string variable
this variable is then used as the body in my HTTP request.

any ideas what i’m doing wrong ?

Thanks in advanced

@adam.tutton

Welcome to the community

check this

Also as per error the string or value in body might be wrong

cheers

Hey Anil,

Thanks for your response, i did actually try to do this the other day and failed but failed, however after you posted this I had another go with a fresh project and got it working.

The trouble i have now is being able to return the response body in a variable so that i can use some specific values in the response in an ongoing process.

I have used the Invoke Workflow and tried to use arguments to pass the string back out of the workflow by setting the Argument value as a variable (I have seen this on a forum somewhere) but its just not passing the value out

any idea what im doing wrong ?

@adam.tutton

output arguments are not by return…it should be defined in the name in the first line

check this

cheers