Hi,
>>msgContextL.getConfigurationContext().setProperty(Constants.Configuration.ENABLE_MTOM,
> > Constants.VALUE_TRUE);
> This creates a correct MTOM message, however, finally the service
> encounters an exception (something about Mime and writing) and is no
> longer usable from then on.
What is the exception you are getting...

Try the following...
    MessageContext inMessageContext = MessageContext.getCurrentMessageContext();
   OperationContext operationContext = inMessageContext.getOperationContext();
   MessageContext outMessageContext = operationContext

.getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE);
    outMessageContext.setProperty(Constants.Configuration.ENABLE_MTOM,
    Constants.VALUE_TRUE);
thanks,
Thilina
>
> I also tried:
>
> >             MessageContext    msgContextL    =
> > MessageContext.getCurrentMessageContext();
> >
> > msgContextL.getOptions().setProperty(Constants.Configuration.ENABLE_MTOM,
> > Constants.VALUE_TRUE);
> This does not work at all, I still get Base64 encoded text messages.
>
> I would much appreciate if someone could tell me the correct way of
> enforcing MTOM encoding programatically
>
> Thanks,
> -Rainer
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Thilina Gunarathne  - http://thilinag.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to