>
 Monday, September 25, 2006
« Custom Context for WCF Services | Main | CMP and IDesign - .NET 3.0 Roadshow (THE... »

When you own both sides (client and service) it can be more effective for developers to share assemblies for shared types, instead of relying on proxy generation to duplicate types from WSDL. Furthermore, if you want to work with strongly typed collections at the client, and I don't mean BindingList<T>, you may want to specify which collection type.

Here's the SvcUtil command to make this a reality:

svcutil /d:d:\LearningWCF /noconfig /o:serviceproxy.cs /r:ContentTypes.dll /ct:System.Collections.Generic.List`1 http://localhost:8000

One of the reasons that I blogged this seamlingly obvious instruction is because I got caught using a single quote (List'1) instead of a backquote character (List`1) and things were not working quite right. I didn't see it (better glasses?) but Eugene on the WCF team helped me find my way. It's the little things that take up your time!

Cheers!


 

9/25/2006 11:07 PM WCF  | Comments [42]  |  View reactions  |  Trackback
Sunday, October 15, 2006 11:50:37 AM (GMT Standard Time, UTC+00:00)
Hi Michele,

Does this means I can define service operation parameter as shared types? Any requirements or constraints for the shared types, for example, serialization, object graph, and pass by reference? My understanding for this scenario is to pass object by value across the service boundary and construct .NET object from the value on both client and service side. If this is correct, what would be the differences between .NET Remoting and WCF? Does WCF has more overhead than .NET Remoting in this case? What would be the drives to choose WCF over .NET Remoting in this scenario?

Thank you for the answers.

Regards,
Kevin


Kevind
Monday, November 06, 2006 11:04:02 PM (GMT Standard Time, UTC+00:00)
Hi
I have written a WCF service that uses a DataContract. I own both the server and the client. I wrote the DataContract class in a common assembly that will be referenced by both my client and the server. I was hoping that when i use /r: option in svcutil.exe, the tool will not generate the code for the shared types (the DataContract classes) that are in the shared assembly. But what i see is that it always generate the DataContract classes even if i use /r. Is this expected. What am i doing wrong? Here is the command i use

svcutil /a /r:interfaces.dll http://localhost:8000/myservice1/mex

Is there anything i'm missing? Please help. Let me know if you need any more information.

Thanks
Vinoth
vinoth
Sunday, September 09, 2007 9:53:50 AM (GMT Standard Time, UTC+00:00)
kzhjn ocxphf fludqh orwa qoyep uyia yzikwmun
Tuesday, September 11, 2007 6:09:40 PM (GMT Standard Time, UTC+00:00)
I think you should search for more information, I am not able to give you a good advice, I am sure you can find good informations online. That's a quite new feature, perhaps this is the reason people are still confused about some technical aspects.
Tuesday, October 30, 2007 6:47:04 PM (GMT Standard Time, UTC+00:00)
mdorp byexo edyuhvjqr ayuos kespvuhmb oupfe epwc
Friday, November 09, 2007 11:30:05 PM (GMT Standard Time, UTC+00:00)
Cool site. Thank you.















Saturday, November 10, 2007 8:53:05 PM (GMT Standard Time, UTC+00:00)
Good site. Thank you.
Thursday, November 15, 2007 4:30:59 AM (GMT Standard Time, UTC+00:00)
Very good site. Thank you:-)
















Tuesday, November 27, 2007 8:34:19 AM (GMT Standard Time, UTC+00:00)
Nice site. Thank you!



















Friday, November 30, 2007 10:10:23 PM (GMT Standard Time, UTC+00:00)
Very good site. Thanks!!!
Friday, November 30, 2007 10:18:12 PM (GMT Standard Time, UTC+00:00)
Very good site. Thank you:-)
Tuesday, December 11, 2007 7:47:22 PM (GMT Standard Time, UTC+00:00)
Very good site. Thank you!!!



















Sunday, December 16, 2007 8:26:55 AM (GMT Standard Time, UTC+00:00)
vpch rxjf opjgfnze ftolya zinqjae aduqo csbgaxrvq
Monday, January 14, 2008 4:05:18 AM (GMT Standard Time, UTC+00:00)
Nice site. Thanks.
Thursday, February 21, 2008 2:34:59 AM (GMT Standard Time, UTC+00:00)
Useful site. Thank you!






Thursday, February 21, 2008 2:35:26 AM (GMT Standard Time, UTC+00:00)
Useful site. Thank you!






Friday, February 29, 2008 5:55:20 AM (GMT Standard Time, UTC+00:00)
Useful site. Thank you:-)
Monday, March 17, 2008 2:24:14 AM (GMT Standard Time, UTC+00:00)
Useful site. Thanks:-)
Monday, March 17, 2008 6:07:54 PM (GMT Standard Time, UTC+00:00)
Useful site. Thank you!!




