Hi Devs,
       I have a service which does JSON to SOAP conversion. Service code is
follows.

        MessageContext outMsgCtx =
MessageContext.getCurrentMessageContext().getOperationContext().getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE);

outMsgCtx.setProperty(Constants.Configuration.MESSAGE_TYPE,"text/xml");
        //System.out.println(param.toString());
        return param;

Param element is an OMSourcedElementImpl with a JSONDataSource. The problem
occurs when attaching this element to the response envelope in the message
receiver. In the setComplete method when deattaching we make the data source
null without expanding it. This doesn't cause a problem when we really
removing the element but when we adding this as a child to another document
this causes a problem. Shall we forceExpand() to solve this problem or is
there a better solution ?

thanks,
nandana

Reply via email to