WCF Portal

WCF Portal

Old forum URL: forums.lhotka.net/forums/t/5188.aspx


jfreeman posted on Friday, August 01, 2008

I have setup a WCF Portal for my application and appears to work fine on a Fetch.  However, I have a Command object that is calling the Execute method and the WCF does not work with it.  If I turn off my config options and go through the normal Data Portal (no WCF), the code runs correctly.  Any ideas on what is causing this?  Thanks.

Jonathan

Paul Czywczynski replied on Saturday, August 02, 2008

Are you getting any exceptions? You may want to turn on WCF tracing on both the client and dataportal.

-Paul

jfreeman replied on Monday, August 04, 2008

I turned tracing on and I see the following error message:

Cannot serialize the DataTable. DataTable name is not set.

Any ideas?  Thanks.

Jonathan

 

 

 

 

 

Paul Czywczynski replied on Monday, August 04, 2008

Can we see the code where you create the DataTable you're trying to send across the wire. Are you sure you're setting name on the DataTable?

jfreeman replied on Tuesday, August 05, 2008

I actually resolved the issue late yesterday.  Here is the code that needed to be modified:

_data = new DataTable("RefSearch")

I added the table name to the DataTable declaration.  Before, it was defaulting the name.  Not sure why that was an issue but it is fixed now.  Thanks for you help.  The WCF tracing was very helpful. 

Jonathan

Copyright (c) Marimer LLC