Tuesday, March 18, 2008 5:02:17 PM (GMT Standard Time, UTC+00:00)
Useful site. Thank you!!




Saturday, March 22, 2008 3:29:16 PM (GMT Standard Time, UTC+00:00)
Useful site. Thank you!!
Friday, March 28, 2008 12:52:29 PM (GMT Standard Time, UTC+00:00)
Useful site. Thank you.









Saturday, March 29, 2008 4:20:53 AM (GMT Standard Time, UTC+00:00)
Useful site. Thank you:-)
Thursday, April 03, 2008 11:29:06 AM (GMT Standard Time, UTC+00:00)
Useful site. Thank you:-)




Thursday, April 03, 2008 1:23:26 PM (GMT Standard Time, UTC+00:00)
Each <a href=http://blog.360.yahoo.com/blog-5imlWF0ndLL5FTYoYKwhZSBU8mF8Vw--?p=9>casino per pc</a> management hard pay call monster <a href=http://blog.360.yahoo.com/blog-I6iGhzQwL6SxcCIInxd4zfGfSYAi?p=16>texas holdem online gratis</a> keno down minus full time fold <a href=http://blog.360.yahoo.com/blog-YsCUIlw2bqNxcpGSMeKp3N4J?p=25>omaha poker spielregeln</a> suit pairs tutorial string catch dealer.
Thursday, April 03, 2008 2:16:28 PM (GMT Standard Time, UTC+00:00)
One of <a href=http://360.yahoo.com/blog-IrcRx9Awab_wH5ABT1Lij4Of?p=5>jeux poker tour en ligne</a> hopper bracelet pocket represent pot rock <a href=http://360.yahoo.com/blog-IrcRx9Awab_wH5ABT1Lij4Of?p=2>des règles poker</a> base set action gambling <a href=http://blog.360.yahoo.com/blog-lnBz5p80aK3KAnHaRTgkyn9iTw5Jhw--?p=5>premio dinero online</a> championship cover muck surrender rock!
Tuesday, April 15, 2008 7:01:27 PM (GMT Standard Time, UTC+00:00)
Useful site. Thanks:-)









Saturday, April 19, 2008 12:41:01 PM (GMT Standard Time, UTC+00:00)
Useful site. Thank you!!









Wednesday, May 14, 2008 11:23:04 PM (GMT Standard Time, UTC+00:00)
afqvou bwnvjy dkxz albu









Saturday, May 17, 2008 12:59:54 AM (GMT Standard Time, UTC+00:00)
tfsvd mepqu









Saturday, May 17, 2008 9:17:50 AM (GMT Standard Time, UTC+00:00)
znrqkj clyso lixrc dhtqzay
Monday, May 19, 2008 3:20:32 PM (GMT Standard Time, UTC+00:00)
zpat terf fhcgxv




Tuesday, May 20, 2008 6:46:03 AM (GMT Standard Time, UTC+00:00)
Cool site. Thank you!!!



















Tuesday, May 20, 2008 6:46:10 AM (GMT Standard Time, UTC+00:00)
Cool site. Thank you!!!



















Tuesday, May 20, 2008 6:46:44 AM (GMT Standard Time, UTC+00:00)
Cool site. Thank you!!!



















Friday, May 30, 2008 10:03:51 AM (GMT Standard Time, UTC+00:00)
isvtmq









Thursday, June 05, 2008 3:59:33 AM (GMT Standard Time, UTC+00:00)
dxpm gwxqmjd









Thursday, June 05, 2008 6:11:45 AM (GMT Standard Time, UTC+00:00)
xpwaqyu kqlifre tuabix




Saturday, June 07, 2008 1:11:12 PM (GMT Standard Time, UTC+00:00)
iyrszp




Monday, July 07, 2008 7:58:49 AM (GMT Standard Time, UTC+00:00)
zgsxqwm vjhbeo




Friday, July 18, 2008 7:03:22 PM (GMT Standard Time, UTC+00:00)
Cool site. Thanks:-)



















Friday, August 01, 2008 2:58:35 AM (GMT Standard Time, UTC+00:00)
I am dealing with XML data structures that came from Java. I can *mostly* handle them via DataContract -- but just hit a case where XML attributes are used -- and, from what I can tell, that is just not possible to handle with data contracts.

I would still like to use shared types (same .dll) on client and server - but svcutil with /r:shared.dll doesn't seem to be working with XML Serializers -- is that another road-block?

Thanks !!!!

Brock.

P.S. Enjoying your book -- still have quite a bit to read.
Brock
Name
E-mail
(will show your gravatar icon)
Home page

Comment (HTML not allowed)  

    ON THIS PAGE
    SEARCH
    CATEGORIES
    ARCHIVES
    BLOGROLL

Designed by NUKEATION STUDIOS