Question
Accenture
IN
Last activity: 6 Sep 2017 13:54 EDT
How can we print the request and response xml in a connect Soap ?
How can we print the request and response xml in a connect Soap ?
P.S
Pega Version 7.1.7
Browser IE11
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
Hi Rasaiya,
How are you?
Can you please explain your query in detail?
Accenture
IN
Hi âº
I am good, How are you ?
Just want to print the Request XML and Response XML that is being exchanged using the connect soap.
Pegasystems Inc.
IN
I am good too...thanks.
You can enable DEBUG logging for following:
Rule_Obj_Activity.InvokeAxis2.Rule_Connect_SOAP.Action
com.pega.pegarules.integration.internal.ServiceHelper
-
Ramana Reddy
PEG
IN
You can print the response XML easily by adding property to "Target Property" in the response tab of Connect-SOAP rule.
For request you should enable debug loggers for invokeaxis2 activity as mentioned by Arvind.
-
Siva Noonay
Financial Services
AU
As I've mentioned below "httpclient.wire.content" class will print both request and response. You don't need any config change for this.
From memory I think debugging InvokeAxis2 didn't print the XML's as there was very less debug statements in the activity.
Pegasystems Inc.
DE
Loggin on "httpclient.wire.content" not so good:
The wire log is used to log all data transmitted to and from servers when executing HTTP requests. This log should only be enabled to debug problems, as it will produce an extremely large amount of log data, some of it in binary format.
Because the content of HTTP requests is usually less important for debugging than the HTTP headers, these two types of data have been separated into different wire logs. The content log is
httpclient.wire.content
and the header log ishttpclient.wire.header
.
This can easily make your server not responding
Financial Services
AU
You can increase the log level settings for "httpclient.wire.content" class to print the request and response xml's to the log file.
Accenture
IN
Nice to know that.
I don't want them always but only during debugging.
Right know when ever I want them I run the corresponding activity and use show page,but the probkem with show page it is not the real request response html.
Instead of show-page ,i want something through which I can convert clipboard page to request and response xml that is actually getting used during communication between two system.
Financial Services
AU
Yes, you can simply turn on and turn off debugging (when needed) using the log level settings for the class I mentioned.
Scotia
CA
Hi,
You can see req and res params with request and response xmls in parameters page in tracer.
Thanks,
Srini
Accenture
IN
Thanks All Will try and share the result
Wipro
IN
Hi RasaiyaNadar,
You can use the @Page.getXMLOfPage(myStepPage).
Procedure:
In activity> Do property-set , mention step page> Then take one parameter and give value as @Page.getXMLOfPage(myStepPage).
So entire page will be set to that parameter.
Then do Log-message by infoForced, entore xml is printed in logs.
Thanks,
Hussain