New Posts New Posts RSS Feed: Web services
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Web services

 Post Reply Post Reply
Author
rsmart8452 View Drop Down
Newbie
Newbie


Joined: 07-Nov-2008
Posts: 2
Post Options Post Options   Quote rsmart8452 Quote  Post ReplyReply Direct Link To This Post Topic: Web services
    Posted: 15-Jan-2009 at 11:46am

I've had some problems adding a web service to an object model using DevForce EF 4.2.2.1. When the service is initially added, errors similar to this are reported about the edmx:

Error 40: The Type FetchRequest is not qualified with a namespace or alias. Only PrimitiveTypes can be used without qualification.
D:\VS Projects\DynamicsWebDevForce\DomainModel\CrmServiceReference.edmx


Ignoring the error and compiling the solution gives a series of errors like this:

The type or namespace name 'FetchRequest' could not be found (are you missing a using directive or an assembly reference?)
D:\VS Projects\DynamicsWebDevForce\DomainModel\DomainModel.CrmServiceReference.Designer.cs


Modifying the *.Designer.cs file by adding the proper namespace reference, then compiling the solution surfaces a series of errors like this:

The type 'DomainModel.CrmServiceReference.FetchRequest' must be a non-nullable value type in order to use it as parameter 'T' in the generic type or method 'System.Nullable<T>'
D:\VS Projects\DynamicsWebDevForce\DomainModel\DomainModel.CrmServiceReference.Designer.cs


I'm not really sure where to go from here. It appears the *.Designer.cs file might be malformed and potentially the *.edmx may have problems. I've tried many, many things to get past this final issue but it seems like an excessive amount of manual work to get the object model to compile. I've tried with several different web services both inhouse and third party with similar results. I can reproduce the problems adding services to an existing object model or building a new object model.

Any suggestions?

Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 15-Jan-2009 at 2:52pm
Please send the EDMX file, and if possible the WSDL of the web service, to support@ideablade.com.
Back to Top
sshevade View Drop Down
Newbie
Newbie


Joined: 17-Mar-2009
Posts: 1
Post Options Post Options   Quote sshevade Quote  Post ReplyReply Direct Link To This Post Posted: 17-Mar-2009 at 12:52pm
I am having the same issue when adding Web Service. I am using Devforce EF 4.3. Please post how to fix it. I have send my wsdl and edmx file to support.
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 18-Mar-2009 at 11:05am
sshevade - please re-send these files to kimj AT ideablade.com.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down