Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / December 2006

Tip: Looking for answers? Try searching our database.

WebService-Mode: Binary instead XML

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael Wenninger - 22 Dec 2006 08:57 GMT
How can I change the transfer mode from my WebService. I want NOT use XML
because i must transfer a picture from a client to my web-service on the
server. I want to use the binary serialization. It should be a new featue in
the .net 2.0 Framework.

Michael

P.S:
Sorry for the cross-post, but i used the wrong newsgroup
Tamas Demjen - 29 Dec 2006 19:58 GMT
> How can I change the transfer mode from my WebService. I want NOT use XML
> because i must transfer a picture from a client to my web-service

In addition to Peter's reply, there is a way to use the standard XML
SOAP envelope and still get good performance with binaries. Have you
looked into WSE 3.0 and MTOM? Here's something to consider:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wse3.0/html/434
4d43e-ceb4-43a9-8f8c-6a3f89f786bd.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wse3.0/html/b4b
19453-e4e4-4056-906d-72504ed8c0df.asp

http://msdn2.microsoft.com/en-us/library/ms733742.aspx

<quote>
To avoid this encoding overhead, the MTOM standard allows for
externalizing large data elements [...] and to carry them with the
message as binary data [...] MTOM messages are packaged as
Multipart/Related MIME sequences with the root part being the actual
SOAP message.
</quote>

There are several other choices, such as SwA (SOAP with attachments, not
supported by Microsoft tools) and DIME, but they are both deprecated,
after being replaced by the superior and much preferred MTOM technology,
now implemented in WSE 3.0. Note, however, that not every client
supports MTOM, and if you can tolerate the 33% size gain, standard
Base64 is still more portable.

I have the same problem as you: I need to return JPEG images from a Web
service, and I'm currently considering MTOM.

Tom

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.