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.

No comments: