Hi all,
In a workflow, I want to parse somes variable from rest xml response, but i have this error:
Unable to parse response
I use this xpath expressions (work on xpathtester):
department: /response/result/department/value
manager: /response/result/manager/value
sys_id: /response/result/sys_id
Do you have an idea?
Thanks by advance.
Cordialy,
Fabien.
Hi,
Thanks for your answer.
1- We are in RSA IGL 7.1.0 P03
2- This is the screenshot:
Thanks a lot.
Do you have a sample of the output XML you are expecting?
Yes like this:
<?xml version="1.0" encoding="UTF-8"?><response><result><sys_id>0600f9619b8</sys_id><manager><link>https://</link><value>736fffe9619b1</value></manager><department><link>https://</link><value>4ffe96194d</value></department></result></response>
I used to know a few classes I could enable DEBUG logging on to see the actual WebService request and response in the logs, but they don't seem to exist anymore in 7.1.0 ...
I am suspecting the parameter sysparam_query you have there with a variable inside it ... could you try to hard code the value temporarily to some static user_id and try again? My guess is that this variable is maybe not translated into an actual value so your endpoint maybe returning a different XML that contains an Error message rather than the one you are expecting above.
Interesting.
The classes are no longer visible in the GUI
com.aveksa.server.workflow.scripts.nodes.RESTWebServiceNode
com.aveksa.server.workflow.webservices.rest.client.RestClient
Is this a new functionality or a bug?
Seeing the same behavior on 7.1 Patch 1.
Also, status 201 is being marked as Status Failed - any suggestion on how we can change that to a success?