Hello,
I'm trying to configure a generic REST fulfillment target, where I use python/flask on the other side.
The target is configured and submits the request via REST to the webservice, there the LDAP tasks are executed and the response is sent back.
Problem is that the response is empty when I log it in the transform scripts of eg.. the fulfillemntId and the comment.
I enalbed the logging in the catalina file and what I see does not look so bad from my side:
[FINE] 2023-02-15 12:19:56.565 [com.netiq.daas.common.ManifestInfo] [DAAS] Resource classPath: 'jar:file:/opt/netiq/common/tomcat/webapps/daas/WEB-INF/lib/daas-rest-connector-1.0.0.0200.jar!/com/netiq/daas/restconnector/fulfillerservice/RESTFullfilmentService.class'
[FINE] 2023-02-15 12:19:56.565 [com.netiq.daas.daaservice.util.Service] [DAAS] ADDING view: fulfillment-configuration to service: RestGenericFulfillmentTemplate-35-78-f93813142c7947a0bb798985394e4610
[INFO] 2023-02-15 12:19:56.566 [com.netiq.daas.daaservice.util.Service] [DAAS] Service 'RestGenericFulfillmentTemplate-35-78-f93813142c7947a0bb798985394e4610' connector information: JAR: 'opt/netiq/common/tomcat/webapps/daas/WEB-INF/lib/daas-rest-connector-1.0.0.0200.jar', VERSION: 'Not available'
[FINE] 2023-02-15 12:19:56.713 [com.netiq.daas.restconnector.fulfillerservice.RESTFullfilmentService] [DAAS] In setConfig..
[FINE] 2023-02-15 12:19:56.713 [com.netiq.daas.restconnector.restauthentication.RestAuthenticationFactory] [DAAS] In getInstance
[FINE] 2023-02-15 12:19:56.713 [com.netiq.daas.restconnector.restauthentication.BasicAuthentication] [DAAS] In init
[FINE] 2023-02-15 12:19:56.714 [com.netiq.daas.restconnector.fulfillerservice.RESTFullfilmentService] [DAAS] Authentication Method : basic_auth
[FINE] 2023-02-15 12:19:56.714 [com.netiq.daas.common.SrvInstance] [DAAS] New service instance. TTL: 60
[FINE] 2023-02-15 12:19:56.714 [com.netiq.daas.common.SrvInstance] [DAAS] Reset timeout for service instance 'be24ca441b3a4453b4fce023d4d0d0e1 to TTL: 60 seconds
[FINE] 2023-02-15 12:19:56.714 [com.netiq.daas.restconnector.fulfillerservice.RESTFullfilmentService] [DAAS] In executeChangesetRequest
[FINE] 2023-02-15 12:19:56.714 [com.netiq.daas.restconnector.AbstractConnectorService] [DAAS] In getCredentialArray() method...
[FINE] 2023-02-15 12:19:56.714 [com.netiq.daas.restconnector.restauthentication.BasicAuthentication] [DAAS] In setCredentialParameters
[FINE] 2023-02-15 12:19:56.714 [com.netiq.daas.restconnector.fulfillerservice.RESTFullfilmentService] [DAAS] In getSearchKey..
[FINE] 2023-02-15 12:19:56.714 [com.netiq.daas.restconnector.fulfillerservice.RESTFullfilmentService] [DAAS] In getSearchKey..
[FINE] 2023-02-15 12:19:56.714 [com.netiq.daas.restconnector.fulfillerservice.RESTFullfilmentService] [DAAS] In getSearchKey..
[FINE] 2023-02-15 12:19:56.715 [com.netiq.daas.restconnector.fulfillerservice.RESTFullfilmentService] [DAAS] In getSearchKey..
[FINE] 2023-02-15 12:19:56.715 [com.netiq.daas.restconnector.fulfillerservice.RESTFullfilmentService] [DAAS] In getSearchKey..
[FINE] 2023-02-15 12:19:56.715 [com.netiq.daas.restconnector.fulfillerservice.RESTChangeRequestFulfiller] [DAAS] In performChangeRequestType method..
[INFO] 2023-02-15 12:19:56.716 [com.netiq.daas.restconnector.restauthentication.BasicAuthentication] [DAAS] Connection Framework execution info message: 'Adding authorization header from provided Authenticator.'
[FINE] 2023-02-15 12:19:56.716 [com.netiq.daas.restconnector.restauthentication.BasicAuthentication] [DAAS] Modifying the web service request before execution.
[INFO] 2023-02-15 12:19:56.716 [com.netiq.daas.restconnector.restauthentication.BasicAuthentication] [DAAS] Connection Framework execution info message: 'Executing the request to: 10.204.255.253:5000/.../myService'
[FINE] 2023-02-15 12:19:57.323 [com.netiq.daas.restconnector.restauthentication.BasicAuthentication] [DAAS] Response Body: {"fulfillmentId": "F1234", "Fulfillment Id": "F1234", "Fulfillment_Id": "F1234", "status": "sucess", "statusDetails": "TEST2"}
[FINE] 2023-02-15 12:19:57.323 [com.netiq.daas.restconnector.restauthentication.AbstractHttpsOperation] [DAAS] Http Response Code :200
[FINE] 2023-02-15 12:19:57.323 [com.netiq.daas.restconnector.restauthentication.AbstractHttpsOperation] [DAAS] Response is a valid JSONObject
transform script for the fulfillemntId logs the inputValue, where ['response_code','content_type','content','fulfillmentId','Fulfillment Id','FulfillmentId'] are configured as input fields
[INFO] 2023-02-15 12:19:57.327 [debug] *** REST START FID ***
[INFO] 2023-02-15 12:19:57.327 [debug] inputValue is: >{"response_code":"","content_type":"","content":"","fulfillmentId":"","FulfillmentId":"","Fulfillment_Id":""}<
[INFO] 2023-02-15 12:19:57.328 [debug] *** REST END FID ***
I tested with the name of the fulfillemntId a little bit, that is why it is available in different options in the string.
But what am I missing that the transform script does not get the correct values form the response ?
Rainer