ds.RemotingFormat=SerializationFormat.Binary doesn't work over HTT

G

Guest

I have some code that returns a dataset with the RemotingFormat property set
to binary but when I look at the HTTP packets on the network the dataset is
being serialized as XML!

I'm using an architecture that is WindowsFormApp -> HTTPRemoting -> COM+
Component, and tracing the HTTP using TracePlus Web Detective.

I am happy to forward the the full code that will reproduce this behaviour
to anybody interested.

A subset of that code is the following COM+ function:

Public Function Search() As DataSet
Try
Dim cn As New SqlConnection
cn.ConnectionString = "data source=.;integrated
security=true;initial catalog=pubs"

Dim cmd As New SqlCommand
cmd.CommandType = CommandType.Text
cmd.CommandText = "select * from titles"
cmd.Connection = cn

Dim sqlda As New SqlDataAdapter(cmd)
Dim ds As New DataSet
sqlda.Fill(ds, "Books")

ContextUtil.SetComplete()
ds.RemotingFormat = SerializationFormat.Binary

Return ds
Catch ex As Exception
ContextUtil.SetAbort()
End Try
End Function
 
G

Guest

Yes - this is the way the DataSet works in 1.0/1.1 - great, isn't it!

I believe it was fixed for 2.0

DC
 
G

Guest

Skimmed over your post, probably should have read it before replying. You're
obviously using .Net 2.0.

DC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top