How to call a web servcie url using http request

How to call a web servcie url using http request having client certificate authentication?

You should have a certificate downloaded from the target URL to your connecting device, like your laptop/server. this will often require a password.

image

I have added the location of the certificate and password, upon calling the request getting the 500 error.
Policy Falsified

Have you tested the request in any other tool? (e.g. Postman)

yes I tried with soap ui , it was successful. I have attached the certificates to the soap ui and executed

if you have tested it there, with the same parameters in your http request, and one works while the other doesn’t…then there is a bug and you should raise it with UiPath.

Otherwise, they are not the same and you have made a mistake somewhere. The activity works fine for me.

PFB of below xml that I’m passing in the body
<soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:urn=“urn:com:ssn:schema:service:v2.1.2:xxxxx.xsd” xmlns:urn1=“urn:com:ssn:schema:service:v2.1.2:CommonEnumerations.xsd” xmlns:urn2=“urn:com:ssn:schema:service:v2.1.2:xxxxx.xsd” xmlns:urn3=“urn:com:ssn:schema:service:v2.1.2:BasicTypes.xsd”>
soapenv:Header/
soapenv:Body
urn:FindDevice

urn:SearchParameters

urn:CommonAttributes
urn:IDXXXX</urn:ID>
</urn:CommonAttributes>
</urn:SearchParameters>
urn:NumberRows1</urn:NumberRows>

</urn:FindDevice>
</soapenv:Body>
</soapenv:Envelope>

the same is being sent through soap ui

Have you tried using the SOAP request Activity instead of Http Request?

Yes I have tries this as well , this give invoke method activity error

what is the full error returned?

<?xml version="1.0" encoding="UTF-8"?>

<soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/”>
soapenv:Body
soapenv:Fault
soapenv:Server
Policy Falsified
http:/XXXXXXXXXXXXXXXXr

<l7:policyResult
status="Service Not Found.The request may have been sent to an invalid URL, or intended for an unsupported operation.
" xmlns:l7=“SOA, API and Cyber Security Blog - Layer 7 Tech”/>

</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

1 Like