Question
4
Replies
483
Views
Posted: December 1, 2015
Last activity: December 3, 2015
Closed
Solved
Sending Json response over HTTP service
Hi All - is there a way to send the response in json using Pega HTTP service or only REST service be used for this? If possible with HTTP Service then how because under response tab of HTTP service rule Map from field doesn't have JSON option as it have in REST service. I am trying to use exiting HTTP service which was not sending any response till now but due to some recent changes we now need to send the Json response to the consumer application.
Hello,
HTTP supports XML and string format only as per help. That means we need to use REST in order to go for JSON.
Use HTTP services rules when your applications need to process service requests that contain XML or other string data (text) without the need to comply with messaging standards or protocols like SOAP. You can also use HTTP service rules to process HTML POST data submitted to PRPC from a form.
Please refer http://pdn.pega.com/sites/pdn.pega.com/files/help_v718/procomhelpmain.htm#rule-/rule-service-/rule-service-http/main.htm…