Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WCF OleDB wows
Message
From
26/06/2011 10:20:49
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
WCF OleDB wows
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Database:
Visual FoxPro
Application:
Web Service
Miscellaneous
Thread ID:
01516118
Message ID:
01516118
Views:
112
Since the majority of the web based mobile frameworks lack a full ADO.NET implementation for data access, I started to set up WFC remote access to my web solution that can be used in my mobile site implementation. I am following the mm.net developer’s guide (Remote Data Access with WCF or Web Services) and I am having a problem with the following code snippet .
1.	protected override mmDataAccessBase CreateDataAccessObject(string dataAccessClassName)
2.	{
3.	   if (mmAppBase.DefaultDataAccessMode == mmDataAccessMode.Local)
4.	   {
5.	      return new InventoryDataAccess();
6.	   }
7.	   else
8.	   {
9.	      WSHttpBinding binding = new WSHttpBinding();
10.	      binding.MaxReceivedMessageSize = 147483647;
11.	      EndpointAddress address = new EndpointAddress("http://kjm9300/WCF Data Service Template/Service.svc/mex");
12.	      return new mmDataAccessWCFSql(binding, address, "InventoryDataAccess");
13.	   }
14.	}
I substituted mmDataAccessWCFOleDb for mmDataAccessWCFSql since I am using OleDb data (vfp data tables). That’s where the problem is. The attached jpg clearly indicates (via intellisense)that mmDataAccessWCFOleDb does not permit the parameters to be passed to the method as does mmDataAccessWCFSql . Perhaps version 4 of mmDataAccessWCFOleDb has not been completed as of yet. Perhaps mmDataAccessWCFOleDb needs to be handled differently than mmDataAccessWCFSql and the documentation needs to be updated. Perhaps the documentation for this segment has not been completed.

The line:
WSHttpBinding binding = new WSHttpBinding()
is also presenting me with a challenge. Please see the third image in the attached jpg to see the tool tip that vs2010 is throwing when I hover my mouse over the green underline.

Thank you
Neil Gorin
Next
Reply
Map
View

Click here to load this message in the networking platform