Showing posts with label jaxb. Show all posts
Showing posts with label jaxb. Show all posts

Tuesday, February 28, 2012

How do i write objects that i have no control over in jaxb?


I am trying to find a way to marshall classes that i have no access to. I am trying to achieve something like this:

Tuesday, February 21, 2012

Why do JAXB generated classes have protected members and how can I change this?


I have been searching the internet for a reason why JAXB generated classes have protected members (all of them, regardless of inheritance).

Friday, February 10, 2012

Exception while trying to use jersey and jaxb


The following code:




@POST
@Path("/previous-status/{current}")
@Consumes(MediaType.APPLICATION_XML)
@Produces(MediaType.TEXT_PLAIN)
public String getPreviousStepStatus(@PathParam("current") JAXBElement<WorkflowStep> step) {
WorkflowStep wfStep = step.getValue();
return DBAccessor.getPrevStepStatus(wfStep);
}