jaxb
Why "invalid request" when requesting resource with mime type application/xml in Jersey?
In our application there is a working method that returns a JSON representation of Company.I modified @Produces by adding MediaType.APPLICATION_XML.However, when I set the \"Accept\" header in the req[详细]
2023-04-03 07:01 分类:问答Spring MVC @ResponseBody returning a Map produces "Error 406 NOT ACCEPTABLE"
I\'m having a problem trying to set up @ResponseBody to return a collection. I have JAXB jars in the classpath and I didn\'t set up any ContentNegotiatingViewResolver.[详细]
2023-04-03 01:33 分类:问答How to force spring's @ResponseBody to use xmlConvertor
When I return a single object from a controller like this, @ResponseBody public MyClass module(...) { ...[详细]
2023-04-02 23:48 分类:问答Override declared encoding during unmarshalling with JAXB
I have an XML file with its encoding set within it: <?xml version=\"1.0\" encoding=\"ISO-8859-15\"?> but really file is encoded in UTF-8. Is there a way to override encoding declared in XML file[详细]
2023-04-02 22:00 分类:问答NullPointerException occuring when creating new instance for JAXBContext
I got Null pointer exception when creating the instance of JAXBContext for unmarshalling. The below line is inside a function, which will be called each time when I upload a XML which needs to be unma[详细]
2023-04-02 16:25 分类:问答Which Java JSON libraries make good reuse of JAXB annotations? [closed]
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.[详细]
2023-04-02 13:03 分类:问答JAXBContext and @XmlNsForm annotation
Please shed some light on JAXBContext configutation. Given: customer library com.mycompany.user01234 with several[详细]
2023-04-02 12:04 分类:问答How to get control over JAXBContext in JAX-WS?
I need to deploy the same web service for each customer. This @javax.jws.WebService uses Object as method arguments and return types (resulting in <xs:anyType/> in wsdl). Each instance of web se[详细]
2023-04-02 04:08 分类:问答Java unmarshlling XML to Object which are dynamic
I\'m looking for best tool/way to create and load JAVA objects from XML definitions. I had checked out JAXB, seems pretty nice, but didn\'t find is there a way to work with Entities which properties a[详细]
2023-04-02 00:25 分类:问答List becomes String when Marshalling object to json
I\'m getting a pretty strange error when marshalling my object to json. My object is annotated like this.[详细]
2023-04-01 17:38 分类:问答