473,387 Members | 1,476 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,387 software developers and data experts.

Repost: WCF CallbackContract with inherited interfaces -> bad prox

---------------------
This question has already been posted. I got a tip to use
[NetDataContractSerializer] and also get rid of svcutil.exe. However, I
still want to understand why it does not work the "official" way.
previous post:
http://groups.google.com/group/micro...123e0375500a9b

I tried to post it another time. But it seems not to appear in newsgroup
(seems to be related to my attachement???)
---------------------

I'm protyping an application with WCF and I'm trying to define a Callback
Contract with an interface that derives from another one.
Doing so, the generated proxy code (using svcutil.exe) does not see the base
interface and a "NotSupportedException" is thrown on the Server when trying
to call methods defined in base interface.
I have also tried to manually define the base interface in the proxy class
so as to be able to implement the methods in the client -Same behavior.

Does anyone knows why it does not work?

Thanks for any help and sorry for the repost!
José
Here is my contract definition :

namespace wcfContract
{

[ServiceContract(Namespace = "Test")]
public interface IPing
{
[OperationContract]
void Ping();
}

public interface ITestCallback : IPing <-------------- IPing method
not seen at all in proxy
{
[OperationContract]
void TestCB();
}

[ServiceContract(Namespace = "Test", CallbackContract =
typeof(ITestCallback))]
public interface ITest : IPing
{
[OperationContract]
void Test();
}
}

Jan 10 '08 #1
1 2280

Jose,

I notice you keep coming up empty on this request.

Try
http://forums.microsoft.com/msdn/sho...d=118&siteid=1

or
microsoft.public.windows.developer.winfx.indigo

I think the forum is your best bet.

That's such a specific wcf question...that the forums is probably your best
shot.

Then let me know me what you find! (by posting back here I guess).
I'm curious as well, just not as curious as you are. (Well, not enough time
to check it).

Good luck.



"José Joye" <Jo*****@discussions.microsoft.comwrote in message
news:7D**********************************@microsof t.com...
---------------------
This question has already been posted. I got a tip to use
[NetDataContractSerializer] and also get rid of svcutil.exe. However, I
still want to understand why it does not work the "official" way.
previous post:
http://groups.google.com/group/micro...123e0375500a9b

I tried to post it another time. But it seems not to appear in newsgroup
(seems to be related to my attachement???)
---------------------

I'm protyping an application with WCF and I'm trying to define a Callback
Contract with an interface that derives from another one.
Doing so, the generated proxy code (using svcutil.exe) does not see the
base
interface and a "NotSupportedException" is thrown on the Server when
trying
to call methods defined in base interface.
I have also tried to manually define the base interface in the proxy class
so as to be able to implement the methods in the client -Same behavior.

Does anyone knows why it does not work?

Thanks for any help and sorry for the repost!
José
Here is my contract definition :

namespace wcfContract
{

[ServiceContract(Namespace = "Test")]
public interface IPing
{
[OperationContract]
void Ping();
}

public interface ITestCallback : IPing <-------------- IPing method
not seen at all in proxy
{
[OperationContract]
void TestCB();
}

[ServiceContract(Namespace = "Test", CallbackContract =
typeof(ITestCallback))]
public interface ITest : IPing
{
[OperationContract]
void Test();
}
}

Jan 10 '08 #2

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

Similar topics

6
by: thechaosengine | last post by:
Hi all, Is there a way to hide a member in a subclass that has been inherited from a base class? Lets leave aside any issues regarding whether its a good idea for a moment. Here's an example...
9
by: Codex Twin | last post by:
Hi I have a common model for a Data Access Layer scenario. I have an abstract base class, called DalBase which contains a list of abstract methods. Lets call them: public abstract void Shine();...
2
by: Wiktor Zychla [C# MVP] | last post by:
Hi, suppose there are two interfaces that contain methods with the same name but different signature: interface I1 { void F(); } interface I2 { int F(); } it is then easy to implement...
5
by: Adrian Parker | last post by:
I've got the standard SqlCacheDependency working just fine , ie. I've defined (and encrypted) the connectionStrings section in the web.config, and I've also defined an an sqlCacheDependency in the...
4
by: John Richardson | last post by:
My original posting (Dec 12, this group) is copied below, but it boils down to a simple question first: does an inherited class prevent certain internal properties (inherited from an ancestor...
1
by: Hans Ruck | last post by:
I'm trying to detect the interfaces directly inherited by a class. I've tried to use the Type.GetInterfaces method but in a situation like this: public interface I { void f(); } public...
7
by: JCauble | last post by:
I have a question about using Generics with Interfaces and some of there inheritance issues / problems. If this is not possible what I describe below I will have to go a different route and would...
12
by: Janaka Perera | last post by:
Hi All, We have done a object oriented design for a system which will create a class multiply inherited by around 1000 small and medium sized classes. I would be greatful if you can help me...
6
by: S_K | last post by:
Hi, I've been toying around with interfaces in C#. They are fun but can anybody give me some examples of where interfaces are used and what they are used for? Thanks so much. Steve
26
by: Chris Becke | last post by:
Given an interface (in the c++ sense, nothing more than a struct containing pure virtual methods) struct Iv1 { virtual method0()=0; }; And a class that implements the interface class...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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...

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.