This is WCF, the MyServiceClient class on the client is autogenerated from the WSDL/MEX, and all service methods must be implemented in an interface.
Main Topics
Browse All TopicsI am putting together a WCF service application, and my concern is that as it grows all the methods will be appear as methods of the xxxServiceClient proxy on the client. The methods could easily be grouped logically like nested classes, but I can't see a way to do this with wcf.
As an example, a service with methods for cars, truck and distance would look something like this on the client
WCFService.IMyService svc = new MyProject.WCFService.MySer
svc.CarMethod1(arg);
svc.TruckMethod1(arg);
svc.CalculateDistance(poin
But if it grows to hundreds of methods it would be messy, ideally I would end up with code on the client looking like
WCFService.IMyService svc = new MyProject.WCFService.MySer
svc.Transport.Cars.CarMeth
svc.Transport.Trucks.Truck
svc.Utility.CalculateDista
Does anyone know if it is possible to do something like this, or what is the best practice for separating/grouping methods in services with large numbers of methods?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Please don't comment on a WCF question if you don't know anything about WCF.
For anyone that is interested in the future, I found an post that comes about as close as you can get (I think) to achieving this with WCF.
You can break the interface up and offer each interface via a separate WCF endpoint on one service, but all the methods need to be implemented in a single class which implements all your interfaces
http://www.meine
Business Accounts
Answer for Membership
by: ChloesDadPosted on 2009-02-10 at 15:10:22ID: 23606615
As with any .Net structure you would need to setup a class that is called something like
Public Class CarMethods
' all Methods go here
public sub Car1
end sub
' etc
end class
The same for trucks etc
then in your myserviceClient class
have public property Cars as mycars
public property Trucks as mytrucks