If the service is not returning a response then how will we be able to see the error message format?(either JSON or XML)

How can we see the error contents page of a service so that we are able to know its in JSON or XML content?

@TanyaS58

To see the error message format (either JSON or XML) when a service is not returning a response, you can use the following methods:

  1. Tracer Tool: Use the Tracer tool in Pega to trace the service execution. This will capture the request and response, including any error messages. Ensure that you have enabled the required configurations in the Tracer settings to capture SOAP messages or REST responses.
  2. Logs: Check the Pega logs for any error messages. The logs will often contain detailed information about the error, including the format (JSON or XML).
  3. Service Rule Configuration: Review the service rule configuration in Pega. The response tab in the service rule will indicate the expected response format. For REST services, you can specify the response content type as JSON or XML.
  4. Postman or External Tools: If you are testing the service using tools like Postman, you can inspect the raw response to see the error message format.

By using these methods, you can determine whether the error message is in JSON or XML format and view the error contents.

:warning: This is a GenAI-powered tool. All generated answers require validation against the provided references.

REST Service Response XML vs. JSON

REST vs. SOAP

[How to design] Displaying service errors to non-technical users

Error messages for Remote Case Types > JSON response

When we are exposing a new REST service from Pega Application how do we handle the exceptions?