Solved

WCF Service Reference not updating properly

Posted on 2008-10-14
2
1,157 Views
Last Modified: 2012-05-05
I've changed the return type for a function in a WCF service from a simple object to a List<> of objects. When I update the service reference in the client project using the service, the Reference.cs class still thinks the service returns a single object.

I've tried deleting the service entirely and also updating the service reference. What's likely to be wrong?

Thanks!
0
Comment
Question by:craigdev
2 Comments
 
LVL 26

Accepted Solution

by:
Anurag Thakur earned 500 total points
ID: 22710092
the following link provides some details as how to update the references - let me know if it was helpful
http://geekswithblogs.net/MainaD/archive/2008/02/04/119287.aspx
0
 
LVL 1

Author Comment

by:craigdev
ID: 22710148
Thanks for the link... I'm using 2008 and the problem was that under "Advanced" in the Add Service Reference screen the Collection type was set to System.Array. When I changed it to Generic.List the problem went away.


0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
C# Desktop Application 3 65
List<PaisEntity> - show some 1 36
VB.NET - Refactor Class per SOLID principles 2 33
global Variable - 2 functions in powershell 1 19
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question