* BaseMessagesFormatter.cs : implement XmlBodyWriter.OnCreateBufferedCopy(). * XmlReaderBodyWriter.cs : implement OnCreateBufferedCopy() for XmlReader input. svn path=/trunk/mcs/; revision=141111
@@ -1,3 +1,8 @@
+2009-09-02 Atsushi Enomoto <[email protected]>
+
+ * XmlReaderBodyWriter.cs : implement OnCreateBufferedCopy()
+ for XmlReader input.
2009-09-02 Atsushi Enomoto <[email protected]>
* HttpRequestMessageProperty.cs : fix default values.
@@ -54,8 +54,10 @@ namespace System.ServiceModel.Channels
protected override BodyWriter OnCreateBufferedCopy (
int maxBufferSize)
{
- if (xml == null)
- throw new NotSupportedException ();
+ if (xml == null) {
+ xml = reader.ReadOuterXml ();
+ reader = null;
+ }
return new XmlReaderBodyWriter (xml);
}
@@ -305,10 +305,9 @@ namespace System.ServiceModel.Dispatcher
this.body = parts;
- [MonoTODO]
protected override BodyWriter OnCreateBufferedCopy (int maxBufferSize)
+ return new XmlBodyWriter (serializer, body);
protected override void OnWriteBodyContents (XmlDictionaryWriter writer)
+ * BaseMessagesFormatter.cs :
+ implement XmlBodyWriter.OnCreateBufferedCopy().
2009-08-24 Atsushi Enomoto <[email protected]>
* CallbackInstanceContextProvider.cs : new instance context provider