Question
1
Replies
685
Views
Posted: November 28, 2016
Last activity: November 29, 2016
Closed
Connect rest taking xml in post method
Hi
I have a connect rest method which is taking an xml structure as a post method. I am creating a clipboard structure that corresponds to xml structure and an xml stream to convert the structure to xml but is not getting a response. How can I see the actual xml structure that is going as a request in POST?
***Updated by moderator: Lochan to add Categories***
Hi,
In order to see the request params that are being sent to Service rule, we need to customize the OOB activity pyInvokeRestConnector which is an available rule.
In step6 of java method you can set debug statements to see the request parameters below piece of code.
final ClipboardProperty reqHeaders = stepPage.getProperty("py" + httpMethod + "RequestHeaders");
final ClipboardProperty reqMessageParams = stepPage.getProperty("py" + httpMethod + "RequestDataList")
Hope this info helps!
P.S: I took out the code from PRPC7.2.1