users@jax-ws.java.net

Re: sending mtom messages and handlers

From: Sameer Tyagi <Sameer.Tyagi_at_Sun.COM>
Date: Sat, 08 Jul 2006 23:13:46 -0400

Please try the latest build from Java.net

/s



Bober, Paul wrote:

>
>I need to send SOAP 1.1 messages with security credentials in the header
>and an mtom-encoded attachment.
>
>I've successfully enabled mtom encoding and also write a SOAPHandler to
>insert the creds, but I can't get both to work at the same time. If I
>disable the handler I get mtom, but no credentials, and if I enable the
>handler I get credentials, but no mtom encoding.
>
>I'm working off of the EA3 code base (12/23/05).
>
>I found the following code in SOAPMessageDispatcher.java:doSend().
>Could this be related?
>
>Any help would be appreciated.
>
>Paul
>
> //there are handlers so disable Xop encoding if enabled, so that
>they dont
> // see xop:Include reference
> if ((am != null) && am.isXOPPackage()) {
> isXopped = am.isXOPPackage();
> am.setXOPPackage(false);
> }
> handlerResult = callHandlersOnRequest(handlerContext);
> // now put back the old value
> if ((am != null)) {
> am.setXOPPackage(isXopped);
> }
>
>
>
>
>

-- 
------------------------------------------------------------------------------
Accessline:    1-877-325-9504 
Internal:      x51601
Timezone : EST - Eastern Standard Time, GMT -5:00
AIM : sameersjc
Blog : blogs.sun.com/sameert
Calendar : https://namefinder.central.sun.com/NameFinder?-s=105288&view=calendar