ASMX always uses SOAP and XML. There may be some third party plug-ins that can do binary but natively this is not supported.
You can do binary communication only with Remoting and coming with WCF.
+++ Rick ---
>Thanks Rick,
>
>I was convinced it would be possible to use the binary formatter, but this explains the fact that I don't find any documentation on the subject.
>I want to use the binary formatter because the data I send over the wire is encrypted which can cause invalid XML. Remoting would be an option, but I don't know if my client aggrees with this approach.
>
>Thanks again,
>Martin
>
>>ASMX always communicates using SOAP and XmlFormatting. If you want binary responses look into .NET Remoting which also can run through IIS but requires different setups.
>>
>>+++ Rick ---
>>
>>
>>>Hello,
>>>
>>>I'm using VS 2005 to build a web service. So far nothing spectacular, but I want to use the binary formatter to commuicate between client and web service. However, I can't find any simple way to do this.
>>>Any ideas?
>>>
>>>TIA,
>>>Martin