dev@jax-ws.java.net

Re: Message.writeTo(XMLStreamWriter)

From: Jitendra Kotamraju <Jitendra.Kotamraju_at_Sun.COM>
Date: Thu, 20 Jul 2006 19:33:17 -0700

Paul Sandoz wrote:

> Jitendra Kotamraju wrote:
>
>> Paul Sandoz wrote:
>>
>>> Hi,
>>>
>>> The JavaDoc for Message.writeTo(XMLStreamWriter) states:
>>>
>>> /**
>>> * Writes the whole SOAP message (but not attachments)
>>> * to the given writer.
>>> *
>>> * This consumes the message.
>>> * The implementation will not write
>>> * {_at_link XMLStreamWriter#writeStartDocument()}
>>> * nor
>>> * {_at_link XMLStreamWriter#writeEndDocument()}
>>
>>
>>
>
> Given that there is a 2 to 1 implementations calling
> writestart/endDocument i propose to modify StreamMessage in accordance
> with the other 2 impls and change the javadoc.
>
> Paul.
>
Kohsuke,

What do you think about Paul's suggestion ? First, what's the reason
behind having writeStartDocument() and writeEndDocument() in writeTo()
method ?

Jitu