Click here to Skip to main content
15,896,726 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My webservice(.net 2.0) is returning dataset. In soap message transmission xml serialization is used.

Can I use Binary serialization for DataSet object, so that it can be transmitted across network as a binary data.

Note: My both client and web service application are in .net framework.
Posted

1 solution

your webservice works on SOAP protocol and SOAP protocol requieres SOAP message format requests and responses.

The SOAP message itself is an XML and XML is a string. So everything needs to be converted to XML if you want to use SOAP protocol. Other than this there is only 1 way I know and that is via attachments

see my answer for such question (it also contains links on how to attch to SOAP):
How to embed file in XML without using Base64 encoding?[^]

Hope this wil help.

Thanks,
Hemant

Edit 1:
you can also use SOAP message compression technique:

http://drdobbs.com/web-development/184405969?queryText=soap compression
http://www.4guysfromrolla.com/articles/012104-1.aspx[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900