-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Response format different when DISTINCT JPQL query condition used on Search SOAP interface #308
Comments
In fact, it's not just in the SOAP interface; the response format is also different in the When I send the following
I get the following [
{
"Investigation": {
"id": 1,
"createId": "simple/root",
"createTime": "2023-07-06T16:30:08.000Z",
"modId": "simple/root",
"modTime": "2023-07-06T16:30:08.000Z",
"dataCollectionInvestigations": [],
"datasets": [],
"endDate": "2000-07-09T00:00:00.000Z",
"fileCount": 0,
"fileSize": 0,
"fundingReferences": [],
"investigationFacilityCycles": [],
"investigationGroups": [],
"investigationInstruments": [],
"investigationUsers": [],
"keywords": [],
"name": "INVESTIGATION 1",
"parameters": [],
"publications": [],
"releaseDate": "2000-07-05T00:00:00.000Z",
"samples": [],
"shifts": [],
"startDate": "2000-04-03T00:00:00.000Z",
"studyInvestigations": [],
"title": "Analysis reflect work or hour color maybe.\nMuch team discussion message weight.",
"visitId": "70"
}
}
] vs when I send the following
I get the following [
[
1,
"Analysis reflect work or hour color maybe.\nMuch team discussion message weight.",
null,
"70",
"INVESTIGATION 1",
null,
"2000-04-03T00:00:00.000Z",
"2000-07-09T00:00:00.000Z"
]
] Additional differences:
|
Because Python-ICAT consumes ICAT over SOAP, it means that the |
I have the following investigation in my database:
When I post the following XML, which does not include a
DISTINCT
JPQL query condition, to the Search SOAP interface:I get the following XML response back:
vs when I post the following XML, which includes a
DISTINCT
JPQL query condition, to the Search SOAP interface:I get the following XML response back:
The issue:
The latter XML response does not specify the type of entity and its attribute names. This is a problem because if you look at the latter XML request, it requests 8 attributes but only 6 values are returned in the response so there is no way of knowing which value belongs to which attribute. There are only 6 values returned because the
doi
andsummary
attributes were requested but their value isnull
in the database so the SOAP framework omits them from the response.The text was updated successfully, but these errors were encountered: