473,378 Members | 1,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

WCF Service and Collections

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
Jun 27 '08 #1
4 1743
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/WC...peSharing.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:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Reply-To: "Giorgio Parmeggiani" <gi******@tiscali.it>
From: "Giorgio Parmeggiani" <gp**********@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

Jun 27 '08 #2
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:
ms****@microsoft.com.

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

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

--------------------
From: st*****@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/WC...peSharing.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:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Reply-To: "Giorgio Parmeggiani" <gi******@tiscali.it>
From: "Giorgio Parmeggiani" <gp**********@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

Jun 27 '08 #3
Thank for your reply.

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

Thanks

"Steven Cheng [MSFT]" <st*****@online.microsoft.comha scritto nel
messaggio news:zW**************@TK2MSFTNGHUB02.phx.gbl...
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:
ms****@microsoft.com.

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

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

--------------------
From: st*****@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/WC...peSharing.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:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.

--------------------
Reply-To: "Giorgio Parmeggiani" <gi******@tiscali.it>
From: "Giorgio Parmeggiani" <gp**********@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


Jun 27 '08 #4
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:
ms****@microsoft.com.

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

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

--------------------
Reply-To: "Giorgio Parmeggiani" <gi******@tiscali.it>
From: "Giorgio Parmeggiani" <gp**********@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]" <st*****@online.microsoft.comha scritto nel
messaggio news:zW**************@TK2MSFTNGHUB02.phx.gbl...
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:
ms****@microsoft.com.

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

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

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

Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Clint | last post by:
Hey all - I'm having a really confusing problem concerning a web service. Right now, I have an application that needs to call a web service that does nothing but return "true" (this will...
6
by: kbs | last post by:
Hi, I'm looking for some good examples that illustrate how to code a web service that exposes a custom collection so that the properties of the collection are accessible on the client without...
0
by: whizpop | last post by:
Hi, First of all, thanks for a great starter kit, now If I could just get it to work (fully). I am trying to compile and run the solution/services all on a local dev box. I am able to...
3
by: =?Utf-8?B?R3JlZw==?= | last post by:
I have just created a WCF service that is using WShttpbasic and all is good when another .net 3.0 application consumes it. However, I have legacy apps that must use this service and are running on...
28
by: | last post by:
I have a multi threaded windows form application that runs great after calling Application.Run(). Application.Run is required for a COM component I a using in the app (required for message loop). ...
7
by: d.s.stevenson | last post by:
Hi, I have the following code running as a windows service, but it just won't work... trying to run the service as 'adminuser', and i have made sure it logs on as 'adminuser' in the Services...
20
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
I was executing the steps given in http://suppor.microsoft.com/kb/308359 for testing a sample web service application. However, the following line gives a compilation error: localhost.Service1...
0
by: iprogrammer | last post by:
i have a problem when i try to run my windows service ..which is "Error 1053: The service did not respond to the start or control request in a timely fashion" >after this i cannot anything with...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.