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