ObjectItem objectItem = ..
JAXBContext jaxbContext = JAXBContext.newInstance(ObjectItem.class);
objectItem= jaxbContext.createUnmarshaller().unmarshal(new JAXBSource(jaxbContext,
new JAXBElement(
new QName("http://comp.namespace/version", "objectItem"),
ObjectItem.class,
objectItem)),ObjectItem.class).getValue();
Wednesday, February 23, 2011
clone jaxb object
To clone any jaxb object including object with out root element annotation do like following
Thursday, February 10, 2011
Waring on using MessageContext.MESSAGE_OUTBOUND_PROPERTY
If your internal developer or user, depending on packet.invocationProperties .get(MessageContext.MESSAGE_OUTBOUND_PROPERTY), with jax-ws 2.x this property may be null, casting to boolean with out null check leads runtime exception. With jax-ws 1.4 thsi property always presents. But in new version in some case it is not present, specially in request level packet.
Wednesday, February 9, 2011
jsonwebserice 0.5 available for downlaod
http://code.google.com/p/jsonwebservice/downloads/list
More bug fixes and improvements in mime body handling.
More bug fixes and improvements in mime body handling.
Subscribe to:
Posts (Atom)