Why does i get the blank response while getting case template by group id which i created?
I have created Group and using the id of the group i tried to fetch the Case Template. But i am getting blank response in pilot environment. I have created 2 custom fields as well. But still the response is same. What does i am missing?
Best Answer
-
Just need to check for confirmation did you add/edit the groupId in environment variable.Attached the screenshot for environment variable.
Thanks,
Shilpi
0
Answers
-
Actually, i am using the WCO java project for testing.
Below are the code where is used my group id,
String dataToSign = "(request-target): get " + gatewayurl + "groups/" + groupid + "/caseTemplate\n" + "host: " + gatewayhost + "\n" + "date: " + date; String hmac = generateAuthHeader(dataToSign, apisecret); String authorisation = "Signature keyId=\"" + apikey + "\",algorithm=\"hmac-sha256\",headers=\"(request-target) host date\",signature=\"" + hmac + "\""; log.info("dataToSign is......" + dataToSign); log.info("hmac is......" + dataToSign); HttpGet httpGet = new HttpGet(httpsUrlForGroups + groupid + "/caseTemplate"); httpGet.addHeader("Authorization", authorisation);
So not sure where to do the change for environment variable?
0 -
We can set environment variable whenever we use Postman colllection. But in java code we can set it in a properties file or in code itself.
So can you please confirm me how you can assign this string variable in your java code with specific groupId.
Normally in standard java code we can set the groupId in below way using properties file
static String groupid = fromApiPropertyFile.getProperty("Groupid").trim();
or we can directly put the groupId value in code itself.
static String groupid = "0a3687d0-5d37-1694-974e-8fec0000002f"
Thanks,
Shilpi
0 -
static String groupid = "2F0a3687cf-5e6c-1d9c-979f-d60d0000023a"
I did the same!
0 -
static String groupid = "2F0a3687cf-5e6c-1d9c-979f-d60d0000023a"
I did the same!
0 -
Did you get any error.If you can get can you please share with us.Please share the whole java code as well.
0 -
Yes, I get 404 Not Found.
I have created a group on aapp.accelus.com, and copied its group id from URL.
Do i need to make any modification in gatway host url?0 -
Below the string variable value we can set in java code.Please do the same for all variable. You can check the groupId also once.
gatewayurl = /v1/
gatewayhost = rms-world-check-one-api-pilot.thomsonreuters.com
Thanks,
Shilpi
0 -
PFA complete code.
Let me know anythingwco-case-template.zip else required.
0 -
As per code You are using our credentials and it's working fine in our java environment. Please check one more time.
0 -
I did it run lots of time. No result. Did you use my group id? what is the output you got?
0 -
Using your code I got successful result. Once you can run the main program WorldCheckApiMain you can get menu option in your screen.For case template you can press 3 and you will get the result.Attached the screenshot in my local environment.If you need will do webex.
Thanks,
Shilpi
0 -
Yes, but you haven't got case template in as json response. Can you please print the json response of Get Case template call. Response is blank.
0 -
I created log file for captured all json response.Attached the screenshot for your reference.
Thanks,
Shilpi
0 -
Please check the log file once again, the group id you used is your own, not my group id.
My group ID : 2F0a3687cf-5e6c-1d9c-979f-d60d0000023a
0 -
Can you please run the option 1 Get Top Level Groups in java and send me the screenshot.Use one of them groupId.I think your groupId is wrong.I saw your code and you are using my credentials and in this credentials there is no groupId whatever you are using.
Not sure from where you can get this groupId.
Thanks,
Shilpi
0 -
Please see atteched images.
In GetTopLevelGroups response i am not seeing my group id.
I copied the group id from url. see attached image.
As per this portal only i got to know to get the group id from URL. Is this way is wrong?
0 -
If you want to get your own groupId you can use your own credentials.You are using my Apikey and SecretKey. That's why in java code you are not getting your groupId. Please can you use your own credentials if you have and then run the java code.The groupId you are using it's not exists in this using java code credentials .That's why you are getting 404 error.Please use correct groupId which is available in option 1 Get Top Level Groups.
Thanks,
Shilpi
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