Hi Andrei,
Thank you very much for your help. Is there any way to set
WebMessageEncodingBindingElement in the .config file instead of doing it in
code?
I tried using that code, but now I get a new error:
Unable to deserialize XML body with root name 'Binary' and root namespace ''
(for operation 'MyFunction' and contract ('IMyInterface',
'http://tempuri.org/')) using XmlSerializer. Ensure that the type
corresponding to the XML is added to the known types collection of the
service.
Any ideas? I didn't find much when I searched. I don't have a great deal of
experience with all of this, so I really appreciate your help.
Thanks,
Nick
"Andrei Varanovich [C# MVP]" wrote:
Hello Nick,
It was discussed here http://forums.microsoft.com/MSDN/Sho...70310&SiteID=1
Hope this help you.
Regards,
Andrei Varanovich [C# MVP]
I wasn't sure if this belonged in the C# group or not, but here goes.
When I call the service (not one I created - or have any control over)
I get this error:
Unrecognized charSet 'ISO-8859-1' in contentType.
Here is the calling code:
ChannelFactory<IMyInterfacefactory = new
ChannelFactory<IMyInterface>("endpoint");
var proxy = factory.CreateChannel();
var response = proxy.MyFunction(param1);
((IDisposable)proxy).Dispose();
I'm using webHttpBinding. Any ideas? Thanks for any help, I really
appreciate it.
Thanks,
Nick