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
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.
When I return a single object from a controller like this, @ResponseBody public MyClass module(...) { ...
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
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
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.
Please shed some light on JAXBContext configutation. Given: customer library com.mycompany.user01234 with several
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
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
I\'m getting a pretty strange error when marshalling my object to json. My object is annotated like this.