473,626 Members | 3,031 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1755
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****@microsof t.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******@tisca li.it>
From: "Giorgio Parmeggiani" <gp**********@n ewsgroup.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****@microsof t.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****@microsof t.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******@tisca li.it>
From: "Giorgio Parmeggiani" <gp**********@n ewsgroup.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.comh a scritto nel
messaggio news:zW******** ******@TK2MSFTN GHUB02.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****@microsof t.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****@microsof t.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******@tisca li.it>
From: "Giorgio Parmeggiani" <gp**********@n ewsgroup.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****@microsof t.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******@tisca li.it>
From: "Giorgio Parmeggiani" <gp**********@n ewsgroup.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.comh a scritto nel
messaggio news:zW******** ******@TK2MSFTN GHUB02.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****@microsof t.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
8195
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 obviously change once the program's fully built to actually do something, but for testing, it works). The only code I added to the service is below:
6
2326
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 having to do a httpwebreqeust call.
0
2081
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 successfully run most of the SampleApp features (Register,Feedback,Error report, version check) The only method I can not execute is the BuyNow example. I have tried leveraging the Sharewarestarterkit.com web service to rule out locality, to no avail.
3
3276
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 .net 2.0 and are housed on Windows 2000 servers. I have been unable to find ANY info on how to do this, or if it is even possible. I find it hard to believe that WCF would not be able to be consumed by 2.0 applications.
28
7361
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). I have created a windows service from VStudio 2005 template. What is the windows service replacement for Application.Run()?
7
1533
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 console of Computer Management. There are no errors coming up in the event viewer either. Any ideas? ################ ## Service1.cs ################
20
6729
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 xxx = new localhost.Service1(); localhost is not recognized by the compiler.
0
1564
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 the service and have to restart the computer inorder for the service to be deleted. >1) my service program is basically a client tht is listening on a port to a request from a server and establishing a new connection. 2) reading and extracting...
5
3295
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? Why do I need to set a property within my code to the service name? Are all these required or am I just doing this for consistency purposes?
0
8262
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8196
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8637
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7192
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4090
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2623
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1507
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.