Question
Cognizant Technology Solutions
IN
Last activity: 2 May 2017 0:44 EDT
DCR is not working for REST JSON
Hi Everyone,
We have configured our REST JSON service as stateless and in the service activity the data classes have been referred with DCR(Dynamic Class Referencing). But when we are calling the service using SOAP ui, or running the service from Pega using Service requestor context, classes are not loading. In log we are getting Blank class error. On the contrary if we run the service using current requestor context it is running fine and populating the correct response.
Can you please advise why this is happening?
Thanks
Amrita
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
Hi Amrita, is the access group referred in the service package and user who runs the service rule have the same access group?
- It appears that there seems to be a problem with the DCR. when DCR is configured correctly, it should not have the blank class. may be DCR is not loading when executed under the context of access group that is mentioned in service package of REST service?
Cognizant Technology Solutions
IN
There are two scenarios here:
1. When I try to run the service using developer portal: In this case both the service package and my user id are having same access group. While I run the service in service requestor context, not getting the result.
2. While I try my service using SOAP ui, only I can mention the access group in service package. As I am not using basic authentication, so there is no user id where I can give access group and that should match.In this case also the service is not giving correct result.
Please advise.
Pegasystems Inc.
US
------------
1. When I try to run the service using developer portal: In this case both the service package and my user id are having same access group. While I run the service in service requestor context, not getting the result.
------------
For example, take this above scenario. if you disable the 'requires authentication' in service package and run a test, does it work? use the pega tracer to find why the DCR is not set.
Cognizant Technology Solutions
IN
No Tracer is not helpful when I run the service in Service Requestor context. It does not trace the service activity.
Pegasystems Inc.
US
if you are having difficulties in tracing the request, then use log-message/java step in service activity to write down the property value in pegarules log file.
Cognizant Technology Solutions
IN
But in any ways I can see that DCR is not working.
Pegasystems Inc.
US
If you are unable to debug this & need assistance, please open support request with Pega Support.
Pegasystems Inc.
IN
Hi,
As Gopi suggested, if you end up raising an SR, do share the SR number here for us to track the thread to the SR.
Thanks!