I found the solution in your previous post and sample : Memory.zip and discussed in http://helpcentral.componentone.com/cs/forums/192841/ShowPost.aspx
I recommend you change the title of the sample to "Strings to streams" or something useful, the short title "memory" is somewhat ambiguous and I passed it up my first time around as it appears many others have also.
I do have a question concerning datasets which can read xml from a stream:
In the servers .readxml method could I provide sr as the stream object or is it necessary to use the reader object?
***Server Code***
Dim strFinal As String = ""
Dim ms As MemoryStream = New MemoryStream(fs)
Dim sr As C1.C1Zip.C1ZStreamReader = New C1.C1Zip.C1ZStreamReader(ms)
Dim reader As StreamReader = New StreamReader(sr)
Dim DsSQL1 as new dataset ‘actual code uses typed dataset
DsSQL1.ReadXml(sr) 'or DsSQL1.ReadXml(reader)
ms.Close()
***Client Code****
Dim str1 As String = ""
str1 = Me.dsSQL1.GetXml
Dim ms As MemoryStream = New MemoryStream()
Dim sw As C1.C1Zip.C1ZStreamWriter = New C1.C1Zip.C1ZStreamWriter(ms)
Dim writer As StreamWriter = New StreamWriter(sw)
writer.Write(str1)
writer.Flush()
clsWebServiceInstance.webMethodCall(ms.ToArray())