You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
I'm working on a web client for jdemeatra-ws, and I encounter some difficulties while retrieving the components of the X13 processing of a given serie.
When requesting the path '/x13 (POST) if I use application/xml for the Accept header, I will get some data in the results, but if I use application/json, I only get what are I guess the component names:
I guess the information we should expect is what we get with application/xml, but the swagger documentation only mention the names:
I noticed that some paths that should return the same kind of information (/x13/request and x13/requests) only produce application/xml (application/json is not a valid value for these paths), I thought it might be related.
I tried to investigate it a little, but I'm not a java developer so I got lost very quick. I saw that /tsdata which returns some TsData (but not included in an XmlInformatSet) was able to serialize it to json thanks to the class JsonTs, but I was not able to extend this behaviour to the tsData included in an XmlInformationSet.
Sorry if I misunderstood something, and thank you for your help.
The text was updated successfully, but these errors were encountered:
Those methods are part of the old version of the xml schemas (mainly used for tests and demo)
The new version (using more complete xml schemas) are under the x13/request(s) and tramoseats/request(s) and provide only xml as input and output.
Thank you very much Mats, information about the schemas will be very useful (so is the existing swagger documentation).
I was asking because json is a little bit easier to process from javascript. Any plan on supporting it in the future ?
And what about the "Content-type" headers for these paths ? I updated the code to allow these resources to receive json, and it seemed to work (might need further testing). Is it something you could consider ?
I'm not sure: I tried it before and it worked for @Consumes, but not for @Produces (I think that the problem was that in json only the component names were returned, not the data. In fact, the same issue that I mentioned with POST /x13 when requesting json).
I'm working on a web client for jdemeatra-ws, and I encounter some difficulties while retrieving the components of the X13 processing of a given serie.
When requesting the path '
/x13
(POST) if I useapplication/xml
for theAccept
header, I will get some data in the results, but if I useapplication/json
, I only get what are I guess the component names:Accept: application/xml
Accept: application/json
I guess the information we should expect is what we get with
application/xml
, but the swagger documentation only mention the names:I noticed that some paths that should return the same kind of information (/
x13/request
andx13/requests
) only produceapplication/xml
(application/json
is not a valid value for these paths), I thought it might be related.I tried to investigate it a little, but I'm not a java developer so I got lost very quick. I saw that
/tsdata
which returns someTsData
(but not included in anXmlInformatSet
) was able to serialize it tojson
thanks to the classJsonTs
, but I was not able to extend this behaviour to thetsData
included in anXmlInformationSet
.Sorry if I misunderstood something, and thank you for your help.
The text was updated successfully, but these errors were encountered: