Page 1 of 1

CustomBinding not working

Posted: Mon May 27, 2019 7:36 am
by sanjoymajumder84
Unable to find any reference for CustomBinding class. I want to call WCF service from inside my CSharpXamlForHtml5 application but it doesn't support bellow classes.
HttpTransportBindingElement
TextMessageEncodingBindingElement
TransportBindingElement
CustomBinding

Re: CustomBinding not working

Posted: Mon May 27, 2019 8:03 am
by JS-Support @Userware
Hi,

At the moment only the references added with "Add Service Reference" are supported.

The lack of CustomBinding is a known limitation, as you can see in the "limitations" section of the following page:

http://cshtml5.com/links/wcf-limitations-and-tutorials.aspx

For now, to call WCF manually (without "Reference.cs"), please use this code:

Code: Select all

ReturnType ret = System.ServiceModel.INTERNAL_WebMethodsCaller.CallWebMethod<ReturnType, ServiceType>(clientBase, methodName, new Dictionary<string, Tuple<global::System.Type, object>>());


Thanks
Regards