Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / April 2008

Tip: Looking for answers? Try searching our database.

WCF Service and Collections

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Giorgio Parmeggiani - 13 Apr 2008 22:45 GMT
Hi

I am using the svcutil parameter: /ct to obtain IBindingList from WCF
Service.
I can exclude some collection or some WCF service methods from this
conversion? I have some strongly typed custom collections, which are
serializable, and I want, sometime, to use my custom collection, not
IBindingList.

Thank in advance
Giorgio
Steven Cheng [MSFT] - 14 Apr 2008 06:57 GMT
Hi Grorgio,

From your description, I think what you need to do is something like
sharing a colleciton type (used in your WCF service) between client and
service rather than let svctuil autogenerated proxy type, correct?

Based on my research, for specifying custom collection types in your own
assemblies for WCF service, when creating the proxy, you need to supply
both

/ct:[ collection type name]

and

/reference:[assembly of shared type]

Thus, the svcutil will use the specified type in the shared assembly
instead of generating its own proxy type. Here is a good web article
introducing this:

#Sharing WCF Collection Types between Service and Client
http://www.codeproject.com/KB/WCF/WCFCollectionTypeSharing.aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Reply-To: "Giorgio Parmeggiani" <gipasoft@tiscali.it>
From: "Giorgio Parmeggiani" <gparmeggiani@newsgroup.nospam>
Subject: WCF Service and Collections
Date: Sun, 13 Apr 2008 23:45:17 +0200
Lines: 2

Hi

I am using the svcutil parameter: /ct to obtain IBindingList from WCF
Service.
I can exclude some collection or some WCF service methods from this
conversion? I have some strongly typed custom collections, which are
serializable, and I want, sometime, to use my custom collection, not
IBindingList.

Thank in advance
Giorgio

Steven Cheng [MSFT] - 16 Apr 2008 11:59 GMT
Hi Giorgio,

Have you got any further ideas on this issue or does the info in my last
reply help some?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
From: stcheng@online.microsoft.com (Steven Cheng [MSFT])
Organization: Microsoft
Date: Mon, 14 Apr 2008 05:57:53 GMT
Subject: RE: WCF Service and Collections

Hi Grorgio,

From your description, I think what you need to do is something like
sharing a colleciton type (used in your WCF service) between client and
service rather than let svctuil autogenerated proxy type, correct?

Based on my research, for specifying custom collection types in your own
assemblies for WCF service, when creating the proxy, you need to supply
both

/ct:[ collection type name]

and

/reference:[assembly of shared type]

Thus, the svcutil will use the specified type in the shared assembly
instead of generating its own proxy type. Here is a good web article
introducing this:

#Sharing WCF Collection Types between Service and Client
http://www.codeproject.com/KB/WCF/WCFCollectionTypeSharing.aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Reply-To: "Giorgio Parmeggiani" <gipasoft@tiscali.it>
From: "Giorgio Parmeggiani" <gparmeggiani@newsgroup.nospam>
Subject: WCF Service and Collections
Date: Sun, 13 Apr 2008 23:45:17 +0200
Lines: 2

Hi

I am using the svcutil parameter: /ct to obtain IBindingList from WCF
Service.
I can exclude some collection or some WCF service methods from this
conversion? I have some strongly typed custom collections, which are
serializable, and I want, sometime, to use my custom collection, not
IBindingList.

Thank in advance
Giorgio

Giorgio Parmeggiani - 16 Apr 2008 12:11 GMT
Thank for your reply.

I have seen your message today, I try your suggestion and then I reply.

Thanks

> Hi Giorgio,
>
[quoted text clipped - 100 lines]
> Thank in advance
> Giorgio
Steven Cheng [MSFT] - 17 Apr 2008 02:30 GMT
Thanks for your reply Giorgio,

Looking forward to your good news.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Reply-To: "Giorgio Parmeggiani" <gipasoft@tiscali.it>
From: "Giorgio Parmeggiani" <gparmeggiani@newsgroup.nospam>
Subject: Re: WCF Service and Collections
Date: Wed, 16 Apr 2008 13:11:27 +0200

Thank for your reply.

I have seen your message today, I try your suggestion and then I reply.

Thanks

"Steven Cheng [MSFT]" <stcheng@online.microsoft.com> ha scritto nel
messaggio news:zWypwD7nIHA.9016@TK2MSFTNGHUB02.phx.gbl...
> Hi Giorgio,
>
[quoted text clipped - 15 lines]
> ==================================================
> Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
> ications.
>
[quoted text clipped - 6 lines]
> Date: Mon, 14 Apr 2008 05:57:53 GMT
> Subject: RE: WCF Service and Collections

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.