iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
This walkthrough shows you how to configure Client binding using WcfService mode in WebCombo.
During this walkthrough, you will learn how to do the following:
In order to complete this walkthrough, you will need the following:
To configure client binding using WebService mode
using System.Web.Services; using ISNet.ClientServices; using ISNet.Data.Linq; using System.ServiceModel; using System.ServiceModel.Activation; using ISNet.Data; [ServiceContract()] public class WcfService { [OperationContract] [ServiceKnownType(typeof(List))] public QueryResult GetCustomers(WcfDataSourceSelectArguments selectArguments) { NorthwindDataContext context = new NorthwindDataContext(); context.DeferredLoadingEnabled = false; context.ObjectTrackingEnabled = false; WebComboDataProvider<Customer> query = new WebComboDataProvider<Customer>(context.Customers); return query.Select(selectArguments); } }
<ISWebCombo:WebCombo ID="wcSupplier" runat="server" Width="150px" DataTextField="ContactName" DataValueField="CustomerID" Height="20px" UseDefaultStyle="True" BindingOperationMode="ClientBinding"> <ClientBindingSettings DataSourceType="WcfService" ServiceUrl="WcfService.svc"> <ServiceMethods SelectMethod="GetCustomers" /> </ClientBindingSettings> </ISWebCombo:WebCombo>
<system.serviceModel> <behaviors> <endpointBehaviors> <behavior name="WcfServiceAspNetAjaxBehavior"> <enableWebScript /> </behavior> </endpointBehaviors> </behaviors> <!-- Note: The following config can be enabled when the service is running in the context of the ASP.NET HTTP application pipeline. <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /> --> <services> <service name="WcfService"> <endpoint address="" behaviorConfiguration="WcfServiceAspNetAjaxBehavior" binding="webHttpBinding" contract="WcfService"/> </service> </services> </system.serviceModel>
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname