TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
NeCroFire
NA
86
0
WCF Interface from another assembly
Jun 17 2011 6:00 AM
Hi
I'm still pretty new to WCF, so maybe this is a stupid question.
I have a WCF service and was wondering if it were possible to reference different DLL's with service contracts in them and make them accessible through the same service?
So I would have one dll with something like this in it:
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]
public partial class MyTestClass : IMyTestClass
{
public string _TestSalesOptions()
{
return "SalesOpstion says Halo!";
}
}
[ServiceContract]
public interface IMyTestClass
{
[OperationContract]
string _TestSalesOptions();
}
Now... would I be able to reference this dll in my main service and add a endpoint??
I've spend the better part of the morning googling and I haven't found any results to what I'm trying to do. Maybe it can't be done? Maybe we should rather create separate small services?
Reply
Answers (
7
)
WCF and WebSphere MQ 7.0.1.3
WCF custom channel to communicate to Websphere MQ 7.0.1