Jeff,

Yep. that's the one. Basically http client tries to send the data and
when it fails tries to send it again. serializeAndConsume by design
does not cache the information (does not build the om tree). This is
good news just replacing one for the other. We'll take this account
and may be add a flag for this behavior.

Thanks,
dims

On 6/8/06, Jeff Ling <[EMAIL PROTECTED]> wrote:
Hi Paul,

I assume you meant the
                    element.serializeAndConsume(bytesOut, format);
in         public byte[] writeBytes()

right? No, that didn't work. However, following your lead, I changed the
same function in

        private void handleOMOutput(OutputStream out, boolean doingMTOM)
throws XMLStreamException {
            format.setDoOptimize(doingMTOM);

            element.serializeAndConsume(out, format);
        }

to

        private void handleOMOutput(OutputStream out, boolean doingMTOM)
throws XMLStreamException {
             format.setDoOptimize(doingMTOM);
             element.serialize(out, format);
         }

That fixed it. Maybe we are using different versions so the line count is
different? Please confirm.

This is great!

Jeff


On 6/8/06, Paul Fremantle <[EMAIL PROTECTED]> wrote:
> Jeff
>
> We have an idea :-) Can you help us test if its any good?
>
> Can you please try this fix:
>
> At line 194 in
org.apache.axis2.transport.http.SOAPOverHTTPSender.
>
> Please change
> element.serializeAndConsume(out, format); to
> element.serialize(out, format);
>
> If that works for you then we can craft a proper fix around this.
>
> Thanks
>
> Paul
>
> --
> Paul Fremantle
> VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
>
> http://bloglines.com/blog/paulfremantle
> [EMAIL PROTECTED]
>
> "Oxygenating the Web Service Platform", www.wso2.com
>




--
Davanum Srinivas : http://wso2.com/blogs/

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

Reply via email to